Rev 61 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 61 | Rev 74 | ||
---|---|---|---|
Line 130... | Line 130... | ||
130 | * Returns the database for the table
|
130 | * Returns the database for the table
|
131 | * @return Database
|
131 | * @return Database
|
132 | */
|
132 | */
|
133 | public function getDatabase() |
133 | public function getDatabase() |
134 | {
|
134 | {
|
- | 135 | /* FIXME: What about tables from different databases? */
|
|
135 | $class = \get_class($this); |
136 | $class = \get_class($this); |
136 | if (\is_string($class::$_database)) |
137 | if (\is_string($class::$_database)) |
137 | {
|
138 | {
|
138 | /* Call setter to convert to Database */
|
139 | /* Call setter to convert to Database */
|
139 | $this->setDatabase($class::$_database); |
140 | $this->setDatabase($class::$_database); |
Line 383... | Line 384... | ||
383 | $result = $result[0]; |
384 | $result = $result[0]; |
384 | }
|
385 | }
|
385 | 386 | ||
386 | return $result; |
387 | return $result; |
387 | }
|
388 | }
|
- | 389 | ||
- | 390 | /**
|
|
- | 391 | * Returns the date of last modification of this table.
|
|
- | 392 | *
|
|
- | 393 | * @return int|null
|
|
- | 394 | * Timestamp of last modification, or <code>null</code> if
|
|
- | 395 | * unavailable.
|
|
- | 396 | */
|
|
- | 397 | public function getLastModified () |
|
- | 398 | {
|
|
- | 399 | return $this->database->getLastModified($this->name); |
|
- | 400 | }
|
|
388 | }
|
401 | }
|
389 | 402 |