]> git.tokkee.org Git - gosa.git/commitdiff

Code

unified post event handling!
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Mar 2010 08:38:06 +0000 (08:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Mar 2010 08:38:06 +0000 (08:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15875 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/connectivity/personal/connectivity/class_intranetAccount.inc

index db0eef261cf81506213863e083fcd973a32db6fb..f3a8b77d67f3997ebbcbfc9fdfb17ed0609cf884 100644 (file)
@@ -127,7 +127,7 @@ class intranetAccount extends plugin
       }
 
       /* Optionally execute a command after we're done */
-      $this->postremove(array("uid"=>$this->uid));
+      $this->handle_post_events('remove');
     }
   }
 
@@ -185,16 +185,16 @@ class intranetAccount extends plugin
       /* Log last action */
       if($this->initially_was_account){
         new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        $this->handle_post_events('modify');
       }else{
         new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        $this->handle_post_events('add');
       }
 
       if (!$ldap->success()){
         msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, get_class()));
       }
 
-      /* Optionally execute a command after we're done */
-      $this->postcreate(array("uid" => $this->uid));
   }