Avoid CiviCRM running full drupal cache flush, as this results in CiviCRM clobbering...
[civicrm-core.git] / CRM / Utils / PagerAToZ.php
index ddbf0ed84941c57da76befb2d4ef5bba4ff72d1e..2639d31d9306be1cf10a0d59290b795ed1a934c2 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$
  *
  */
@@ -40,7 +40,7 @@
 class CRM_Utils_PagerAToZ {
 
   /**
-   * Returns the alphabetic array for sorting by character
+   * Returns the alphabetic array for sorting by character.
    *
    * @param array $query
    *   The query object.
@@ -51,7 +51,6 @@ class CRM_Utils_PagerAToZ {
    *
    * @return string
    *   The html formatted string
-   * @static
    */
   public static function getAToZBar(&$query, $sortByCharacter, $isDAO = FALSE) {
     $AToZBar = self::createLinks($query, $sortByCharacter, $isDAO);
@@ -59,11 +58,10 @@ class CRM_Utils_PagerAToZ {
   }
 
   /**
-   * Return the all the static characters
+   * Return the all the static characters.
    *
    * @return array
    *   is a array of static characters
-   * @static
    */
   public static function getStaticCharacters() {
     $staticAlphabets = array(
@@ -92,20 +90,19 @@ class CRM_Utils_PagerAToZ {
       'W',
       'X',
       'Y',
-      'Z'
+      'Z',
     );
     return $staticAlphabets;
   }
 
   /**
-   * Return the all the dynamic characters
+   * Return the all the dynamic characters.
    *
    * @param $query
    * @param $isDAO
    *
    * @return array
    *   is a array of dynamic characters
-   * @static
    */
   public static function getDynamicCharacters(&$query, $isDAO) {
     if ($isDAO) {
@@ -126,7 +123,7 @@ class CRM_Utils_PagerAToZ {
   }
 
   /**
-   * Create the links
+   * Create the links.
    *
    * @param array $query
    *   The form values for search.
@@ -137,7 +134,6 @@ class CRM_Utils_PagerAToZ {
    *
    * @return array
    *   with links
-   * @static
    */
   public static function createLinks(&$query, $sortByCharacter, $isDAO) {
     $AToZBar = self::getStaticCharacters();
@@ -202,4 +198,5 @@ class CRM_Utils_PagerAToZ {
     $aToZBar[] = array('item' => $url);
     return $aToZBar;
   }
+
 }