Code

Introduced converter functions
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 24 Aug 2009 10:18:17 +0000 (10:18 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 24 Aug 2009 10:18:17 +0000 (10:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14114 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_filter.inc

index 6e256f8158e824db66468b71d939e56e0ecbedc9..5ab2eb86dd8c5659d88c79a2c973be7be281d90d 100644 (file)
@@ -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;
   }