APF_MetaBox_TabbedSections::setUp PHP Method

setUp() public method

Do set-ups.
public setUp ( )
    public function setUp()
    {
        /*
         * Create tabbed sections.
         */
        $this->addSettingSections(array('section_id' => '_tabbed_sections_a', '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')));
        $this->addSettingSections(array('section_id' => '_tabbed_sections_b', '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')));
        /*
         * Add form fields into the meta box.
         */
        $this->addSettingFields('_tabbed_sections_a', 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 Field', 'admin-page-framework-loader'), 'type' => 'text', 'repeatable' => true));
        $this->addSettingFields('_tabbed_sections_b', 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_MetaBox_TabbedSections