From ed99654d2e139a847a63e9295bf976d17462ee34 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 22 Oct 2016 00:29:30 -0400 Subject: Deprecate application code Setup to perform an iteration of development focused on a simpler implementation and eliminating redundancy in design. --- examples/app/class/group.class.php | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 examples/app/class/group.class.php (limited to 'examples/app/class/group.class.php') diff --git a/examples/app/class/group.class.php b/examples/app/class/group.class.php new file mode 100644 index 0000000..246276a --- /dev/null +++ b/examples/app/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