- Timestamp:
- 2013/05/02 18:11:36 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/tests/class/test/util/Test_Utils.php
r22567 r22796 29 29 * @version $Id$ 30 30 */ 31 class Test_Utils 32 { 31 class Test_Utils { 33 32 34 33 /** … … 41 40 * @return 指定したキーのみを持つ連想配列 42 41 */ 43 public static function mapArray($input_array, $map_keys) 44 { 42 public static function mapArray($input_array, $map_keys) { 45 43 $output_array = array(); 46 44 foreach ($map_keys as $index => $map_key) { … … 60 58 * @return 指定のキーだけを抜き出した配列 61 59 */ 62 public static function mapCols($input_array, $key) 63 { 60 public static function mapCols($input_array, $key) { 64 61 $output_array = array(); 65 62 foreach ($input_array as $data) { … … 78 75 * @param new_array 追加要素を持つ配列 79 76 */ 80 public static function array_append(&$orig_array, $new_array) 81 { 77 public static function array_append(&$orig_array, $new_array) { 82 78 foreach ($new_array as $element) { 83 79 $orig_array[] = $element;
Note: See TracChangeset
for help on using the changeset viewer.