| @@ 439-449 (lines=11) @@ | ||
| 436 | * @param $dimension |
|
| 437 | * @return bool |
|
| 438 | */ |
|
| 439 | public function checkMaxWidth($dimension) |
|
| 440 | { |
|
| 441 | if (!isset($this->maxWidth)) { |
|
| 442 | return true; |
|
| 443 | } |
|
| 444 | if ($dimension > $this->maxWidth) { |
|
| 445 | return false; |
|
| 446 | } |
|
| 447 | ||
| 448 | return true; |
|
| 449 | } |
|
| 450 | ||
| 451 | /** |
|
| 452 | * Is the picture the right height? |
|
| @@ 457-467 (lines=11) @@ | ||
| 454 | * @param $dimension |
|
| 455 | * @return bool |
|
| 456 | */ |
|
| 457 | public function checkMaxHeight($dimension) |
|
| 458 | { |
|
| 459 | if (!isset($this->maxHeight)) { |
|
| 460 | return true; |
|
| 461 | } |
|
| 462 | if ($dimension > $this->maxWidth) { |
|
| 463 | return false; |
|
| 464 | } |
|
| 465 | ||
| 466 | return true; |
|
| 467 | } |
|
| 468 | ||
| 469 | /** |
|
| 470 | * Is the file the right Mime type |
|