diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc
index 22d84c49bf17ec1c87c5462ad288352857c86179..0f623ee08366720af8f7c422d76a23d7750183fa 100644 (file)
public $config = NULL;
public $properties = array();
public $config = NULL;
public $properties = array();
- public $mapByClass = array();
- public $mapPropertyToClass = array();
public $ldapStoredProperties = array();
public $fileStoredProperties = array();
public $classToName = array();
public $ldapStoredProperties = array();
public $fileStoredProperties = array();
public $classToName = array();
$this->ldapStoredProperties = array();
$this->fileStoredProperties = array();
$this->properties = array();
$this->ldapStoredProperties = array();
$this->fileStoredProperties = array();
$this->properties = array();
- $this->mapByClass = array();
$this->mapByName = array();
$this->mapByName = array();
- $this->mapPropertyToClass = array();
// Search for config flags defined in the config file (TAB section)
foreach($this->config->data['TABS'] as $tabname => $tabdefs){
// Search for config flags defined in the config file (TAB section)
foreach($this->config->data['TABS'] as $tabname => $tabdefs){
{
$id = count($this->properties);
$this->properties[$id] = new gosaProperty($this,$class,$data);
{
$id = count($this->properties);
$this->properties[$id] = new gosaProperty($this,$class,$data);
- $this->mapByName[$class][strtolower($data['name'])] = $id;
- $this->mapByClass[$class][] = $id;
- $this->mapPropertyToClass[$id] = $class;
+ $p = strtolower("{$class}::{$data['name']}");
+ $this->mapByName[$p] = $id;
}
public function getAllProperties()
}
public function getAllProperties()
}
function propertyExists($class,$name)
}
function propertyExists($class,$name)
- {
- return(isset($this->mapByName[$class][strtolower($name)]));
+ {
+ $p = strtolower("{$class}::{$name}");
+ return(isset($this->mapByName[$p]));
}
private function getId($class,$name)
{
}
private function getId($class,$name)
{
- if(!isset($this->mapByName[$class][strtolower($name)])){
+ $p = strtolower("{$class}::{$name}");
+ if(!isset($this->mapByName[$p])){
return(-1);
}
return(-1);
}
- return($this->mapByName[$class][strtolower($name)]);
+ return($this->mapByName[$p]);
}
function getProperty($class,$name)
}
function getProperty($class,$name)