APF_Demo_PageMetaBox__Normal::setUp PHP Method

setUp() public method

* ( optional ) Use the setUp() method to define settings of this meta box.
public setUp ( )
    public function setUp()
    {
        /*
         * ( optional ) Adds a contextual help pane at the top right of the page that the meta box resides.
         */
        $this->addHelpText(__('This text will appear in the contextual help pane.', 'admin-page-framework-loader'), __('This description goes to the sidebar of the help pane.', 'admin-page-framework-loader'));
        /*
         * ( optional ) Adds setting fields into the meta box.
         */
        $this->addSettingFields(array('field_id' => 'metabox_text_field', 'type' => 'text', 'title' => __('Text Input', 'admin-page-framework-loader'), 'tip' => __('With the validation callback method, you can show field error messages to the user.', 'admin-page-framework-loader'), 'description' => __('Type more than 3 characters.', 'admin-page-framework-loader'), 'help' => __('This is help text.', 'admin-page-framework-loader'), 'help_aside' => __('This is additional help text which goes to the side bar of the help pane.', 'admin-page-framework-loader')), array('field_id' => 'metabox_text_field_repeatable', 'type' => 'text', 'title' => __('Text Repeatable', 'admin-page-framework-loader'), 'repeatable' => true), array('field_id' => 'metabox_textarea_field', 'type' => 'textarea', 'title' => __('Text Area', 'admin-page-framework-loader'), 'description' => __('The description for the field.', 'admin-page-framework-loader'), 'help' => __('This a <em>text area</em> input field, which is larger than the <em>text</em> input field.', 'admin-page-framework-loader'), 'default' => __('This is a default text value.', 'admin-page-framework-loader'), 'attributes' => array('cols' => 40)));
    }