Procedural File: acl.inc.php
Source Location: /acl.inc.php
Classes:
ACLManager
Manager class for ACL system
Page Details:
This file is part of the VCL for PHP project
Copyright (c) 2004-2008 qadram software S.L. <support@qadram.com> Checkout AUTHORS file for more information on the developers This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
acl_addresource [line 180]
void acl_addresource(
string|object $object)
|
|
This global function is used to add an object or resource to the ACL system This function is used by components to add themselves to the ACL system, controls are added using their classname::name as identifiers.
Tags:
Parameters
| string|object |
$object |
Object or string identifier for the resource to be added |
acl_isallowed [line 197]
boolean acl_isallowed(
[ $resource = null], [ $privilege = null])
|
|
This function can be used to know if an specific resource and privilege are allowed for the current user/role. This method uses ACLManager to query the registered ACL objects about specific resources/privileges.
Tags:
Parameters
Documentation generated on Sat, 13 Jun 2009 10:50:54 -0700 by phpDocumentor 1.4.1
|