Changeset 2925 for tags/2.1.3

Show
Ignore:
Timestamp:
06/27/2008 09:48:03 AM (5 months ago)
Author:
Shadowhand
Message:

Merged r2924 into tags/2.1.3

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tags/2.1.3/system/helpers/arr.php

    r1970 r2925  
    2121         * @return  array 
    2222         */ 
    23         public function rotate($source_array, $keep_keys = TRUE) 
     23        public static function rotate($source_array, $keep_keys = TRUE) 
    2424        { 
    2525                $new_array = array(); 
     
    4343         * @return  mixed   value of the requested array key 
    4444         */ 
    45         public function remove($key, & $array) 
     45        public static function remove($key, & $array) 
    4646        { 
    4747                if ( ! array_key_exists($key, $array)) 
     
    6262         * @return  array 
    6363         */ 
    64         public function unshift_assoc( array & $array, $key, $val) 
     64        public static function unshift_assoc( array & $array, $key, $val) 
    6565        { 
    6666                $array = array_reverse($array, TRUE); 
     
    8080         * @return  integer 
    8181         */ 
    82         public function binary_search($needle, $haystack, $nearest = FALSE, $sort = FALSE) 
     82        public static function binary_search($needle, $haystack, $nearest = FALSE, $sort = FALSE) 
    8383        { 
    8484                if ($sort)