Back to Phoca Download project (class list)

Class PhocaDownloadAccess - list of methods

Located at: Phocadownload/access/access.php
Project: Phoca Download

Method Summary

public static
(mixed $id)

Show source code of this method: getCategoryAccess Source Code

public static
(mixed $id)

Show source code of this method: getCategoryAccessByFileId Source Code

public static bool
(mixed $rightType = 'accessuserid', mixed $rightUsers = array(), mixed $rightGroup = 0, mixed $userAID = array(), mixed $userId = 0, mixed $additionalParam = 0)

Method to check if the user have access to category Display or hide the not accessible categories - subcat folder will be not displayed Check whether category access level allows access
Parameters
  • string $params rightType: accessuserid, uploaduserid, deleteuserid - access, upload, delete right
  • int $params rightUsers - All selected users which should have the "rightType" right
  • int $params rightGroup - All selected Groups of users(public, registered or special ) which should have the "rT" right
  • int $params userAID - Specific group of user who display the category in front (public, special, registerd)
  • int $params userId - Specific id of user who display the category in front (1,2,3,...)
  • int $params Additional param - e.g. $display_access_category (Should be unaccessed category displayed)
Returns
  • bool 1 or 0 $rightUsers -> $userId $rightGroup -> $userAID
Show source code of this method: getUserRight Source Code

public static
()

Show source code of this method: getNeededAccessLevels Source Code

public static
(mixed $userLevels, mixed $neededLevels)

Show source code of this method: isAccess Source Code