CRM-16566 upgrade authorize.net to support new style IPNS
[civicrm-core.git] / CRM / Utils / PagerAToZ.php
index 44b534ae4c52e103d7a4467246ff5d703af3e40f..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$
  *
  */
 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
-   * @param string $sortByCharacter The character that we are potentially sorting on
+   * @param array $query
+   *   The query object.
+   * @param string $sortByCharacter
+   *   The character that we are potentially sorting on.
    *
    * @param bool $isDAO
    *
-   * @return string                 The html formatted string
-   * @access public
-   * @static
+   * @return string
+   *   The html formatted string
    */
   public static function getAToZBar(&$query, $sortByCharacter, $isDAO = FALSE) {
     $AToZBar = self::createLinks($query, $sortByCharacter, $isDAO);
@@ -57,26 +58,51 @@ class CRM_Utils_PagerAToZ {
   }
 
   /**
-   * Return the all the static characters
+   * Return the all the static characters.
    *
-   * @return array $staticAlphabets is a array of static characters
-   * @access private
-   * @static
+   * @return array
+   *   is a array of static characters
    */
   public static function getStaticCharacters() {
-    $staticAlphabets = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
+    $staticAlphabets = array(
+      'A',
+      'B',
+      'C',
+      'D',
+      'E',
+      'F',
+      'G',
+      'H',
+      'I',
+      'J',
+      'K',
+      'L',
+      'M',
+      'N',
+      'O',
+      'P',
+      'Q',
+      'R',
+      'S',
+      'T',
+      'U',
+      'V',
+      'W',
+      'X',
+      'Y',
+      'Z',
+    );
     return $staticAlphabets;
   }
 
   /**
-   * Return the all the dynamic characters
+   * Return the all the dynamic characters.
    *
    * @param $query
    * @param $isDAO
    *
-   * @return array $dynamicAlphabets is a array of dynamic characters
-   * @access private
-   * @static
+   * @return array
+   *   is a array of dynamic characters
    */
   public static function getDynamicCharacters(&$query, $isDAO) {
     if ($isDAO) {
@@ -97,16 +123,17 @@ class CRM_Utils_PagerAToZ {
   }
 
   /**
-   * Create the links
+   * Create the links.
    *
-   * @param array $query The form values for search
-   * @param string $sortByCharacter The character that we are potentially sorting on
+   * @param array $query
+   *   The form values for search.
+   * @param string $sortByCharacter
+   *   The character that we are potentially sorting on.
    *
    * @param $isDAO
    *
-   * @return array with links
-   * @access private
-   * @static
+   * @return array
+   *   with links
    */
   public static function createLinks(&$query, $sortByCharacter, $isDAO) {
     $AToZBar = self::getStaticCharacters();
@@ -123,7 +150,7 @@ class CRM_Utils_PagerAToZ {
     //get the current path
     $path = CRM_Utils_System::currentPath();
 
-    $qfKey = null;
+    $qfKey = NULL;
     if (isset($query->_formValues)) {
       $qfKey = CRM_Utils_Array::value('qfKey', $query->_formValues);
     }
@@ -171,5 +198,5 @@ class CRM_Utils_PagerAToZ {
     $aToZBar[] = array('item' => $url);
     return $aToZBar;
   }
-}
 
+}