APF_Demo_BuiltinFieldTypes_System_Info::__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' => __('System Custom Field Type', 'admin-page-framework-loader'), 'description' => __('Displays the system information.', 'admin-page-framework-loader')));
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'system_information', 'type' => 'system', 'title' => __('System Information', 'admin-page-framework-loader'), 'data' => array(__('Custom Data', 'admin-page-framework-loader') => __('Here you can insert your own custom data with the data argument.', 'admin-page-framework-loader'), __('Current Time', 'admin-page-framework') => ''), 'attributes' => array('name' => ''), 'description' => array("<pre class='field-argument-example'>" . $oFactory->oWPRMParser->getSyntaxHighlightedPHPCode(<<<EOD
array(
    'type'          => 'system',     
    'data'          => array(
        'Custom Data'  => 'Here you can insert your own custom data with the data argument.',
        'Current Time' => '', // Removes the Current Time Section.
    ),
    'attributes'    => array(
        'name'  => '',
    ),
)
EOD
) . "</pre>")), array('field_id' => 'saved_options', 'type' => 'system', 'title' => __('Saved Options', 'admin-page-framework-loader'), 'data' => array('Admin Page Framework' => '', 'WordPress' => '', 'PHP' => '', 'Server' => '', 'PHP Error Log' => '', 'MySQL' => '', 'MySQL Error Log' => '', 'Browser' => '') + $oFactory->oProp->aOptions, 'attributes' => array('name' => '', 'rows' => 20), 'description' => array("<pre class='field-argument-example'>" . $oFactory->oWPRMParser->getSyntaxHighlightedPHPCode(<<<EOD
array(
    'type'          => 'system',     
    'data'          => array(
        // Removes the default data by passing an empty value below.
        'Admin Page Framework'  => '', 
        'WordPress'             => '', 
        'PHP'                   => '', 
        'Server'                => '',
        'PHP Error Log'         => '',
        'MySQL'                 => '', 
        'MySQL Error Log'       => '',                    
        'Browser'               => '',                         
    ) 
    + \$oFactory->oProp->aOptions,
    'attributes'    => array(
        'name'  => '',
        'rows'   => 20,
    ),        
)
EOD
) . "</pre>")));
    }
APF_Demo_BuiltinFieldTypes_System_Info