<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
*/
class CRM_Event_Form_SearchEvent extends CRM_Core_Form {
- function setDefaultValues() {
+ /**
+ * @return array
+ */
+ public function setDefaultValues() {
$defaults = array();
$defaults['eventsByDates'] = 0;
}
/**
- * Build the form
+ * Build the form object
*
- * @access public
*
* @return void
*/
CRM_Campaign_BAO_Campaign::addCampaignInComponentSearch($this);
$this->addButtons(array(
- array(
- 'type' => 'refresh',
- 'name' => ts('Search'),
- 'isDefault' => TRUE,
- ),
- ));
+ array(
+ 'type' => 'refresh',
+ 'name' => ts('Search'),
+ 'isDefault' => TRUE,
+ ),
+ ));
}
- function postProcess() {
+ public function postProcess() {
$params = $this->controller->exportValues($this->_name);
$parent = $this->controller->getParent();
$parent->set('searchResult', 1);
}
}
}
-