APF_Demo_AdvancedUsage_Section_SectionTitleField::__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' => __('Section Title', 'admin-page-framework-loader'), 'description' => __('The <code>section_title</code> field type will be placed in the position of the section title if set. If not set, the set section title will be placed. Only one <code>section_title</code> field is allowed per section.', 'admin-page-framework-loader')));
        // Fields
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'section_title_field', 'type' => 'section_title', 'label' => '<h3>' . __('Section Name', 'admin-page-framework-loader') . '</h3>', 'attributes' => array('size' => 30)));
    }
APF_Demo_AdvancedUsage_Section_SectionTitleField