File size: 1.18Kb
<?php
/**
* SocialEngine
*
* @category Application_Core
* @package Core
* @copyright Copyright 2006-2020 Webligo Developments
* @license http://www.socialengine.com/license/
* @version $Id: Search.php 9747 2012-07-26 02:08:08Z john $
* @author John
*/
/**
* @category Application_Core
* @package Core
* @copyright Copyright 2006-2020 Webligo Developments
* @license http://www.socialengine.com/license/
*/
class Core_Form_Search extends Engine_Form
{
public function init()
{
$this
->setMethod('get')
->setDecorators(array('FormElements', 'Form'))
->setAction(Zend_Controller_Front::getInstance()->getRouter()->assemble(array()))
;
$this->addElement('Text', 'query', array(
'decorators' => array(
'ViewHelper',
),
));
$this->addElement('Select', 'type', array(
'multiOptions' => array(
'' => 'Everything',
),
'decorators' => array(
'ViewHelper',
),
));
$this->addElement('Button', 'submit', array(
'label' => 'Search',
'type' => 'submit',
'ignore' => true,
'decorators' => array(
'ViewHelper',
),
));
}
}