- Timestamp:
- Oct 16, 2012, 9:49:30 PM (12 years ago)
- Location:
- trunk/Common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Database.php
r447 r448 90 90 if(!in_array($Value, $this->Functions)) 91 91 { 92 if( $Value == NULL) $Value = 'NULL';92 if(is_null($Value)) $Value = 'NULL'; 93 93 else $Value = $this->PDO->quote($Value); 94 94 } … … 108 108 if(!in_array($Value, $this->Functions)) 109 109 { 110 if( $Value == NULL) $Value = 'NULL';110 if(is_null($Value)) $Value = 'NULL'; 111 111 else $Value = $this->PDO->quote($Value); 112 112 } … … 125 125 if(!in_array($Value, $this->Functions)) 126 126 { 127 if( $Value == NULL) $Value = 'NULL';127 if(is_null($Value)) $Value = 'NULL'; 128 128 else $Value = $this->PDO->quote($Value); 129 129 } -
trunk/Common/Forms.php
r447 r448 87 87 $UseType = 'Enumeration'; 88 88 } else $UseType = $Item['Type']; 89 $Edit = ''.$System->Type->ExecuteTypeEvent($UseType, 'OnEdit', $Parameters).'';89 $Edit = $System->Type->ExecuteTypeEvent($UseType, 'OnEdit', $Parameters); 90 90 91 91 array_push($Table['Rows'], array($Item['Caption'].':', $Edit)); … … 117 117 $UseType = 'Enumeration'; 118 118 } else $UseType = $Item['Type']; 119 $this->Values[$Index] = ''.$System->Type->ExecuteTypeEvent($UseType, 'OnLoadDb',119 $this->Values[$Index] = $System->Type->ExecuteTypeEvent($UseType, 'OnLoadDb', 120 120 array('Value' => $DbRow[$Index], 'Name' => $Index, 121 'Type' => $Item['Type'])) .'';121 'Type' => $Item['Type'])); 122 122 123 123 //echo($DbRow[$Index].'='.$this->Values[$Index].'<br/>'); … … 150 150 $UseType = 'Enumeration'; 151 151 } else $UseType = $Item['Type']; 152 $Values[$Index] = ''.$System->Type->ExecuteTypeEvent($UseType, 'OnSaveDb', $Parameters).'';152 $Values[$Index] = $System->Type->ExecuteTypeEvent($UseType, 'OnSaveDb', $Parameters); 153 153 154 154 //echo($DbRow[$Index].'='.$this->Values[$Index].'<br/>'); … … 189 189 $UseType = 'Enumeration'; 190 190 } else $UseType = $Item['Type']; 191 $Values[$Index] = ''.$System->Type->ExecuteTypeEvent($UseType, 'OnLoad',192 array('Name' => $Index, 'Type' => $Item['Type'])) .'';191 $Values[$Index] = $System->Type->ExecuteTypeEvent($UseType, 'OnLoad', 192 array('Name' => $Index, 'Type' => $Item['Type'])); 193 193 } 194 194 return($Values); -
trunk/Common/Types/OneToMany.php
r447 r448 26 26 if(array_key_exists('Condition', $Type['Parameters'])) $Where = ' WHERE '.$Type['Parameters']['Condition']; 27 27 else $Where = ''; 28 print_r($Item);29 28 if(array_key_exists('Null', $Item) and $Item['Null']) 30 29 { -
trunk/Common/Types/String.php
r428 r448 21 21 function OnLoad($Item) 22 22 { 23 //echo($Item['Name'].'='.$_POST[$Item['Name']].','.is_null(NULL).'<br>'); 23 24 return($_POST[$Item['Name']]); 24 25 }
Note:
See TracChangeset
for help on using the changeset viewer.