private function filedepot_archiver::hasViewPermission in filedepot 7
Same name in this branch
- 7 filedepot_archiver.class.php \filedepot_archiver::hasViewPermission()
- 7 filedepot_archiver.zip.class.php \filedepot_archiver::hasViewPermission()
Checks to see if a folder has view permissions
Parameters
type $cid:
Return value
TRUE on view, FALSE on no view
4 calls to filedepot_archiver::hasViewPermission()
- filedepot_archiver::createArchive in ./
filedepot_archiver.class.php - Create the requested archive
- filedepot_archiver::createArchive in ./
filedepot_archiver.zip.class.php - Create the requested archive
- filedepot_archiver::generateAllFilesUnderCidRecursively in ./
filedepot_archiver.class.php - Generate all the files under a given category ID
- filedepot_archiver::generateAllFilesUnderCidRecursively in ./
filedepot_archiver.zip.class.php - Generate all the files under a given category ID
File
- ./
filedepot_archiver.class.php, line 40 - filedepot_archiver.class.php Archiving class for filedepot
Class
- filedepot_archiver
- @file filedepot_archiver.class.php Archiving class for filedepot
Code
private function hasViewPermission($cid) {
if (!array_key_exists($cid, $this->permissionObjectList)) {
$this->permissionObjectList[$cid] = $this->filedepotInstance
->getPermissionObject($cid);
//
}
return $this->permissionObjectList[$cid]
->canView();
}