| @@ 155-169 (lines=15) @@ | ||
| 152 | * @param $columnName: for debug only |
|
| 153 | * @return string |
|
| 154 | */ |
|
| 155 | public function getFormType($dbType, $class, $columnName) |
|
| 156 | { |
|
| 157 | if (array_key_exists($dbType, $this->formTypes)) { |
|
| 158 | return $this->formTypes[$dbType]; |
|
| 159 | } |
|
| 160 | ||
| 161 | if ('virtual' === $dbType) { |
|
| 162 | return 'virtual_form'; |
|
| 163 | } |
|
| 164 | ||
| 165 | throw new NotImplementedException( |
|
| 166 | 'The dbType "'.$dbType.'" is not yet implemented ' |
|
| 167 | .'(column "'.$columnName.'" in "'.$class.'")' |
|
| 168 | ); |
|
| 169 | } |
|
| 170 | ||
| 171 | /** |
|
| 172 | * @param $dbType |
|
| @@ 177-191 (lines=15) @@ | ||
| 174 | * @param $columnName: for debug only |
|
| 175 | * @return string |
|
| 176 | */ |
|
| 177 | public function getFilterType($dbType, $class, $columnName) |
|
| 178 | { |
|
| 179 | if (array_key_exists($dbType, $this->filterTypes)) { |
|
| 180 | return $this->filterTypes[$dbType]; |
|
| 181 | } |
|
| 182 | ||
| 183 | if ('virtual' === $dbType) { |
|
| 184 | return 'virtual_filter'; |
|
| 185 | } |
|
| 186 | ||
| 187 | throw new NotImplementedException( |
|
| 188 | 'The dbType "'.$dbType.'" is not yet implemented ' |
|
| 189 | .'(column "'.$columnName.'" in "'.$class.'")' |
|
| 190 | ); |
|
| 191 | } |
|
| 192 | ||
| 193 | /** |
|
| 194 | * @param $formType |
|