APF_Demo_AdvancedUsage_Section_Tabbed_B::__construct PHP Метод

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

Sets up a form section.
public __construct ( $oFactory )
    public function __construct($oFactory)
    {
        // Section
        $oFactory->addSettingSections($this->sPageSlug, array('section_id' => $this->sSectionID, 'tab_slug' => $this->sTabSlug, 'section_tab_slug' => 'tabbed_sections', 'title' => __('Section Tab B', 'admin-page-framework-loader'), 'description' => __('This is the second item of the tabbed section.', 'admin-page-framework-loader')));
        // Fields
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'size_in_tabbed_sections', 'title' => __('Size', 'admin-page-framework-loader'), 'type' => 'size'), array('field_id' => 'select_in_tabbed_sections', 'title' => __('Select', 'admin-page-framework-loader'), 'type' => 'select', 'default' => 'b', 'label' => array('a' => 'A', 'b' => 'B', 'c' => 'C')));
    }
APF_Demo_AdvancedUsage_Section_Tabbed_B