0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
14.1-0
/
standard
/
htdocs
/
lib
/
core
/
Perms
/
[
Home
]
File: Resolver.php
<?php // (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: Resolver.php 53803 2015-02-06 00:42:50Z jyhem $ /* * Common interface definition for all Resolvers * @example A simple example how to use it: Resolver/Default.php */ interface Perms_Resolver { /* * Check if a specific permission like 'add_object' exist in any of the groups * @param string $name - permission name * @param array $groups - all groups available * @return bool $success - true if permission was found */ function check( $permission, array $groups ); /* * Get name of the object type the permissons to check belong to : i.e 'object', 'category' * @return $string name of object type */ function from(); /* * Get array of applicable groups. * @return array $ applicableGroups */ function applicableGroups(); }