| @@ 358-368 (lines=11) @@ | ||
| 355 | * |
|
| 356 | * @return bool |
|
| 357 | */ |
|
| 358 | public function checkMaxWidth($dimension) |
|
| 359 | { |
|
| 360 | if (!isset($this->maxWidth)) { |
|
| 361 | return true; |
|
| 362 | } |
|
| 363 | if ($dimension > $this->maxWidth) { |
|
| 364 | return false; |
|
| 365 | } |
|
| 366 | ||
| 367 | return true; |
|
| 368 | } |
|
| 369 | ||
| 370 | /** |
|
| 371 | * Is the picture the right height? |
|
| @@ 377-387 (lines=11) @@ | ||
| 374 | * |
|
| 375 | * @return bool |
|
| 376 | */ |
|
| 377 | public function checkMaxHeight($dimension) |
|
| 378 | { |
|
| 379 | if (!isset($this->maxHeight)) { |
|
| 380 | return true; |
|
| 381 | } |
|
| 382 | if ($dimension > $this->maxWidth) { |
|
| 383 | return false; |
|
| 384 | } |
|
| 385 | ||
| 386 | return true; |
|
| 387 | } |
|
| 388 | ||
| 389 | /** |
|
| 390 | * Is the file the right Mime type |
|