CRM-13863 - Double title removal
[civicrm-core.git] / CRM / Report / Utils / Get.php
index b8b4fd61e28da396bc29bd609709e819aa6f5448..cad6f333e7563cf5abb489d508ef9a2e96a76b2d 100644 (file)
  */
 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');
 
@@ -117,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');
 
@@ -168,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(
@@ -176,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) {
@@ -202,6 +230,9 @@ class CRM_Report_Utils_Get {
   }
 
   //unset default filters
+  /**
+   * @param $defaults
+   */
   static function unsetFilters(&$defaults) {
     static $unsetFlag = TRUE;
     if ($unsetFlag) {
@@ -219,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;
@@ -243,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)) {