Changeset 16
- Timestamp:
- Dec 27, 2022, 3:32:33 PM (2 years ago)
- Location:
- Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/Database.php
r14 r16 95 95 if (($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true)) $QueryStartTime = microtime_float(); 96 96 $this->LastQuery = $Query; 97 //echo('a'.$this->ShowSQLQuery.'<'.$QueryStartTime.', '.microtime_float());98 97 if (($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true)) 99 98 { … … 203 202 $Name = substr($Name, 1); 204 203 $Values = substr($Values, 1); 205 //echo('REPLACE INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES ('.$Values.')<br />');206 204 $this->query('REPLACE INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')'); 207 //echo($this->error().'<br>');208 205 } 209 206 … … 234 231 public function Transaction(array $Queries): void 235 232 { 236 //echo('|'."\n");237 233 $this->PDO->beginTransaction(); 238 234 foreach ($Queries as $Query) 239 235 { 240 //echo('|'.$Query."\n");241 236 $Statement = $this->PDO->prepare($Query); 242 237 $Statement->execute(); -
Common/Locale.php
r14 r16 75 75 $Previous = strtolower(substr($Content, strpos($Content, 'T(') - 1, 1)); 76 76 $Content = substr($Content, strpos($Content, 'T(') + 2); 77 $Ord = ord($Previous); 78 //echo($Ord.','); 77 $Ord = ord($Previous); 79 78 if (!(($Ord >= ord('a')) and ($Ord <= ord('z')))) 80 79 { -
Common/Modules/ModuleManager.php
r14 r16 250 250 'Type' => ModelColumnType::GetName($Field->Type), 'Nullable' => (int)$Field->Nullable)); 251 251 } 252 if ($ModelDesc->DefaultValues != null) 253 { 254 $Values = call_user_func('self::'.$ModelDesc->DefaultValues); 255 foreach ($Values as $Value) 256 { 257 $this->Database->insert($ModelDesc->Name, $Value); 258 } 259 } 252 260 } 253 261
Note:
See TracChangeset
for help on using the changeset viewer.