| Total Complexity | 7 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class Radio |
||
| 16 | { |
||
| 17 | use DefaultOption, Join; |
||
| 18 | |||
| 19 | public function options($data_options) { |
||
| 20 | $data = columnSingleton()->getColumn($this->index); |
||
| 21 | /** @var $data RadioModel */ |
||
| 22 | $data->setOptions($data_options); |
||
| 23 | |||
| 24 | columnSingleton()->setColumn($this->index, $data); |
||
| 25 | |||
| 26 | return $this; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param $table string |
||
| 31 | * @param $key_field string |
||
| 32 | * @param $display_field string |
||
| 33 | * @param $SQLCondition string|callable |
||
| 34 | */ |
||
| 35 | public function optionsFromTable($table, $key_field, $display_field, $SQLCondition = null) { |
||
| 48 | } |
||
| 49 | } |