APF_Demo_AdvancedUsage_Callback_FieldDefinition::__construct PHP Метод

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

Sets up a form section.
public __construct ( $oFactory )
    public function __construct($oFactory)
    {
        // Section
        $oFactory->addSettingSections($this->sPageSlug, array('tab_slug' => $this->sTabSlug, 'section_id' => $this->sSectionID, 'title' => __('Using Callbacks', 'admin-page-framework-loader'), 'description' => __('These fields are (re)defined with callbacks.', 'admin-page-framework-loader')));
        // Fields
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'callback_example', 'type' => 'select'), array('field_id' => 'apf_post_titles', 'type' => 'checkbox', 'label_min_width' => '100%'));
        add_filter('field_definition_' . $oFactory->oProp->sClassName . '_' . $this->sSectionID . '_callback_example', array($this, 'replyToRedefineExampleField'));
        add_filter('field_definition_' . $oFactory->oProp->sClassName . '_' . $this->sSectionID . '_apf_post_titles', array($this, 'replyToRedefinePostTitleField'));
    }