APF_Demo_AdvancedUsage_Section_Collapsible_B::__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 B', 'admin-page-framework-loader'), 'description' => __('The <code>is_collapsed</code> argument can determine the default state of whether it is collapsed or expanded.', 'admin-page-framework-loader'), 'collapsible' => array('is_collapsed' => false)));
        // Fields
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'radio_in_collapsible_section', 'title' => __('Radio', 'admin-page-framework-loader'), 'type' => 'radio', 'label' => array('a' => 'A', 'b' => 'B', 'c' => 'C'), 'default' => 'b'));
    }
APF_Demo_AdvancedUsage_Section_Collapsible_B