You are here

public static function filedepot_permission_object::createFullPermissionObject in filedepot 7

Create and return a new instance of the filedepot_permission_object with all permissions set

Parameters

type $cid:

Return value

\filedepot_permission_object

1 call to filedepot_permission_object::createFullPermissionObject()
filedepot::getPermissionObject in ./filedepot.class.php
Function to retreive all user access records for a specific category and user

File

./permissions.class.php, line 45
permissions.class.php Permissions management class for the Filedepot module

Class

filedepot_permission_object
Holds information about a CIDs permissions

Code

public static function createFullPermissionObject($cid) {
  $obj = new filedepot_permission_object($cid);
  $obj
    ->setPermissions(true, true, true, true, true, true);
  return $obj;
}