Code

Updated to include interfaces, too.
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Nov 2007 13:07:57 +0000 (13:07 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Nov 2007 13:07:57 +0000 (13:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7771 594d385d-05f5-0310-b6e9-bd551577e9d8

include/autoload-data.inc
include/class_objectListEntryFilter.inc [deleted file]
include/interface_objectListEntryFilter.inc [new file with mode: 0644]
update-gosa

index b08c3f543b3266e57b7e00aa1caff30694f6a46f..4281c8e3387a222f29f9d3da8202c4e166e3d3ac 100644 (file)
@@ -4,13 +4,13 @@ $class_mapping= array(
                 "ConfigManagerException" => "include/class_ConfigManager.inc",
                 "ConfigManager" => "include/class_ConfigManager.inc",
                 "AutoloadException" => "include/autoload.inc",
+                "ObjectListEntryFilter" => "include/interface_objectListEntryFilter.inc",
                 "ObjectListException" => "include/class_ObjectList.inc",
                 "ObjectList" => "include/class_ObjectList.inc",
-                "ObjectListEntryFilter" => "include/class_objectListEntryFilter.inc",
                 "ObjectListEntryFilter_uppercase" => "include/class_objectListEntryFilter_uppercase.inc",
                 "ObjectListFilterIterator" => "include/class_ObjectListFilterIterator.inc",
                 "ObjectListViewportException" => "include/class_ObjectListViewport.inc",
                 "ObjectListViewport" => "include/class_ObjectListViewport.inc",
                 "ObjectListIterator" => "include/class_ObjectListIterator.inc",
 );
-?>
+?>
\ No newline at end of file
diff --git a/include/class_objectListEntryFilter.inc b/include/class_objectListEntryFilter.inc
deleted file mode 100644 (file)
index 2188142..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-/*! \brief   Interface for ObjectListEntryFilter objects.
-    \author  Cajus Pollmeier <pollmeier@gonicus.de>
-    \version 1.00
-    \date    2007/11/02
-
-    This interface describes what we need to filter a string
-    for use with list objects.
- */
-interface ObjectListEntryFilter {
-  static public function filter($string);
-}
-
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
-?>
diff --git a/include/interface_objectListEntryFilter.inc b/include/interface_objectListEntryFilter.inc
new file mode 100644 (file)
index 0000000..2188142
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+/*! \brief   Interface for ObjectListEntryFilter objects.
+    \author  Cajus Pollmeier <pollmeier@gonicus.de>
+    \version 1.00
+    \date    2007/11/02
+
+    This interface describes what we need to filter a string
+    for use with list objects.
+ */
+interface ObjectListEntryFilter {
+  static public function filter($string);
+}
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
index fe2816e4464a1e91ffd13e21f538ab7207b11bf1..5d631efb70a8ee4963d39c5d01b790cefc16d2bd 100755 (executable)
@@ -45,6 +45,10 @@ function get_classes($folder= ".")
         $class= preg_replace('/^\s*class\s*(\w+).*$/', '\1', $line);
         $result[$class]= preg_replace("%$base_dir/%", "", "$currdir/$folder/$file");
       }
+      if (preg_match('/^\s*interface\s*\w.*$/', $line)){
+        $class= preg_replace('/^\s*interface\s*(\w+).*$/', '\1', $line);
+        $result[$class]= preg_replace("%$base_dir/%", "", "$currdir/$folder/$file");
+      }
     }
   }