AdminPageFramework_TableOfContents::get PHP Метод

get() публичный Метод

public get ( )
    public function get()
    {
        return $this->getTOC() . $this->getContents();
    }

Usage Example

 /**
  * 
  * @since       3.5.3
  */
 protected function _getReadmeContents($sFilePath, $sTOCTitle, $asSections = array())
 {
     $_oWPReadmeParser = new AdminPageFramework_WPReadmeParser($sFilePath, array('%PLUGIN_DIR_URL%' => AdminPageFrameworkLoader_Registry::getPluginURL(), '%WP_ADMIN_URL%' => admin_url()), array('content_before_parsing' => array($this, '_replyToProcessShortcodes')));
     $_sContent = '';
     foreach ((array) $asSections as $_sSection) {
         $_sContent .= $_oWPReadmeParser->getSection($_sSection);
     }
     if ($sTOCTitle) {
         $_oTOC = new AdminPageFramework_TableOfContents($_sContent, 4, $sTOCTitle);
         return $_oTOC->get();
     }
     return '' . $_sContent;
 }