From 2ab96fe86ee27680571368e8d59c76d8c4e02c33 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 24 Aug 2009 10:18:17 +0000 Subject: [PATCH] Introduced converter functions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14114 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_filter.inc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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; } -- 2.30.2