| @@ 234-248 (lines=15) @@ | ||
| 231 | ] |
|
| 232 | ]; |
|
| 233 | ||
| 234 | public function realType() { |
|
| 235 | if ($this->option && $this->option->type) { |
|
| 236 | $type = $this->option->type; |
|
| 237 | ||
| 238 | if ($type == 'select') { |
|
| 239 | return [ |
|
| 240 | 'type' => 'select', |
|
| 241 | 'source' => 'relation', |
|
| 242 | 'relation' => 'option:items', |
|
| 243 | ]; |
|
| 244 | } |
|
| 245 | return $type; |
|
| 246 | } |
|
| 247 | return 'text'; |
|
| 248 | } |
|
| 249 | ||
| 250 | public static function indexes() { |
|
| 251 | return [ |
|
| @@ 66-80 (lines=15) @@ | ||
| 63 | ]; |
|
| 64 | } |
|
| 65 | ||
| 66 | public function realType() { |
|
| 67 | if ($this->option && $this->option->type) { |
|
| 68 | $type = $this->option->type; |
|
| 69 | ||
| 70 | if ($type == 'select') { |
|
| 71 | return [ |
|
| 72 | 'type' => 'select', |
|
| 73 | 'source' => 'relation', |
|
| 74 | 'relation' => 'option:items', |
|
| 75 | ]; |
|
| 76 | } |
|
| 77 | return $type; |
|
| 78 | } |
|
| 79 | return 'text'; |
|
| 80 | } |
|
| 81 | ||
| 82 | public static $dataManagers = [ |
|
| 83 | ||