summaryrefslogtreecommitdiffstats
path: root/app/class/group.class.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-10-22 00:13:12 -0400
committerMalf Furious <m@lfurio.us>2016-10-22 00:13:12 -0400
commit9d0ff6546fb03489bbd127aeec6ee161e204a139 (patch)
tree3e4624c95293c3000e0dbac095af4a461ae35176 /app/class/group.class.php
parent827a8025ab48dea386b77717f1d1bc30d10ba232 (diff)
parent35da301d31045b0974100307a7f0f4128b482170 (diff)
downloadscrott-9d0ff6546fb03489bbd127aeec6ee161e204a139.tar.gz
scrott-9d0ff6546fb03489bbd127aeec6ee161e204a139.zip
Merge branch 'feature/core/groups' into dev
Diffstat (limited to 'app/class/group.class.php')
-rw-r--r--app/class/group.class.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/class/group.class.php b/app/class/group.class.php
index dfa7deb..246276a 100644
--- a/app/class/group.class.php
+++ b/app/class/group.class.php
@@ -29,6 +29,21 @@ class Group extends Object
parent::__construct();
$this->loadObj($guid);
}
+
+ /*
+ * Create a new user group object.
+ * On success, this object should be initialized as the new group (use only on new
+ * Group() objects)
+ */
+ function createNewGroup($name, $owner)
+ {
+ $this->perms = $this->DEFAULT_OBJECT_PERMISSIONS;
+ $this->owner = $owner->guid;
+ $this->name = $name;
+ $this->type = "group";
+
+ $this->saveObj();
+ }
}
?>