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