APF_Demo_CustomFieldType_PostTypeTaxonomy::replyToLoadTab PHP Метод

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

Triggered when the tab starts loading.
public replyToLoadTab ( $oAdminPage )
    public function replyToLoadTab($oAdminPage)
    {
        // $this->registerFieldTypes( $this->sClassName );
        add_action('do_' . $this->sPageSlug . '_' . $this->sTabSlug, array($this, 'replyToDoTab'));
        // Section
        $oAdminPage->addSettingSections($this->sPageSlug, array('section_id' => $this->sSectionID, 'tab_slug' => $this->sTabSlug, 'title' => __('Post Type Taxonomy Terms', 'admin-page-framework-loader'), 'description' => array(__('When the user checks on a post type, associated taxonomy term check-boxes will appear.', 'admin-page-framework-loader'))));
        // Fields
        $oAdminPage->addSettingFields($this->sSectionID, array('field_id' => 'default', 'type' => 'post_type_taxonomy', 'title' => __('Default', 'admin-page-framework-loader'), 'description' => array(sprintf(__('For the argument of <code>query</code>, see <a href="%1$s" target="_blank">here</a>.', 'admin-page-framework-loader'), 'http://codex.wordpress.org/Function_Reference/get_post_types#Parameters'), "<pre>" . $oAdminPage->oWPRMParser->getSyntaxHighlightedPHPCode(<<<EOD
array(
    'type'          => 'post_type_taxonomy',  
)
EOD
) . "</pre>")), array('field_id' => 'repeatable_and_sortable', 'type' => 'post_type_taxonomy', 'title' => __('Repeatable and Sortable', 'admin-page-framework-loader'), 'repeatable' => true, 'sortable' => true, 'description' => array("<pre>" . $oAdminPage->oWPRMParser->getSyntaxHighlightedPHPCode(<<<EOD
array(
    'type'          => 'post_type_taxonomy',
    'repeatable'    => true,
    'sortable'      => true,    
)
EOD
) . "</pre>")), array());
    }