further comment fixes
[civicrm-core.git] / CRM / Campaign / Form / Search / Survey.php
index d093baf2e591cad7aec8c9ab6166ffaf938f4796..e1d1bfc045d9e692e68ad3d1336b9aa8aaee2aeb 100755 (executable)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
  */
 
 /**
- * Files required
+ * Files required.
  */
 class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form {
 
   /**
-   * Are we forced to run a search
+   * Are we forced to run a search.
    *
    * @var int
    */
   protected $_force;
 
   /**
-   * Processing needed for buildForm and later
-   *
-   * @return void
-   */ function preProcess() {
-    $this->_search    = CRM_Utils_Array::value('search', $_GET);
-    $this->_force     = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE, FALSE);
+   * Processing needed for buildForm and later.
+   */
+  public function preProcess() {
+    $this->_search = CRM_Utils_Array::value('search', $_GET);
+    $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE, FALSE);
     $this->_searchTab = CRM_Utils_Request::retrieve('type', 'String', $this, FALSE, 'survey');
 
     //when we do load tab, lets load the default objects.
@@ -68,10 +65,7 @@ class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form {
   }
 
   /**
-   * Build the form object
-   *
-   *
-   * @return void
+   * Build the form object.
    */
   public function buildQuickForm() {
     if ($this->_search) {
@@ -85,7 +79,8 @@ class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form {
     $surveyTypes = CRM_Campaign_BAO_Survey::getSurveyActivityType();
     $this->add('select', 'activity_type_id',
       ts('Activity Type'), array(
-        '' => ts('- select -')) + $surveyTypes
+        '' => ts('- select -'),
+      ) + $surveyTypes
     );
     $this->set('surveyTypes', $surveyTypes);
     $this->assign('surveyTypes', json_encode($surveyTypes));
@@ -109,4 +104,5 @@ class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form {
     $this->set('searchParams', $this->_searchParams);
     $this->assign('searchParams', json_encode($this->_searchParams));
   }
+
 }