summaryrefslogtreecommitdiffstats
path: root/lib/group/manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/group/manager.php')
-rw-r--r--lib/group/manager.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/group/manager.php b/lib/group/manager.php
index 0599015780f..7efcff0ade0 100644
--- a/lib/group/manager.php
+++ b/lib/group/manager.php
@@ -93,7 +93,7 @@ class Manager extends PublicEmitter {
* @param string $gid
* @return bool
*/
- public function exists($gid) {
+ public function groupExists($gid) {
return !is_null($this->get($gid));
}
@@ -101,10 +101,10 @@ class Manager extends PublicEmitter {
* @param string $gid
* @return \OC\Group\Group
*/
- public function create($gid) {
+ public function createGroup($gid) {
if (!$gid) {
return false;
- } else if ($this->exists($gid)) {
+ } else if ($this->groupExists($gid)) {
return $this->get($gid);
} else {
$this->emit('\OC\Group', 'preCreate', array($gid));
@@ -126,7 +126,7 @@ class Manager extends PublicEmitter {
* @param int $offset
* @return \OC\Group\Group[]
*/
- public function search($search = '', $limit = null, $offset = null) {
+ public function search($search, $limit = null, $offset = null) {
$groups = array();
foreach ($this->backends as $backend) {
$groupIds = $backend->getGroups($search, $limit, $offset);