Merge pull request #4959 from rohankatkar/batch-17
[civicrm-core.git] / CRM / Event / Form / SearchEvent.php
index af55dc0f182059c66198e87185699655ee237835..a0a2cd6be403b49e95b2b1ec5a99e18201221806 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -37,7 +37,7 @@ class CRM_Event_Form_SearchEvent extends CRM_Core_Form {
   /**
    * @return array
    */
-  function setDefaultValues() {
+  public function setDefaultValues() {
     $defaults = array();
     $defaults['eventsByDates'] = 0;
 
@@ -51,9 +51,8 @@ class CRM_Event_Form_SearchEvent extends CRM_Core_Form {
   }
 
   /**
-   * Build the form
+   * Build the form object
    *
-   * @access public
    *
    * @return void
    */
@@ -78,15 +77,15 @@ class CRM_Event_Form_SearchEvent extends CRM_Core_Form {
     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);
@@ -111,4 +110,3 @@ class CRM_Event_Form_SearchEvent extends CRM_Core_Form {
     }
   }
 }
-