Ejemplo n.º 1
0
 /**
  * a function that is passed to PHP's usort function in order to determine
  * the correct order of an array of ticket objects
  *
  * @param	Codebase_Model_Ticket	$a
  * @param	Codebase_Model_Ticket	$b
  * @return	type
  * @static
  */
 public static function sort(Codebase_Model_Ticket $a, Codebase_Model_Ticket $b)
 {
     $return_value = 0;
     if ($a->get_ordinal() != $b->get_ordinal()) {
         $return_value = $a->get_ordinal() < $b->get_ordinal() ? -1 : 1;
     }
     return $return_value;
 }