From: cajus Date: Mon, 12 Nov 2007 13:07:57 +0000 (+0000) Subject: Updated to include interfaces, too. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bd748e379eafc083aa2d264d5b302df7aa652539;p=gosa.git Updated to include interfaces, too. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7771 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/autoload-data.inc b/include/autoload-data.inc index b08c3f543..4281c8e33 100644 --- a/include/autoload-data.inc +++ b/include/autoload-data.inc @@ -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 index 218814250..000000000 --- a/include/class_objectListEntryFilter.inc +++ /dev/null @@ -1,16 +0,0 @@ - - \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 index 000000000..218814250 --- /dev/null +++ b/include/interface_objectListEntryFilter.inc @@ -0,0 +1,16 @@ + + \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/update-gosa b/update-gosa index fe2816e44..5d631efb7 100755 --- a/update-gosa +++ b/update-gosa @@ -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"); + } } }