Avoid CiviCRM running full drupal cache flush, as this results in CiviCRM clobbering...
[civicrm-core.git] / CRM / Utils / Sort.php
index 8bc250f0364a94901f2e811808fe8b1799f8e655..f509ab3dc2d22182c35a4183568bd29afe4f2679 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | 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
+ * @copyright CiviCRM LLC (c) 2004-2015
  * $Id$
  *
  */
@@ -41,7 +41,7 @@
  * if introducing additional functionality
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
  * $Id$
  *
  */
@@ -146,7 +146,7 @@ class CRM_Utils_Sort {
   }
 
   /**
-   * Function returns the string for the order by clause
+   * Function returns the string for the order by clause.
    *
    * @return string
    *   the order by clause
@@ -169,7 +169,7 @@ class CRM_Utils_Sort {
   }
 
   /**
-   * Create the sortID string to be used in the GET param
+   * Create the sortID string to be used in the GET param.
    *
    * @param int $index
    *   The field index.
@@ -184,7 +184,7 @@ class CRM_Utils_Sort {
   }
 
   /**
-   * Init the sort ID values in the object
+   * Init the sort ID values in the object.
    *
    * @param string $defaultSortOrder
    *   The sort order to use by default.
@@ -200,7 +200,7 @@ class CRM_Utils_Sort {
 
     list($current, $direction) = explode('_', $url);
 
-    // if current is wierd and does not exist in the vars array, skip
+    // if current is weird and does not exist in the vars array, skip
     if (!array_key_exists($current, $this->_vars)) {
       return;
     }
@@ -221,7 +221,7 @@ class CRM_Utils_Sort {
   }
 
   /**
-   * Init the object
+   * Init the object.
    *
    * @param string $defaultSortOrder
    *   The sort order to use by default.
@@ -257,7 +257,7 @@ class CRM_Utils_Sort {
   }
 
   /**
-   * Getter for currentSortID
+   * Getter for currentSortID.
    *
    * @return int
    *   returns of the current sort id
@@ -268,7 +268,7 @@ class CRM_Utils_Sort {
   }
 
   /**
-   * Getter for currentSortDirection
+   * Getter for currentSortDirection.
    *
    * @return int
    *   returns of the current sort direction
@@ -303,4 +303,5 @@ class CRM_Utils_Sort {
     // however, as I understand we don't want equality here:
     return -1;
   }
+
 }