| 1 | <?php |
||
| 13 | trait ObjectTrait |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $tables = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Creates an object from the specified table and row. |
||
| 22 | * |
||
| 23 | * @param string $table |
||
| 24 | * @param object $row |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | 15 | protected function createObject($table, $row) |
|
| 64 | |||
| 65 | /** |
||
| 66 | * Finds the row from the specified ID or with the list of delimiters from |
||
| 67 | * the specified table. |
||
| 68 | * |
||
| 69 | * @param string $table |
||
| 70 | * @param array|integer $delimiters |
||
| 71 | * @return object|boolean |
||
| 72 | */ |
||
| 73 | abstract protected function find($table, $delimiters = []); |
||
| 74 | } |
||
| 75 |