Rev 69 | Rev 75 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 69 | Rev 74 | ||
---|---|---|---|
Line 377... | Line 377... | ||
377 | {
|
377 | {
|
378 | return $this->_lastInsertId; |
378 | return $this->_lastInsertId; |
379 | }
|
379 | }
|
380 | 380 | ||
381 | /**
|
381 | /**
|
- | 382 | * Returns the date of last modification of this database or
|
|
- | 383 | * one of its tables.
|
|
- | 384 | *
|
|
- | 385 | * To be overridden by inheriting classes.
|
|
- | 386 | *
|
|
- | 387 | * @param string $table (optional)
|
|
- | 388 | * Table name. If not provided, all tables of this database
|
|
- | 389 | * are considered.
|
|
- | 390 | * @return int|null
|
|
- | 391 | * Timestamp of last modification, or <code>null</code> if
|
|
- | 392 | * unavailable.
|
|
- | 393 | */
|
|
- | 394 | public function getLastModified ($table = null) |
|
- | 395 | {
|
|
- | 396 | return null; |
|
- | 397 | }
|
|
- | 398 | ||
- | 399 | /**
|
|
382 | * Escapes a database name so that it can be used in a query.
|
400 | * Escapes a database name so that it can be used in a query.
|
383 | *
|
401 | *
|
384 | * @param string $name
|
402 | * @param string $name
|
385 | * The name to be escaped
|
403 | * The name to be escaped
|
386 | * @return string
|
404 | * @return string
|
Line 479... | Line 497... | ||
479 | * The escaped array
|
497 | * The escaped array
|
480 | */
|
498 | */
|
481 | protected function _escapeValueArray(array &$array, $suffix = '') |
499 | protected function _escapeValueArray(array &$array, $suffix = '') |
482 | {
|
500 | {
|
483 | $result = array(); |
501 | $result = array(); |
484 | - | ||
485 | foreach ($array as $column => $value) |
502 | foreach ($array as $column => $value) |
486 | {
|
503 | {
|
487 | $op = '='; |
504 | $op = '='; |
488 | $placeholder = ":{$column}"; |
505 | $placeholder = ":{$column}"; |
489 | 506 |