APF_Demo_AdvancedUsage_Section_Collapsible_A::__construct PHP Method

__construct() public method

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, 'title' => __('Collapsible Section A', 'admin-page-framework-loader'), 'description' => __('This section can be expanded and collapsed.', 'admin-page-framework-loader'), 'collapsible' => array('toggle_all_button' => 'top-right')));
        // Fields
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'text_field_in_collapsible_section', 'title' => __('Text', 'admin-page-framework-loader'), 'type' => 'text', 'repeatable' => true, 'sortable' => true));
    }
APF_Demo_AdvancedUsage_Section_Collapsible_A