<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
class CRM_Event_Form_SearchEvent extends CRM_Core_Form {
- function setDefaultValues() {
+ /**
+ * @return array
+ */
+ public function setDefaultValues() {
$defaults = array();
$defaults['eventsByDates'] = 0;
$this->_showHide = new CRM_Core_ShowHideBlocks();
- if (!CRM_Utils_Array::value('eventsByDates', $defaults)) {
+ if (empty($defaults['eventsByDates'])) {
$this->_showHide->addHide('id_fromToDates');
}
}
/**
- * Build the form
+ * Build the form object
*
- * @access public
*
* @return void
*/
));
}
- function postProcess() {
+ public function postProcess() {
$params = $this->controller->exportValues($this->_name);
$parent = $this->controller->getParent();
$parent->set('searchResult', 1);
}
}
}
-