APF_Demo_AdvancedUsage_Verification_Section::__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' => __('Text Areas', 'admin-page-framework-loader'), 'description' => __('These are text area fields.', 'admin-page-framework-loader'), 'order' => 20));
        /*
         * Text area fields.
         */
        $oFactory->addSettingFields($this->sSectionID, array('field_id' => 'item_a', 'title' => __('Choose Item', 'admin-page-framework-loader'), 'type' => 'select', 'label' => array(0 => '--- ' . __('Select Item', 'admin-page-framework-loader') . ' ---', 'one' => __('One', 'admin-page-framework-loader'), 'two' => __('Two', 'admin-page-framework-loader'), 'three' => __('Three', 'admin-page-framework-loader'))), array('field_id' => 'item_b', 'type' => 'text', 'description' => __('Select one above or enter text here.', 'admin-page-framework-loader')));
        add_filter('validation_' . $oFactory->oProp->sClassName . '_section_verification', array($this, 'replyToValidateSection'), 10, 4);
    }
APF_Demo_AdvancedUsage_Verification_Section