From: cajus Date: Mon, 24 Aug 2009 10:18:17 +0000 (+0000) Subject: Introduced converter functions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2ab96fe86ee27680571368e8d59c76d8c4e02c33;p=gosa.git Introduced converter functions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14114 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_filter.inc b/gosa-core/include/class_filter.inc index 6e256f815..5ab2eb86d 100644 --- a/gosa-core/include/class_filter.inc +++ b/gosa-core/include/class_filter.inc @@ -35,6 +35,7 @@ class filter { var $initial= false; var $scopeMode= "auto"; var $alphabet= null; + var $converter= array(); function filter($filename) @@ -237,17 +238,26 @@ class filter { } - function setObjectStorage($storage) { + function setConverter($field, $hook) + { + $this->converter[$field]= $hook; + } + + + function setObjectStorage($storage) + { $this->objectStorage= $storage; } - function setBase($base) { + function setBase($base) + { $this->base= $base; } - function setCurrentScope($scope) { + function setCurrentScope($scope) + { $this->scope= $scope; }