Changeset 21134 for branches/version-2_11-dev/data/class/SC_FormParam.php
- Timestamp:
- 2011/08/05 19:31:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/SC_FormParam.php
r21127 r21134 255 255 * @param integer $length チェック対象の値の長さ 256 256 * @param integer $depth 再帰実行した場合の深度 257 * @param integer $ recursion_count 再帰実行した回数257 * @param integer $error_last_key エラーメッセージを格納する配列の末端のキー 258 258 * @return void 259 259 */ 260 260 function recursionCheck($disp_name, $func, $value, &$arrErr, $error_key, 261 $length = 0, $depth = 0, $ recursion_count = 0) {261 $length = 0, $depth = 0, $error_last_key = null) { 262 262 if (is_array($value)) { 263 263 $depth++; 264 $recursion_count = 0; 265 foreach ($value as $in) { 264 foreach ($value as $key => $in) { 266 265 $this->recursionCheck($disp_name, $func, $in, $arrErr, $error_key, 267 $length, $depth, $recursion_count); 268 $recursion_count++; 266 $length, $depth, $key); 269 267 } 270 268 } else { … … 279 277 for ($i = 0; $i < $depth; $i++) { 280 278 // FIXME 二次元以上の対応 281 $error_var .= '[' . $ recursion_count. ']';279 $error_var .= '[' . $error_last_key . ']'; 282 280 } 283 281 eval($error_var . ' = $message;');
Note: See TracChangeset
for help on using the changeset viewer.