summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3eeda9b)
raw | patch | inline | side by side (parent: 3eeda9b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Jul 2010 14:12:42 +0000 (14:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Jul 2010 14:12:42 +0000 (14:12 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19189 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/Changelog | patch | blob | history | |
gosa-core/include/class_plugin.inc | patch | blob | history |
diff --git a/gosa-core/Changelog b/gosa-core/Changelog
index cbafea22239e9711890af463d0090d4acbea408f..718728f7756e9af825251dcc685a423a675ac9a1 100644 (file)
--- a/gosa-core/Changelog
+++ b/gosa-core/Changelog
===============
* gosa 2.6.11
- - Updated post-event handling and added pre-post-event hooks.
+ - Updated post-event handling and added pre-events.
- Updated sudoers plugin, to allow special chars.
- Updated samba flags and account expiration.
- Samba password hashs can now be disabled by removing 'sambaHashHook' from gosa.conf.
index 93ec6a9e9c96c27185b8b96b822d773ff347fb87..a728b97f008cdead207c52cb6df57c764f10cd76 100644 (file)
$ldap->modify($this->attrs);
*/
if($this->initially_was_account){
- $this->handle_prepost_events('remove');
+ $this->handle_pre_events('remove');
}
}
$this->tag_attrs($this->attrs);
if($this->is_new){
- $this->handle_prepost_events('add');
+ $this->handle_pre_events('add');
}else{
- $this->handle_prepost_events('modify');
+ $this->handle_pre_events('modify');
}
}
/*! \brief Forward command execution requests
* to the hook execution method.
*/
- function handle_prepost_events($mode, $addAttrs= array())
+ function handle_pre_events($mode, $addAttrs= array())
{
if(!in_array($mode, array('add','remove','modify'))){
- trigger_error(sprintf("Invalid pre-post event type given %s! Valid types are [add,modify,remove].", $mode));
+ trigger_error(sprintf("Invalid pre event type given %s! Valid types are [add,modify,remove].", $mode));
return;
}
switch ($mode){
case "add":
- plugin::callHook($this,"PREPOSTCREATE", $addAttrs);
+ plugin::callHook($this,"PRECREATE", $addAttrs);
break;
case "modify":
- plugin::callHook($this,"PREPOSTMODIFY", $addAttrs);
+ plugin::callHook($this,"PREMODIFY", $addAttrs);
break;
case "remove":
- plugin::callHook($this,"PREPOSTREMOVE", $addAttrs);
+ plugin::callHook($this,"PREREMOVE", $addAttrs);
break;
}
}