APF_Demo_BuiltinFieldTypes_Text::__construct PHP Метод

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

Adds in-page tabs and sets up hooks.
public __construct ( $oFactory )
    public function __construct($oFactory)
    {
        /*
         * ( optional ) Add in-page tabs - In Admin Page Framework, there are two kinds of tabs: page-heading tabs and in-page tabs.
         * Page-heading tabs show the titles of sub-page items which belong to the set root page. 
         * In-page tabs show tabs that you define to be embedded within an individual page.
         */
        $oFactory->addInPageTabs($this->sPageSlug, array('tab_slug' => $this->sTabSlug, 'title' => __('Text', 'admin-page-framework-loader'), 'order' => 1));
        add_action('load_' . $this->sPageSlug . '_' . $this->sTabSlug, array($this, 'replyToLoadTab'));
        add_filter('footer_left_' . $this->sPageSlug . '_' . $this->sTabSlug, array($this, 'replyToModifyLeftFooterText'));
        add_filter('footer_right_' . $this->sPageSlug . '_' . $this->sTabSlug, array($this, 'replyToModifyRightFooterText'));
    }