APF_MetaBox_RepeatableTabbedSections::setUp PHP Method

setUp() public method

Do set-ups.
public setUp ( )
    public function setUp()
    {
        /*
         * Create tabbed sections.
         */
        $this->addSettingSections(array('section_id' => '_repeatable_tabbed_sections', 'section_tab_slug' => 'repeatable_tabbes_sections', 'title' => __('Repeatable', 'admin-page-framework-loader'), 'description' => __('It is possible to tab repeatable sections.', 'admin-page-framework-loader'), 'repeatable' => true, 'sortable' => true));
        /*
         * Add form fields into the meta box.
         */
        $this->addSettingFields('_repeatable_tabbed_sections', array('field_id' => 'tab_title', 'type' => 'section_title', 'label' => __('Name', 'admin-page-framework-loader'), 'attributes' => array('size' => 10)), array('field_id' => 'text_field_in_tabbed_section_in_repeatable_sections', 'title' => __('Text', 'admin-page-framework-loader'), 'type' => 'text', 'default' => 'xyz'), array('field_id' => 'repeatable_field_in_tabbed_sections_in_repetable_sections', 'title' => __('Repeatable Field', 'admin-page-framework-loader'), 'type' => 'text', 'repeatable' => true), array('field_id' => 'size_in_tabbed_sections_in_repeatable_sections', 'title' => __('Size', 'admin-page-framework-loader'), 'type' => 'size'), array('field_id' => 'select_in_tabbed_sections_in_repeatable_sections', 'title' => __('Select', 'admin-page-framework-loader'), 'type' => 'select', 'default' => 'b', 'label' => array('a' => 'A', 'b' => 'B', 'c' => 'C')), array('field_id' => 'color_in_tabbed_sections_in_repeatable_sections', 'title' => __('Color', 'admin-page-framework-loader'), 'type' => 'color'), array());
    }
APF_MetaBox_RepeatableTabbedSections