APF_Demo_AdvancedUsage_Argument_DebugInfo::__construct PHP Method

__construct() public method

Sets up a form section.
public __construct ( $oFactory )
    public function __construct($oFactory)
    {
        // Section
        $oFactory->addSettingSections($this->sPageSlug, array('tab_slug' => $this->sTabSlug, 'section_id' => $this->sSectionID, 'title' => __('Unsaving Items', 'admin-page-framework-loader'), 'show_debug_info' => false, 'description' => array(__('With the <code>show_debug_info</code> argument, you can control whether a tool-tip showing section/field arguments or not.', 'admin-page-framework-loader'), __('Notice that this section does not have the tool-tip.', 'admin-page-framework-loader'))));
        // Fields
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'show_debug_info', 'title' => __('Show Debug Info', 'admin-page-framework-loader'), 'content' => '', 'description' => __('Notice that this field has the the tool-tip showing the field arguments.', 'admin-page-framework-loader'), 'show_debug_info' => true), array('field_id' => 'do_not_show_debug_info', 'title' => __('No Debug Info', 'admin-page-framework-loader'), 'content' => '', 'show_debug_info' => false, 'description' => __('Notice that this field doe not have the the tool-tip showing the field arguments.', 'admin-page-framework-loader')));
    }
APF_Demo_AdvancedUsage_Argument_DebugInfo