From: Jan Schneider Date: Tue, 7 Dec 2010 14:34:03 +0000 (+0100) Subject: Mark abstract methods. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d58b073831068d2a8fc8240df891ba6319745133;p=horde.git Mark abstract methods. --- diff --git a/framework/Share/lib/Horde/Share/Object.php b/framework/Share/lib/Horde/Share/Object.php index cb012f456..055b7d917 100644 --- a/framework/Share/lib/Horde/Share/Object.php +++ b/framework/Share/lib/Horde/Share/Object.php @@ -235,12 +235,33 @@ abstract class Horde_Share_Object implements Serializable } /** + * Checks to see if a user has a given permission. + * + * @param string $userid The userid of the user. + * @param integer $permission A Horde_Perms::* constant to test for. + * @param string $creator The creator of the event. + * + * @return boolean Whether or not $userid has $permission. + */ + abstract public function hasPermission($userid, $permission, $creator = null); + + /** + * Sets the permission of this share. + * + * @param Horde_Perms_Permission $perm Permission object. + * @param boolean $update Should the share be saved + * after this operation? + * + * @return boolean + */ + abstract public function setPermission($perm, $update = true); + + /** * Returns the permission of this share. * * @return Horde_Perms_Permission Permission object that represents the * permissions on this share. */ - public function getPermission() - { - } + abstract public function getPermission(); + }