Changeset 570 for trunk/Common/Form/Form.php
- Timestamp:
- Sep 26, 2013, 11:16:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Form.php
r551 r570 220 220 (array_key_exists('ReadOnly', $Item) and 221 221 ($Item['ReadOnly'] != true)))) 222 { 223 //if(array_key_exists($Context.$Index, $_POST)) 224 if(array_key_exists($Item['Type'], $this->FormManager->FormTypes)) 225 { 226 if(!array_key_exists($Item['Type'], $this->FormManager->Type->TypeDefinitionList)) 227 $this->FormManager->Type->RegisterType($Item['Type'], '', 228 $this->FormManager->FormTypes[$Item['Type']]); 229 if($this->FormManager->FormTypes[$Item['Type']]['Type'] == 'Reference') 230 $UseType = 'OneToMany'; 231 else if($this->FormManager->FormTypes[$Item['Type']]['Type'] == 'Enumeration') 232 $UseType = 'Enumeration'; 233 } else $UseType = $Item['Type']; 222 { 223 //if(array_key_exists($Context.$Index, $_POST)) 224 if(array_key_exists($Item['Type'], $this->FormManager->FormTypes)) 225 { 226 if(!array_key_exists($Item['Type'], $this->FormManager->Type->TypeDefinitionList)) 227 $this->FormManager->Type->RegisterType($Item['Type'], '', 228 $this->FormManager->FormTypes[$Item['Type']]); 229 if($this->FormManager->FormTypes[$Item['Type']]['Type'] == 'Reference') 230 $UseType = 'OneToMany'; 231 else if($this->FormManager->FormTypes[$Item['Type']]['Type'] == 'Enumeration') 232 $UseType = 'Enumeration'; 233 } else $UseType = $Item['Type']; 234 $Parameters = array('Name' => $Index, 'Type' => $Item['Type'], 'Values' => $this->Values); 235 if(array_key_exists('Null', $Item)) $Parameters['Null'] = $Item['Null']; 236 else unset($Parameters['Null']); 234 237 $Values[$Index] = $this->FormManager->Type->ExecuteTypeEvent($UseType, 'OnLoad', 235 array('Name' => $Index, 'Type' => $Item['Type'], 'Values' => $this->Values));238 $Parameters); 236 239 } 237 240 return($Values);
Note:
See TracChangeset
for help on using the changeset viewer.