AdminPageFrameworkLoader_AdminPage_Help_Example::replyToLoadTab PHP Method

replyToLoadTab() public method

Triggered when the tab is loaded.
public replyToLoadTab ( $oAdminPage )
    public function replyToLoadTab($oAdminPage)
    {
        $_aItems = $this->getContentsByHeader($this->getReadmeContents(), 3);
        $_iLastIndex = count($_aItems) - 1;
        foreach ($_aItems as $_iIndex => $_aContent) {
            $_oParser = new AdminPageFramework_WPReadmeParser();
            $_oParser->setText($_aContent[1]);
            $_sContent = $_oParser->get();
            $oAdminPage->addSettingSections($this->sPageSlug, array('section_id' => 'examples_' . $_iIndex, 'title' => $_aContent[0], 'collapsible' => array('toggle_all_button' => $_iLastIndex === $_iIndex ? array('bottom-right') : (0 === $_iIndex ? array('top-right') : false)), 'content' => $_sContent));
        }
    }
AdminPageFrameworkLoader_AdminPage_Help_Example