| @@ 39-53 (lines=15) @@ | ||
| 36 | * @param mixed |
|
| 37 | * @return boolean true if at least 1 parameter is not empty |
|
| 38 | */ |
|
| 39 | protected function checkAnyNotEmpty() |
|
| 40 | { |
|
| 41 | $foundNotEmpty = false; |
|
| 42 | ||
| 43 | $args = func_get_args(); |
|
| 44 | ||
| 45 | foreach ($args as $arg) { |
|
| 46 | if (!empty($arg)) { |
|
| 47 | $foundNotEmpty = true; |
|
| 48 | break; |
|
| 49 | } |
|
| 50 | } |
|
| 51 | ||
| 52 | return $foundNotEmpty; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Check if all parameters to the current function are not empty |
|
| @@ 61-75 (lines=15) @@ | ||
| 58 | * @param mixed |
|
| 59 | * @return boolean true if all parameters are not empty |
|
| 60 | */ |
|
| 61 | protected function checkAllNotEmpty() |
|
| 62 | { |
|
| 63 | $foundEmpty = false; |
|
| 64 | ||
| 65 | $args = func_get_args(); |
|
| 66 | ||
| 67 | foreach ($args as $arg) { |
|
| 68 | if (empty($arg)) { |
|
| 69 | $foundEmpty = true; |
|
| 70 | break; |
|
| 71 | } |
|
| 72 | } |
|
| 73 | ||
| 74 | return !$foundEmpty; |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * Check if all parameters to the current function are integers |
|