| @@ 63-63 (lines=1) @@ | ||
| 60 | if(method_exists($oComponent, $method)) $output = $oComponent->{$method}(); |
|
| 61 | else return new Object(-1,sprintf('%s method is not exists', $method)); |
|
| 62 | ||
| 63 | if((is_a($output, 'Object') || is_subclass_of($output, 'Object')) && !$output->toBool()) return $output; |
|
| 64 | ||
| 65 | $this->setError($oComponent->getError()); |
|
| 66 | $this->setMessage($oComponent->getMessage()); |
|
| @@ 627-630 (lines=4) @@ | ||
| 624 | ||
| 625 | $output = include($cache_file); |
|
| 626 | ||
| 627 | if((is_a($output, 'Object') || is_subclass_of($output, 'Object')) && !$output->toBool()) |
|
| 628 | { |
|
| 629 | return $output; |
|
| 630 | } |
|
| 631 | ||
| 632 | // execute appropriate query |
|
| 633 | switch($output->getAction()) |
|
| @@ 660-663 (lines=4) @@ | ||
| 657 | { |
|
| 658 | $output = $this->getError(); |
|
| 659 | } |
|
| 660 | else if(!is_a($output, 'Object') && !is_subclass_of($output, 'Object')) |
|
| 661 | { |
|
| 662 | $output = new Object(); |
|
| 663 | } |
|
| 664 | $output->add('_query', $this->query); |
|
| 665 | $output->add('_elapsed_time', sprintf("%0.5f", $this->elapsed_time)); |
|
| 666 | ||