Rev 50 | Rev 52 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 50 | Rev 51 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | <?php
|
1 | <?php
|
| 2 | 2 | ||
| - | 3 | namespace PointedEars\PHPX\Db; |
|
| - | 4 | ||
| 3 | require_once __DIR__ . '/../Application.php'; |
5 | require_once __DIR__ . '/../Application.php'; |
| 4 | require_once __DIR__ . '/../AbstractModel.php'; |
6 | require_once __DIR__ . '/../AbstractModel.php'; |
| 5 | 7 | ||
| - | 8 | use \PointedEars\PHPX\Application; |
|
| - | 9 | ||
| 6 | /**
|
10 | /**
|
| 7 | * Generic database table model class
|
11 | * Generic database table model class
|
| 8 | *
|
12 | *
|
| 9 | * @author Thomas Lahn
|
13 | * @author Thomas Lahn
|
| 10 | * @property Database $database
|
14 | * @property Database $database
|
| 11 | * @property-read int $lastInsertId
|
15 | * @property-read int $lastInsertId
|
| 12 | * ID of the last inserted row, or the last value from
|
16 | * ID of the last inserted row, or the last value from
|
| 13 | a sequence object, depending on the underlying driver.
|
17 | a sequence object, depending on the underlying driver.
|
| 14 | */
|
18 | */
|
| 15 | class Table extends AbstractModel |
19 | class Table extends \PointedEars\PHPX\AbstractModel |
| 16 | {
|
20 | {
|
| 17 | /**
|
21 | /**
|
| 18 | * Name of the table
|
22 | * Name of the table
|
| 19 | */
|
23 | */
|
| 20 | protected $_name = ''; |
24 | protected $_name = ''; |