APF_Demo_AdvancedUsage_Section_Tabbed_A::__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 A', 'admin-page-framework-loader'), 'description' => __('This is the first item of the tabbed section.', 'admin-page-framework-loader')));
        // Fields
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'text_field_in_tabbed_section', 'title' => __('Text', 'admin-page-framework-loader'), 'type' => 'text', 'default' => 'xyz'), array('field_id' => 'repeatable_field_in_tabbed_sections', 'title' => __('Repeatable', 'admin-page-framework-loader'), 'type' => 'text', 'repeatable' => true));
    }
APF_Demo_AdvancedUsage_Section_Tabbed_A