Class AdminPageFramework_TableOfContents
Generates an HTML Table of Contents block.
This parses given text and generate headings with links to the heading elements. It helps the viewer browse the vertically long contents. Use this class to create a help page from existent text document.
Usage
Pass text data to the first parameter and the depth of nested headings to the second parameter. Then use theget()
method to retrieve the
generated output.
Example
$_oTOC = new AdminPageFramework_TableOfContents( $sText, 4 ); $_sTOC = $_oTOC->get();
Package: AdminPageFramework\Utility
Copyright: Copyright (c) 2013-2022, Michael Uno
Author: Michael Uno
Since: 3.5.0
Image: http://admin-page-framework.michaeluno.jp/image/utility/table_of_contents.png
Located at utility/toc/AdminPageFramework_TableOfContents.php
Copyright: Copyright (c) 2013-2022, Michael Uno
Author: Michael Uno
Since: 3.5.0
Image: http://admin-page-framework.michaeluno.jp/image/utility/table_of_contents.png
Located at utility/toc/AdminPageFramework_TableOfContents.php
Methods summary
public
|
#
__construct( string $sHTML, integer $iDepth = 4, string $sTitle = '' )
Sets up properties. Parameters
|
public
string
|