Exemplo n.º 1
0
 /**
  * Setter function for the default sorting direction of the Fetch
  * function. Available options are RAND, ASC or DESC.
  *
  * @param string $direction
  *  The direction that entries should be sorted in, available options
  *  are RAND, ASC or DESC.
  */
 public static function setFetchSortingDirection($direction)
 {
     $direction = strtoupper($direction);
     if ($direction == 'RANDOM') {
         $direction = 'RAND';
     }
     self::$_fetchSortDirection = in_array($direction, array('RAND', 'ASC', 'DESC')) ? $direction : null;
 }