/** * Create and return a new instance of the filedepot_permission_object with all permissions set * @param type $cid * @return \filedepot_permission_object */ public static function createFullPermissionObject($cid) { $obj = new filedepot_permission_object($cid); $obj->setPermissions(true, true, true, true, true, true); return $obj; }