'Attribute');
if (DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))
debug_log('Entered (%%)',129,0,__FILE__,__LINE__,__METHOD__,$fargs);
if (! in_array($method,array('get','visit','draw')))
debug_dump_backtrace(sprintf('Incorrect use of method loading [%s]',$method),1);
$methods = array();
$fnct = array_shift($args);
$object = $args[0];
for ($class = get_class($object); $class; $class = get_parent_class($class)) {
$call = isset($classmap[$class])? "$method$fnct$classmap[$class]": "$method$fnct$class";
array_push($methods,$call);
if (method_exists($this,$call))
break;
if (defined('DEBUGTMP') && DEBUGTMP)
printf('Class (%s): Method doesnt exist (%s,%s)
',$class,get_class($this),$call);
}
if (defined('DEBUGTMP') && DEBUGTMP)
printf('Calling Methods: %s
',implode('|',$methods));
if (defined('DEBUGTMP') && DEBUGTMP && method_exists($this,$call))
printf('Method Exists: %s::%s (%s)
',get_class($this),$call,$args);
if (method_exists($this,$call)) {
$r = call_user_func_array(array($this,$call),$args);
if (isset($r))
return $r;
else
return;
} elseif (DEBUG_ENABLED) {
debug_log('Doesnt exist param (%s,%s)',1,0,__FILE__,__LINE__,__METHOD__,$method,$fnct);
}
printf('NO Methods: %s
',implode('|',$methods));
}
/**
* Return the LDAP server ID
*
* @return int Server ID
*/
public function getServerID() {
if (DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))
debug_log('Entered (%%)',129,1,__FILE__,__LINE__,__METHOD__,$fargs,$this->server_id);
if (isset($this->server_id))
return $this->server_id;
else
return null;
}
/**
* Return this LDAP Server object
*
* @return object DataStore Server
*/
protected function getServer() {
if (DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))
debug_log('Entered (%%)',129,0,__FILE__,__LINE__,__METHOD__,$fargs);
return $_SESSION[APPCONFIG]->getServer($this->getServerID());
}
}
?>