APF_TaxonomyField::setUp PHP Method

setUp() public method

* ( optional ) Use the setUp() method to define settings of this taxonomy fields.
public setUp ( )
    public function setUp()
    {
        /*
         * ( optional ) Adds setting fields into the meta box.
         */
        $this->addSettingFields(array('field_id' => 'text_field', 'type' => 'text', 'title' => __('Text Input', 'admin-page-framework-loader'), 'description' => __('The description for the field.', 'admin-page-framework-loader'), 'help' => 'This is help text.', 'help_aside' => 'This is additional help text which goes to the side bar of the help pane.'), array('field_id' => 'text_field_repeatable', 'type' => 'text', 'title' => __('Text Repeatable', 'admin-page-framework-loader'), 'repeatable' => true), array('field_id' => '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)), array('field_id' => 'image_upload', 'type' => 'image', 'title' => __('Image Upload', 'admin-page-framework-loader'), 'attributes' => array('preview' => array('style' => 'max-width: 200px;'))));
        // Customize the sorting algorithm of the terms of a custom column.
        add_filter('get_terms', array($this, 'replyToSortCustomColumn'), 10, 3);
    }