diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-29 19:16:08 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-29 19:16:08 -0700 |
commit | c6fbd34f28f9d02f38a6c6cacbcd72fa34eee591 (patch) | |
tree | 9286b05b17b91755059c5598a9979162701707d9 /modules/gallery/libraries/drivers | |
parent | 04bf50bfb4241f7c814782c516732d927ff1f457 (diff) |
Add the add_user_to_group and remove_user_from_group api method calls. If the identity provider isn't writable, the method implementations should throw an Invalid Operation exception.
Diffstat (limited to 'modules/gallery/libraries/drivers')
-rw-r--r-- | modules/gallery/libraries/drivers/IdentityProvider.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/gallery/libraries/drivers/IdentityProvider.php b/modules/gallery/libraries/drivers/IdentityProvider.php index 739c7f6a..a808c7e8 100644 --- a/modules/gallery/libraries/drivers/IdentityProvider.php +++ b/modules/gallery/libraries/drivers/IdentityProvider.php @@ -113,6 +113,19 @@ interface IdentityProvider_Driver { */ public function groups(); + /** + * Add the user to the specified group + * @param User_Definition the user to add to the group + * @param int the group_id + */ + static function add_user_to_group($user, $group_id); + + /** + * Remove the user to the specified group + * @param User_Definition the user to add to the group + * @param int the group id + */ + static function remove_user_from_group($user, $group_id); } // End Identity Driver Definition interface Group_Definition {} |