From: hickert Date: Wed, 5 May 2010 14:55:05 +0000 (+0000) Subject: Added dummy X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bbb1bfc5a0a3875a683ada7ca50820a6b63f8103;p=gosa.git Added dummy git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18149 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc index 0f623ee08..a3f46e835 100644 --- a/gosa-core/include/class_configRegistry.inc +++ b/gosa-core/include/class_configRegistry.inc @@ -179,6 +179,7 @@ class gosaProperty protected $value = ""; protected $type = "string"; protected $default = ""; + protected $defaults = ""; protected $description = ""; protected $check = ""; protected $migrate = ""; @@ -196,7 +197,7 @@ class gosaProperty protected $status = 'undefined'; protected $attributes = array('name','type','default','description','check', - 'migrate','mandatory','group'); + 'migrate','mandatory','group','defaults'); function __construct($parent,$classname,$data) { @@ -248,6 +249,7 @@ class gosaProperty function getType() { return($this->type); } function getDescription() { return($this->description); } function getDefault() { return($this->default); } + function getDefaults() { return($this->defaults); } function getStatus() { return($this->status); } function isMandatory() { return($this->mandatory); } diff --git a/gosa-core/include/class_core.inc b/gosa-core/include/class_core.inc index efe2203d9..421df114a 100644 --- a/gosa-core/include/class_core.inc +++ b/gosa-core/include/class_core.inc @@ -18,6 +18,12 @@ class all extends plugin { } class core extends plugin { + + static function getPropertyValues() + { + return(array(1,2,3)); + } + static function plInfo() { return (array( diff --git a/gosa-core/plugins/addons/configViewer/class_configViewer.inc b/gosa-core/plugins/addons/configViewer/class_configViewer.inc index c52f32aa8..edddd802f 100644 --- a/gosa-core/plugins/addons/configViewer/class_configViewer.inc +++ b/gosa-core/plugins/addons/configViewer/class_configViewer.inc @@ -121,14 +121,31 @@ class configViewer extends management $tooltip = "
".$title."
"; return($tooltip."{$cn[0]}"); } - static function propertyValue($class,$cn, $value,$type,$default,$description) + static function propertyValue($class,$cn,$value,$type,$default,$defaults) { $name = "{$class[0]}:{$cn[0]}"; $value = htmlentities($value[0], ENT_COMPAT , 'UTF-8'); switch($type[0]){ + case 'switch': + + if(!empty($defaults[0])){ + $data = call_user_func(preg_split("/::/", $defaults[0])); + if(is_array($data)){ + $res = ""; + } + } + break; case 'string': case 'integer': - $res = ""; + $res = ""; break; default: $res = ""; } diff --git a/gosa-core/plugins/addons/configViewer/class_filterProperties.inc b/gosa-core/plugins/addons/configViewer/class_filterProperties.inc index d475c3753..136eb07a4 100644 --- a/gosa-core/plugins/addons/configViewer/class_filterProperties.inc +++ b/gosa-core/plugins/addons/configViewer/class_filterProperties.inc @@ -17,6 +17,7 @@ class filterCONFIGPROPERTIES { $entry = filterCONFIGPROPERTIES::fakeLdapResult($entry, 'description', $property->getDescription()); $entry = filterCONFIGPROPERTIES::fakeLdapResult($entry, 'value', $property->getValue()); $entry = filterCONFIGPROPERTIES::fakeLdapResult($entry, 'default', $property->getDefault()); + $entry = filterCONFIGPROPERTIES::fakeLdapResult($entry, 'defaults', $property->getDefaults()); $entry = filterCONFIGPROPERTIES::fakeLdapResult($entry, 'check', $property->getCheck()); $entry = filterCONFIGPROPERTIES::fakeLdapResult($entry, 'class', $property->getClass()); $entry = filterCONFIGPROPERTIES::fakeLdapResult($entry, 'type', $property->getType()); diff --git a/gosa-core/plugins/addons/configViewer/property-list.xml b/gosa-core/plugins/addons/configViewer/property-list.xml index db88d6a99..54794a140 100644 --- a/gosa-core/plugins/addons/configViewer/property-list.xml +++ b/gosa-core/plugins/addons/configViewer/property-list.xml @@ -88,7 +88,7 @@ value string - %{filter:propertyValue(class,cn,value,type,default,description)} + %{filter:propertyValue(class,cn,value,type,default,defaults)} true