From 0d53041fc67e13fc53cca0c993ec1a7a31a5a16e Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 15 Jan 2017 05:57:19 -0500 Subject: Reorganize examples/ directory --- examples/class/group.class.php | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 examples/class/group.class.php (limited to 'examples/class/group.class.php') diff --git a/examples/class/group.class.php b/examples/class/group.class.php new file mode 100644 index 0000000..246276a --- /dev/null +++ b/examples/class/group.class.php @@ -0,0 +1,49 @@ +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(); + } +} + +?> -- cgit v1.2.3