| @@ 80-94 (lines=15) @@ | ||
| 77 | /** |
|
| 78 | * @return array |
|
| 79 | */ |
|
| 80 | public function getOptions() |
|
| 81 | { |
|
| 82 | if (! is_null($this->getModelForOptions()) && ! is_null($this->getDisplay())) { |
|
| 83 | $this->setOptions( |
|
| 84 | $this->loadOptions() |
|
| 85 | ); |
|
| 86 | } |
|
| 87 | ||
| 88 | $options = array_except($this->options, $this->exclude); |
|
| 89 | if ($this->isSortable()) { |
|
| 90 | asort($options); |
|
| 91 | } |
|
| 92 | ||
| 93 | return $options; |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * @return array |
|
| @@ 60-74 (lines=15) @@ | ||
| 57 | /** |
|
| 58 | * @return array |
|
| 59 | */ |
|
| 60 | public function getOptions() |
|
| 61 | { |
|
| 62 | if (! is_null($this->getModelForOptions()) && ! is_null($this->getDisplay())) { |
|
| 63 | $this->setOptions( |
|
| 64 | $this->loadOptions() |
|
| 65 | ); |
|
| 66 | } |
|
| 67 | ||
| 68 | $options = array_except($this->options, $this->exclude); |
|
| 69 | if ($this->isSortable()) { |
|
| 70 | asort($options); |
|
| 71 | } |
|
| 72 | ||
| 73 | return $options; |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @return array |
|