APF_Demo_AdvancedUsage_Nested_SectionB::__construct PHP Method

__construct() public method

Sets up a form section.
public __construct ( $oFactory )
    public function __construct($oFactory)
    {
        // Sections
        $oFactory->addSettingSections($this->sPageSlug, array('section_id' => $this->sSectionID, 'title' => __('Section B', 'admin-page-framework-loader'), 'description' => __('This is a second tabbed section.', 'admin-page-framework-loader'), 'section_tab_slug' => 'root_section_tab'));
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'color_in_nesting_section_b', 'title' => __('color', 'admin-page-framework-loader'), 'type' => 'color', 'repeatable' => true, 'sortable' => true));
    }
APF_Demo_AdvancedUsage_Nested_SectionB