Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
58 | PointedEar | 1 | <?php |
2 | |||
3 | namespace PointedEars\PHPX\Db; |
||
4 | |||
5 | /** |
||
6 | * @author |
||
7 | * Copyright (c) 2013 Thomas 'PointedEars' Lahn |
||
8 | */ |
||
9 | class MySQLTable extends Table |
||
10 | { |
||
11 | /** |
||
12 | * Engine for this table. |
||
13 | * |
||
14 | * @var string |
||
15 | * @see Table::create() |
||
16 | */ |
||
17 | protected static $_engine; |
||
18 | |||
19 | /** |
||
20 | * (non-PHPdoc) |
||
21 | * @see \PointedEars\PHPX\Db\Table::_createOptions() |
||
22 | */ |
||
23 | protected function _createOptions () |
||
24 | { |
||
25 | $options = parent::_createOptions(); |
||
26 | |||
27 | $class = \get_class($this); |
||
28 | foreach (array('engine') as $option) |
||
29 | { |
||
30 | if ($class::${"_$option"}) |
||
31 | { |
||
32 | $options[$option] = $class::${"_$option"}; |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return $options; |
||
37 | } |
||
38 | } |