CRM-13863 - Double title removal
[civicrm-core.git] / CRM / Report / Utils / Get.php
index 87c84ac19fc9c0d7303b40bf954db69185886622..cad6f333e7563cf5abb489d508ef9a2e96a76b2d 100644 (file)
@@ -2,9 +2,9 @@
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | 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_Report_Utils_Get {
 
+  /**
+   * @param $name
+   * @param $type
+   *
+   * @return mixed|null
+   */
   static function getTypedValue($name, $type) {
     $value = CRM_Utils_Array::value($name, $_GET);
     if ($value === NULL) {
@@ -46,6 +52,11 @@ class CRM_Report_Utils_Get {
     );
   }
 
+  /**
+   * @param $fieldName
+   * @param $field
+   * @param $defaults
+   */
   static function dateParam($fieldName, &$field, &$defaults) {
     // type = 12 (datetime) is not recognized by Utils_Type::escape() method,
     // and therefore the below hack
@@ -84,6 +95,11 @@ class CRM_Report_Utils_Get {
     }
   }
 
+  /**
+   * @param $fieldName
+   * @param $field
+   * @param $defaults
+   */
   static function stringParam($fieldName, &$field, &$defaults) {
     $fieldOP = CRM_Utils_Array::value("{$fieldName}_op", $_GET, 'like');
 
@@ -107,6 +123,7 @@ class CRM_Report_Utils_Get {
         break;
       case 'in':
       case 'notin':
+      case 'mhas':
         $value = self::getTypedValue("{$fieldName}_value", CRM_Utils_Type::T_STRING);
         if ($value !== NULL) {
           $defaults["{$fieldName}_value"] = explode(",", $value);
@@ -116,6 +133,11 @@ class CRM_Report_Utils_Get {
     }
   }
 
+  /**
+   * @param $fieldName
+   * @param $field
+   * @param $defaults
+   */
   static function intParam($fieldName, &$field, &$defaults) {
     $fieldOP = CRM_Utils_Array::value("{$fieldName}_op", $_GET, 'eq');
 
@@ -167,6 +189,9 @@ class CRM_Report_Utils_Get {
     }
   }
 
+  /**
+   * @param $defaults
+   */
   static function processChart(&$defaults) {
     $chartType = CRM_Utils_Array::value("charts", $_GET);
     if (in_array($chartType, array(
@@ -175,6 +200,10 @@ class CRM_Report_Utils_Get {
     }
   }
 
+  /**
+   * @param $fieldGrp
+   * @param $defaults
+   */
   static function processFilter(&$fieldGrp, &$defaults) {
     // process only filters for now
     foreach ($fieldGrp as $tableName => $fields) {
@@ -201,6 +230,9 @@ class CRM_Report_Utils_Get {
   }
 
   //unset default filters
+  /**
+   * @param $defaults
+   */
   static function unsetFilters(&$defaults) {
     static $unsetFlag = TRUE;
     if ($unsetFlag) {
@@ -218,6 +250,10 @@ class CRM_Report_Utils_Get {
     }
   }
 
+  /**
+   * @param $fieldGrp
+   * @param $defaults
+   */
   static function processGroupBy(&$fieldGrp, &$defaults) {
     // process only group_bys for now
     $flag = FALSE;
@@ -242,6 +278,10 @@ class CRM_Report_Utils_Get {
     }
   }
 
+  /**
+   * @param $reportFields
+   * @param $defaults
+   */
   static function processFields(&$reportFields, &$defaults) {
     //add filters from url
     if (is_array($reportFields)) {