APF_Demo_ManageOptions::replyToLoadPage PHP Метод

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

Called when the page starts loading.
public replyToLoadPage ( $oFactory ) : void
Результат void
    public function replyToLoadPage($oFactory)
    {
        // Set up the page settings
        $oFactory->setPageHeadingTabsVisibility(false);
        // disables the page heading tabs by passing false.
        $oFactory->setInPageTabTag('h2');
        // sets the tag used for in-page tabs
        // Enqueue styles
        $oFactory->enqueueStyle(AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/css/code.css');
        // Tabs
        new APF_Demo_ManageOptions_SavedData($oFactory, $this->_sPageSlug);
        new APF_Demo_ManageOptions_Property($oFactory, $this->_sPageSlug);
        new APF_Demo_ManageOptions_Message($oFactory, $this->_sPageSlug);
        new APF_Demo_ManageOptions_Export($oFactory, $this->_sPageSlug);
        new APF_Demo_ManageOptions_Import($oFactory, $this->_sPageSlug);
        new APF_Demo_ManageOptions_Reset($oFactory, $this->_sPageSlug);
        // Disabled tab example
        $oFactory->addInPageTabs($this->_sPageSlug, array('tab_slug' => 'disabled', 'title' => __('Disabled', 'admin-page-framework-loader'), 'disabled' => true, 'attributes' => array('title' => __(' the disabled argument is true, this tab will be disabled and has no link.', 'admin-page-framework-loader'))));
    }