Changeset 4684
- Timestamp:
- 07/20/07 06:25:19 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfYzClientSideValidationPlugin/lib/yzValidator.class.php
r4670 r4684 154 154 $options['url'] = yzValidator::VALIDATOR_MODULE; 155 155 $options['complete'] = 'yzCSV_JSONUpdater(request, json, '.$eval_onsuccess_field_id.');'; 156 $options['update'] = null;156 unset($options['update']); 157 157 //We will search through all of the keys of $options. Keys that start with 158 158 //yzValidation_ are options for the AJAX validatoin request that occur after the user … … 160 160 //stricken from $options 161 161 $options_keys = array_keys($options); 162 162 163 for($i=0, $num_options = count($options);$i<$num_options;$i++) 163 164 { 164 165 $option_key = $options_keys[$i]; 166 165 167 if(strpos($option_key,'yzValidation_')=== 0 ) 166 168 { 167 169 $exploded_key_ary = explode('yzValidation_',$option_key); 168 170 $yzVal_option_key = $exploded_key_ary[1]; 171 //echo '$yzVal_option_key: '.$yzVal_option_key.'<br>'; 169 172 $options[$yzVal_option_key] .= $options[$option_key]; 170 $options[$option_key] = null; 171 } 172 } 173 //echo '$options[$option_key]: '.$options[$option_key].'<BR>'; 174 //echo '$option_key '.$option_key.'<BR><BR>'; 175 unset($options[$option_key]); 176 } 177 } 178 //print_r($options); 173 179 $this->validation_options = $options; 174 180 }