| @@ 129-140 (lines=12) @@ | ||
| 126 | return $this->crop; |
|
| 127 | } |
|
| 128 | ||
| 129 | public function getRatio(string $type) |
|
| 130 | { |
|
| 131 | $type = strtolower($type); |
|
| 132 | ||
| 133 | switch ($type) { |
|
| 134 | case 'width': |
|
| 135 | case 'height': |
|
| 136 | return $this->ratio[$type]; |
|
| 137 | default: |
|
| 138 | return false; |
|
| 139 | } |
|
| 140 | } |
|
| 141 | ||
| 142 | public function getListView($model) |
|
| 143 | { |
|
| @@ 204-215 (lines=12) @@ | ||
| 201 | return $this->crop; |
|
| 202 | } |
|
| 203 | ||
| 204 | public function getRatio(string $type) |
|
| 205 | { |
|
| 206 | $type = strtolower($type); |
|
| 207 | ||
| 208 | switch ($type) { |
|
| 209 | case 'width': |
|
| 210 | case 'height': |
|
| 211 | return $this->ratio[$type]; |
|
| 212 | default: |
|
| 213 | return false; |
|
| 214 | } |
|
| 215 | } |
|
| 216 | ||
| 217 | public function getListView($model) |
|
| 218 | { |
|