|
@@ 39-42 (lines=4) @@
|
| 36 |
|
try { |
| 37 |
|
|
| 38 |
|
// Check if parameter in list of allowed parameters |
| 39 |
|
if (!array_key_exists($name, self::ALLOWED)) { |
| 40 |
|
throw new Exception("Requested parameter \"$name\" not found in allowed list [" . implode(',', |
| 41 |
|
array_keys(self::ALLOWED)) . ']'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
// Get type of current variable |
| 45 |
|
$whatType = \gettype($value); |
|
@@ 75-78 (lines=4) @@
|
| 72 |
|
{ |
| 73 |
|
try { |
| 74 |
|
// Check if parameter in list of allowed parameters |
| 75 |
|
if (!array_key_exists($parameter, self::ALLOWED)) { |
| 76 |
|
throw new Exception("Requested parameter \"$parameter\" is not found in allowed list [" . implode(',', |
| 77 |
|
array_keys(self::ALLOWED)) . ']'); |
| 78 |
|
} |
| 79 |
|
} catch (Exception $e) { |
| 80 |
|
// __construct |
| 81 |
|
} |