index c0ceb969c5955d5ef976326ccbcf0b4739104b2d..17b860c58386189fc00acba33f58227ca1acbe9d 100644 (file)
var $filename = "";
var $last_modified = 0;
var $filename = "";
var $last_modified = 0;
+ private $jsonRPChandle = NULL;
+
public $configRegistry = NULL;
/*! \brief Class constructor of the config class
public $configRegistry = NULL;
/*! \brief Class constructor of the config class
$this->data['PATHMENU']= array(); ;
break;
$this->data['PATHMENU']= array(); ;
break;
+ case 'SHORTCUTMENU':
+ $this->data['SHORTCUTMENU']= array(); ;
+ break;
+
/* Inser plugins */
case 'PLUGIN':
if ($this->tags[$this->level-3] == 'MENU' &&
/* Inser plugins */
case 'PLUGIN':
if ($this->tags[$this->level-3] == 'MENU' &&
if ($this->tags[$this->level-2] == 'PATHMENU'){
$this->data['PATHMENU'][$this->gpc++]= $attrs;
}
if ($this->tags[$this->level-2] == 'PATHMENU'){
$this->data['PATHMENU'][$this->gpc++]= $attrs;
}
+ if ($this->tags[$this->level-2] == 'SHORTCUTMENU'){
+ $this->data['SHORTCUTMENU'][$this->gpc++]= $attrs;
+ }
if ($this->tags[$this->level-2] == 'SERVICEMENU'){
$this->data['SERVICE'][$attrs['CLASS']]= $attrs;
}
if ($this->tags[$this->level-2] == 'SERVICEMENU'){
$this->data['SERVICE'][$attrs['CLASS']]= $attrs;
}
}
}
+ function getRpcHandle()
+ {
+ // Create jsonRPC handle on demand.
+ if(!$this->jsonRPChandle){
+ $this->jsonRPChandle = new jsonRPC($this);
+ }
+ return($this->jsonRPChandle);
+ }
+
+
/*! \brief Get a LDAP link object
*
* This function can be used to get an ldap object, which in turn can
/*! \brief Get a LDAP link object
*
* This function can be used to get an ldap object, which in turn can
}
// Show a warning in the syslog if there is an undefined property requested.
}
// Show a warning in the syslog if there is an undefined property requested.
- syslog(1,"Unconfigured property: {$class}::{$name}");
+ if($this->configRegistry->propertyInitializationComplete() &&
+ "{$class}::{$name}" != 'core::config' && // <--- This on is never set, only in gosa.conf.
+ "{$class}::{$name}" != 'core::logging'){ // <--- This one may cause endless recursions in class_log.inc
+ new log("debug","","Unconfigured property: '{$class}::{$name}'",array(),'');
+ }
// Try to find the property in the config file directly.
$name= strtoupper($name);
// Try to find the property in the config file directly.
$name= strtoupper($name);