|
@@ 334-336 (lines=3) @@
|
| 331 |
|
/* $object has to exist and has to be a object */ |
| 332 |
|
$objname = $ts[$last - 3]['value']; |
| 333 |
|
|
| 334 |
|
if (!isset($GLOBALS[ltrim($objname, '$')])) { |
| 335 |
|
throw new Exception(sprintf('Variable \'%s\' is not set', $objname)); |
| 336 |
|
} |
| 337 |
|
$object = $GLOBALS[ltrim($objname, '$')]; |
| 338 |
|
|
| 339 |
|
if (!is_object($object)) { |
|
@@ 363-365 (lines=3) @@
|
| 360 |
|
/* $object has to exist and has to be a object */ |
| 361 |
|
$objname = $ts[$last - 3]['value']; |
| 362 |
|
|
| 363 |
|
if (!isset($GLOBALS[ltrim($objname, '$')])) { |
| 364 |
|
throw new Exception(sprintf('Variable \'%s\' is not set', $objname)); |
| 365 |
|
} |
| 366 |
|
$object = $GLOBALS[ltrim($objname, '$')]; |
| 367 |
|
|
| 368 |
|
if (!is_object($object)) { |
|
@@ 374-376 (lines=3) @@
|
| 371 |
|
|
| 372 |
|
$methodname = $ts[$last - 1]['value']; |
| 373 |
|
|
| 374 |
|
if (!isset($GLOBALS[ltrim($methodname, '$')])) { |
| 375 |
|
throw new Exception(sprintf('Variable \'%s\' is not set', $methodname)); |
| 376 |
|
} |
| 377 |
|
$method = $GLOBALS[ltrim($methodname, '$')]; |
| 378 |
|
|
| 379 |
|
/* obj */ |
|
@@ 400-402 (lines=3) @@
|
| 397 |
|
/* $object has to exist and has to be a object */ |
| 398 |
|
$objname = $ts[$last - 6]['value']; |
| 399 |
|
|
| 400 |
|
if (!isset($GLOBALS[ltrim($objname, '$')])) { |
| 401 |
|
throw new Exception(sprintf('Variable \'%s\' is not set', $objname)); |
| 402 |
|
} |
| 403 |
|
$array = $GLOBALS[ltrim($objname, '$')]; |
| 404 |
|
|
| 405 |
|
if (!is_array($array)) { |
|
@@ 468-470 (lines=3) @@
|
| 465 |
|
|
| 466 |
|
$methodname = $ts[$last - 1]['value']; |
| 467 |
|
|
| 468 |
|
if (!isset($GLOBALS[ltrim($methodname, '$')])) { |
| 469 |
|
throw new Exception(sprintf('Variable \'%s\' is not set', $methodname)); |
| 470 |
|
} |
| 471 |
|
$method = $GLOBALS[ltrim($methodname, '$')]; |
| 472 |
|
|
| 473 |
|
if (!in_array($method, get_class_methods($classname))) { |
|
@@ 554-556 (lines=3) @@
|
| 551 |
|
/* $object has to exist and has to be a object */ |
| 552 |
|
$funcname = $ts[$last - 1]['value']; |
| 553 |
|
|
| 554 |
|
if (!isset($GLOBALS[ltrim($funcname, '$')])) { |
| 555 |
|
throw new Exception(sprintf('Variable \'%s\' is not set', $funcname)); |
| 556 |
|
} |
| 557 |
|
$func = $GLOBALS[ltrim($funcname, '$')]; |
| 558 |
|
|
| 559 |
|
if (!function_exists($func)) { |
|
@@ 638-640 (lines=3) @@
|
| 635 |
|
/* $object has to exist and has to be a object */ |
| 636 |
|
$objname = $ts[$last - 1]['value']; |
| 637 |
|
|
| 638 |
|
if (!isset($GLOBALS[ltrim($objname, '$')])) { |
| 639 |
|
throw new Exception(sprintf('Variable \'%s\' is not set', $objname)); |
| 640 |
|
} |
| 641 |
|
$obj = $GLOBALS[ltrim($objname, '$')]; |
| 642 |
|
|
| 643 |
|
if (is_object($obj)) { |
|
@@ 683-685 (lines=3) @@
|
| 680 |
|
|
| 681 |
|
$varname = $ts[$last - 0]['value']; |
| 682 |
|
|
| 683 |
|
if (!isset($GLOBALS[ltrim($varname, '$')])) { |
| 684 |
|
throw new Exception(sprintf('Variable \'%s\' is not set', $varname)); |
| 685 |
|
} |
| 686 |
|
} |
| 687 |
|
|
| 688 |
|
|