@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | nspname = :schema)) |
| 138 | 138 | AND a.attnum > 0 AND NOT a.attisdropped |
| 139 | 139 | ORDER BY a.attnum |
| 140 | -EOD; |
|
| 140 | +eod; |
|
| 141 | 141 | $this->getDbConnection()->setActive(true); |
| 142 | 142 | $command = $this->getDbConnection()->createCommand($sql); |
| 143 | 143 | $command->bindValue(':table', $tableName); |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | SELECT count(c.relname) FROM pg_catalog.pg_class c |
| 198 | 198 | LEFT JOIN pg_catalog.pg_namespace n ON (n.oid = c.relnamespace) |
| 199 | 199 | WHERE (n.nspname=:schema) AND (c.relkind = 'v'::"char") AND c.relname = :table |
| 200 | -EOD; |
|
| 200 | +eod; |
|
| 201 | 201 | $this->getDbConnection()->setActive(true); |
| 202 | 202 | $command = $this->getDbConnection()->createCommand($sql); |
| 203 | 203 | $command->bindValue(':schema', $schemaName); |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | WHERE nspname=:schema)) |
| 333 | 333 | ORDER BY |
| 334 | 334 | 1 |
| 335 | -EOD; |
|
| 335 | +eod; |
|
| 336 | 336 | $this->getDbConnection()->setActive(true); |
| 337 | 337 | $command = $this->getDbConnection()->createCommand($sql); |
| 338 | 338 | $command->bindValue(':table', $tableName); |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | ) |
| 373 | 373 | ) |
| 374 | 374 | AND attnum IN ({$index}) |
| 375 | -EOD; |
|
| 375 | +eod; |
|
| 376 | 376 | $command = $this->getDbConnection()->createCommand($sql); |
| 377 | 377 | $command->bindValue(':table', $tableName); |
| 378 | 378 | $command->bindValue(':schema', $schemaName); |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | $sql = <<<EOD |
| 435 | 435 | SELECT table_name, table_schema FROM information_schema.tables |
| 436 | 436 | WHERE table_schema=:schema AND table_type='BASE TABLE' |
| 437 | -EOD; |
|
| 437 | +eod; |
|
| 438 | 438 | $command = $this->getDbConnection()->createCommand($sql); |
| 439 | 439 | $command->bindParam(':schema', $schema); |
| 440 | 440 | $rows = $command->queryAll(); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * @var TActiveRecordInvalidFinderResult |
| 57 | 57 | * @since 3.1.5 |
| 58 | 58 | */ |
| 59 | - private $_invalidFinderResult = TActiveRecordInvalidFinderResult::Null; |
|
| 59 | + private $_invalidFinderResult = TActiveRecordInvalidFinderResult::null; |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * @return ICache application cache. |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | * @var TActiveRecordInvalidFinderResult |
| 103 | 103 | * @since 3.1.5 |
| 104 | 104 | */ |
| 105 | - private $_invalidFinderResult = TActiveRecordInvalidFinderResult::Null; |
|
| 105 | + private $_invalidFinderResult = TActiveRecordInvalidFinderResult::null; |
|
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * Initialize the active record manager. |
@@ -328,7 +328,7 @@ |
||
| 328 | 328 | { |
| 329 | 329 | $req = $this->recaptcha_qsencode($data); |
| 330 | 330 | |
| 331 | - $http_request = "POST $path HTTP/1.0\r\n"; |
|
| 331 | + $http_request = "post $path HTTP/1.0\r\n"; |
|
| 332 | 332 | $http_request .= "Host: $host\r\n"; |
| 333 | 333 | $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n"; |
| 334 | 334 | $http_request .= "Content-Length: " . strlen($req) . "\r\n"; |
@@ -523,7 +523,7 @@ |
||
| 523 | 523 | </body> |
| 524 | 524 | </file> |
| 525 | 525 | </xliff> |
| 526 | -EOD; |
|
| 526 | +eod; |
|
| 527 | 527 | return $xml; |
| 528 | 528 | } |
| 529 | 529 | } |
@@ -418,7 +418,7 @@ |
||
| 418 | 418 | 'trans-unit' => array( |
| 419 | 419 | ) |
| 420 | 420 | ); |
| 421 | -EOD; |
|
| 421 | +eod; |
|
| 422 | 422 | return $php; |
| 423 | 423 | } |
| 424 | 424 | } |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | { |
| 319 | 319 | $table = $this->getTableInfo()->getTableFullName(); |
| 320 | 320 | $fields = implode(', ', $this -> getSelectFieldList($select)); |
| 321 | - $sql = "SELECT {$fields} FROM {$table}"; |
|
| 321 | + $sql = "select {$fields} FROM {$table}"; |
|
| 322 | 322 | if (!empty($where)) { |
| 323 | 323 | $sql .= " WHERE {$where}"; |
| 324 | 324 | } |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | if (!empty($where)) { |
| 406 | 406 | $where = ' WHERE ' . $where; |
| 407 | 407 | } |
| 408 | - $command = $this->createCommand("UPDATE {$table} SET {$fields}" . $where); |
|
| 408 | + $command = $this->createCommand("update {$table} SET {$fields}" . $where); |
|
| 409 | 409 | $this->bindArrayValues($command, array_merge($data, $parameters)); |
| 410 | 410 | return $command; |
| 411 | 411 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | TABLE_NAME = '{$tableName}' |
| 98 | 98 | AND OWNER = '{$schemaName}' |
| 99 | 99 | ORDER BY a.COLUMN_ID |
| 100 | -EOD; |
|
| 100 | +eod; |
|
| 101 | 101 | $this->getDbConnection()->setActive(true); |
| 102 | 102 | $this->getDbConnection()->setAttribute(PDO::ATTR_CASE, PDO::CASE_LOWER); |
| 103 | 103 | $command = $this->getDbConnection()->createCommand($sql); |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | from ALL_OBJECTS |
| 162 | 162 | where OBJECT_NAME = '{$tableName}' |
| 163 | 163 | and OWNER = '{$schemaName}' |
| 164 | -EOD; |
|
| 164 | +eod; |
|
| 165 | 165 | $this->getDbConnection()->setActive(true); |
| 166 | 166 | $command = $this->getDbConnection()->createCommand($sql); |
| 167 | 167 | //$command->bindValue(':schema',$schemaName); |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | and a.TABLE_NAME = '{$tableName}' |
| 270 | 270 | and a.OWNER = '{$schemaName}' |
| 271 | 271 | and a.CONSTRAINT_TYPE in ('P','R') |
| 272 | -EOD; |
|
| 272 | +eod; |
|
| 273 | 273 | $this->getDbConnection()->setActive(true); |
| 274 | 274 | $command = $this->getDbConnection()->createCommand($sql); |
| 275 | 275 | //$command->bindValue(':table', $tableName); |
@@ -359,13 +359,13 @@ discard block |
||
| 359 | 359 | if ($schema === '') { |
| 360 | 360 | $sql = <<<EOD |
| 361 | 361 | SELECT table_name, '{$schema}' as table_schema FROM user_tables |
| 362 | -EOD; |
|
| 362 | +eod; |
|
| 363 | 363 | $command = $this->getDbConnection()->createCommand($sql); |
| 364 | 364 | } else { |
| 365 | 365 | $sql = <<<EOD |
| 366 | 366 | SELECT object_name as table_name, owner as table_schema FROM all_objects |
| 367 | 367 | WHERE object_type = 'TABLE' AND owner=:schema |
| 368 | -EOD; |
|
| 368 | +eod; |
|
| 369 | 369 | $command = $this->getDbConnection()->createCommand($sql); |
| 370 | 370 | $command->bindParam(':schema', $schema); |
| 371 | 371 | } |
@@ -319,7 +319,7 @@ |
||
| 319 | 319 | REFERENCED_TABLE_NAME IS NOT NULL |
| 320 | 320 | AND TABLE_NAME LIKE :table |
| 321 | 321 | $andSchema |
| 322 | -EOD; |
|
| 322 | +eod; |
|
| 323 | 323 | $command = $this->getDbConnection()->createCommand($sql); |
| 324 | 324 | $command->bindValue(':table', $tableName); |
| 325 | 325 | if ($schemaName !== null) { |