Perforce Chronicle 2012.2/486814
API Documentation

Ui_Form_GridSearch Class Reference

This is the generic search sub-form utilized by the data grid. More...

Inheritance diagram for Ui_Form_GridSearch:
P4Cms_Form_SubForm

List of all members.

Public Member Functions

 init ()
 Initialize grid search form.

Detailed Description

This is the generic search sub-form utilized by the data grid.

Copyright:
2011-2012 Perforce Software. All rights reserved
License:
Please see LICENSE.txt in top-level folder of this distribution.
Version:
2012.2/486814

Member Function Documentation

Ui_Form_GridSearch::init ( )

Initialize grid search form.

    {
        $this->setName('search')
             ->setAttrib('class', 'search-form');

        // set order to place this sub-form to the top of the list
        $this->setOrder(-10);

        // add field to collect the search query
        $this->addElement(
            'Text',
            'query',
            array(
                'label'     => 'Search',
                'filters'   => array('StringTrim'),
                'autoApply' => true
            )
        );
    }

The documentation for this class was generated from the following file: