APF_Demo_AdvancedUsage_Mixed_Subfield::__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' => __('Mixed Field Types with Sub-fields', 'admin-page-framework-loader'), 'description' => __('As of v3, it is possible to mix field types in one field on a per-ID basis.', 'admin-page-framework-loader')));
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'mixed_fields', 'title' => __('Text and Hidden', 'admin-page-framework-loader'), 'type' => 'text', 'default' => 'abc', 'attributes' => array(), array('type' => 'textarea', 'default' => __('A hidden field is embedded. This is useful when you need to embed extra information to be sent with the visible elements.', 'admin-page-framework-loader')), array('type' => 'hidden', 'value' => 'xyz')));
    }
APF_Demo_AdvancedUsage_Mixed_Subfield