aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-10 01:59:59 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-10 01:59:59 +0200
commitcc2818ba130d417a762b1a9ef492928378a2c595 (patch)
tree07e686109cf9d5458d4d356312fed1959bf0054e
parentc2bff656ffb355277ed0edd7d46083006865ed5c (diff)
downloadnextcloud-server-cc2818ba130d417a762b1a9ef492928378a2c595.tar.gz
nextcloud-server-cc2818ba130d417a762b1a9ef492928378a2c595.zip
more consitency in hook names
-rw-r--r--lib/group/group.php6
-rw-r--r--lib/group/manager.php12
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/group/group.php b/lib/group/group.php
index 6d0cb8f316b..d8a6b6215b1 100644
--- a/lib/group/group.php
+++ b/lib/group/group.php
@@ -116,7 +116,7 @@ class Group {
$this->users[] = $user;
}
if ($this->emitter) {
- $this->emitter->emit('\OC\Group', 'addUser', array($this, $user));
+ $this->emitter->emit('\OC\Group', 'postAddUser', array($this, $user));
}
return;
}
@@ -141,7 +141,7 @@ class Group {
}
if ($result) {
if ($this->emitter) {
- $this->emitter->emit('\OC\Group', 'removeUser', array($this, $user));
+ $this->emitter->emit('\OC\Group', 'postRemoveUser', array($this, $user));
}
if ($this->users) {
foreach ($this->users as $index => $groupUser) {
@@ -231,7 +231,7 @@ class Group {
}
}
if ($result and $this->emitter) {
- $this->emitter->emit('\OC\Group', 'delete', array($this));
+ $this->emitter->emit('\OC\Group', 'postDelete', array($this));
}
return $result;
}
diff --git a/lib/group/manager.php b/lib/group/manager.php
index ecbe3dbb83d..4f8be4bf22a 100644
--- a/lib/group/manager.php
+++ b/lib/group/manager.php
@@ -15,14 +15,14 @@ use OC\Hooks\PublicEmitter;
* Class Manager
*
* Hooks available in scope \OC\Group:
- * - addUser(\OC\Group\Group $group, \OC\User\User $user)
* - preAddUser(\OC\Group\Group $group, \OC\User\User $user)
- * - removeUser(\OC\Group\Group $group, \OC\User\User $user)
+ * - postAddUser(\OC\Group\Group $group, \OC\User\User $user)
* - preRemoveUser(\OC\Group\Group $group, \OC\User\User $user)
- * - delete(\OC\Group\Group $group)
+ * - postRemoveUser(\OC\Group\Group $group, \OC\User\User $user)
* - preDelete(\OC\Group\Group $group)
- * - create(\OC\Group\Group $group)
+ * - postDelete(\OC\Group\Group $group)
* - preCreate(string $groupId)
+ * - postCreate(\OC\Group\Group $group)
*
* @package OC\Group
*/
@@ -48,7 +48,7 @@ class Manager extends PublicEmitter {
public function __construct($userManager) {
$this->userManager = $userManager;
$cache = &$this->cachedGroups;
- $this->listen('\OC\Group', 'delete', function ($group) use (&$cache) {
+ $this->listen('\OC\Group', 'postDelete', function ($group) use (&$cache) {
/**
* @var \OC\Group\Group $group
*/
@@ -112,7 +112,7 @@ class Manager extends PublicEmitter {
if ($backend->implementsActions(OC_GROUP_BACKEND_CREATE_GROUP)) {
$backend->createGroup($gid);
$group = $this->createGroupObject($gid);
- $this->emit('\OC\Group', 'create', array($group));
+ $this->emit('\OC\Group', 'postCreate', array($group));
return $group;
}
}