summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5a2d2c9)
raw | patch | inline | side by side (parent: 5a2d2c9)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 26 Jun 2009 09:01:23 +0000 (09:01 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 26 Jun 2009 09:01:23 +0000 (09:01 +0000) |
Add the modeline again, which got lost in the las commit
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13799 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13799 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-core/include/class_plugin.inc | patch | blob | history |
index bdf87cde35950d675f113d5794f811aaaa2bf818..b96d78f1a104b4ac0d0786dbd69607d4efcfec98 100644 (file)
}
}
- function getGosaUnitTag() {
- $dn = $this->dn;
- $len = strlen($dn);
- @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, "No tag for $dn - looking for one...", "Tagging");
- $relevant = array();
- foreach ($this->config->adepartments as $key => $ntag){
- /* This one is bigger than our dn, its not relevant... */
- if ($len < strlen($key)){
- continue;
- }
-
- /* This one matches with the latter part. Break and don't fix this entry */
- if (preg_match('/(^|,)'.preg_quote($key, '/').'$/', $dn)){
- @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, "DEBUG: Possibly relevant: $key", "Tagging");
- $relevant[strlen($key)]= $ntag;
- continue;
- }
- }
-
- /* If we've some relevant tags to set, just get the longest one */
- if (count($relevant)){
- ksort($relevant);
- $tmp= array_keys($relevant);
- $idx= end($tmp);
- $tag= $relevant[$idx];
- }
-
- return $tag;
- }
-
function get_gosaUnitTag($dn = "")
{
if ($dn == "") {
return(isset($this->dialog) && $this->dialog);
}
}
-
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>