*/
namespace OC\Files\Cache;
-class Shared_Permissions {
+class Shared_Permissions extends Permissions {
/**
* get the permissions for a single file
* @param string $user
* @return int (-1 if file no permissions set)
*/
- static public function get($fileId, $user) {
+ public function get($fileId, $user) {
if ($fileId == -1) {
return \OCP\PERMISSION_READ;
}
* @param string $user
* @param int $permissions
*/
- static public function set($fileId, $user, $permissions) {
+ public function set($fileId, $user, $permissions) {
// Not a valid action for Shared Permissions
}
* @param string $user
* @return int[]
*/
- static public function getMultiple($fileIds, $user) {
+ public function getMultiple($fileIds, $user) {
if (count($fileIds) === 0) {
return array();
}
* @param int $fileId
* @param string $user
*/
- static public function remove($fileId, $user) {
+ public function remove($fileId, $user) {
// Not a valid action for Shared Permissions
}
- static public function removeMultiple($fileIds, $user) {
+ public function removeMultiple($fileIds, $user) {
// Not a valid action for Shared Permissions
}
}