RELEASE 1.1.0.7

This commit is contained in:
Deon George
2009-06-30 22:05:31 +10:00
parent 647f86562f
commit 388783fc84
29 changed files with 444 additions and 434 deletions

View File

@@ -12,12 +12,15 @@
*/
class Visitor {
public function __call($method,$args) {
$methods = array();
$class = '';
$fnct = '';
$a0 = isset($args[0]) ? $args[0] : '';
for ($i = 0; $i < strlen($a0); $i++) {
if ($class) {
if ($a0[$i] != ':') $fnct .= $a0[$i];
} else {
if ($a0[$i] != ':') {
$fnct .= $a0[$i];
@@ -42,11 +45,20 @@ class Visitor {
$c = $class;
$call = "$method$class$fnct";
while ($class && !method_exists($this,$call)) {
array_push($methods,$call);
while ($class && ! method_exists($this,$call)) {
$class = get_parent_class($class);
$call = "$method$class$fnct";
array_push($methods,$call);
}
if (defined('TMPDEBUG') && TMPDEBUG)
printf('<font size=-2><i>Calling Methods: %s</i></font><br >',join('|',$methods));
if (defined('TMPDEBUG') && TMPDEBUG && method_exists($this,$call))
printf('<font size=-2><b>Invoking Method: %s::%s</b></font><br >',get_class($this),$call);
if ($class) {
$call .= '($obj';
for ($i = 2; $i < count($args); $i++) {