Changeset 13566 for branches/dev/html/test/adachi/SC_FormParamsManager.php
- Timestamp:
- 2007/05/29 01:29:52 (19 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/test/adachi/SC_FormParamsManager.php
r13565 r13566 40 40 41 41 // Single Validation 42 foreach ($this-> $_arrParamsInfo as $_key => $objParam) {43 $ arrGroups[$objParam->getGroup()][$_key] = $objParam;42 foreach ($this->_arrParamsInfo as $_key => $objParam) { 43 $objParam->has_group() ? $arrGroups[$objParam->getGroup()][$_key] = $objParam; 44 44 $arrParentAndChild 45 45 … … 49 49 $objValidator = SC_Validate::factory($method, $args); 50 50 51 if ($objValidator->validate($objParam ->getValue)->is_error()) {51 if ($objValidator->validate($objParam)->is_error()) { 52 52 $this->arrErr[$_key] = $objValidate->getErrorMessage(); 53 53 } … … 57 57 // Group Validation 58 58 foreach ($arrGroups as $group => $_value) { 59 foreach ($_value as $_key => $objParam) {60 $objValidator = SC_Validate::factory('GROUP', $objParam);61 if ($objValidator->validate()->is_error()) {62 $this->arrErr[$group] =63 }59 $objValidator = SC_Validate::factory('GROUP'); 60 if ($objValidator->validate($arrGroups[$group])->is_error()) { 61 $this->arrErr[$group] = $objValidator->getErrorMessage(); 62 } 63 } 64 64 } 65 65 function getEM(){
Note: See TracChangeset
for help on using the changeset viewer.
