1 | <?php |
||
9 | class DbReference extends Column |
||
10 | { |
||
11 | /** |
||
12 | * @var Adapter |
||
13 | */ |
||
14 | protected $dbAdapter; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $refTable; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $refField; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $resultField; |
||
30 | |||
31 | /** |
||
32 | * @param $name |
||
33 | * @param Adapter $dbAdapter |
||
34 | * @param $refTable |
||
35 | * @param $refField |
||
36 | * @param $resultField |
||
37 | */ |
||
38 | public function __construct($name, Adapter $dbAdapter, $refTable, $refField, $resultField) |
||
54 | |||
55 | /** |
||
56 | * @param string $identityColumn |
||
57 | * @param bool $addEmptyOption |
||
58 | * @return Select |
||
59 | */ |
||
60 | protected function buildFormElement($identityColumn = 'id', $addEmptyOption = true) |
||
81 | } |