Back to Phoca Gallery project (class list)

Class PhocaGalleryAccess - list of methods

Copyright: Copyright (C) Jan Pavelka https://www.phoca.cz
License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 and later
Located at: Phocagallery/access/access.php
Project: Phoca Gallery

Method Summary

public static
(mixed $id)

Show source code of this method: getCategoryAccess 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
Show source code of this method: getUserRight Source Code

public static array
(mixed $name, mixed $id, mixed $active, mixed $nouser = 0, mixed $javascript = NULL, mixed $order = 'name', mixed $reg = 1, mixed $returnArray = 0)

Method to display multiple select box
Parameters
  • string $name Name (id, name parameters)
  • array $active Array of items which will be selected
  • int $nouser Select no user
  • string $javascript Add javascript to the select box
  • string $order Ordering of items
  • int $reg Only registered users
Returns
  • array of id
Show source code of this method: usersList Source Code

public static
(mixed $name, mixed $id, mixed $active, mixed $nouser = 0, mixed $javascript = NULL, mixed $order = 'name', mixed $reg = 1, mixed $returnArray = 0)

Show source code of this method: usersListOwner 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