Acl\ResourceInterface

Source on GitHub Methods abstract public getName () ... abstract public getDescription () ... abstract public __toString () ...

Acl\Resource::getDescription

public getDescription () Resource description

Acl\Resource

implements Phalcon\Acl\ResourceInterface Source on GitHub This class defines resource entity and its description Methods public getName () Resource name public __toString () Resource name public getDescription () Resource description public __construct (mixed $name, [mixed $description]) Phalcon\Acl\Resource constructor

Acl\ResourceAware

Source on GitHub Methods abstract public getResourceName () ...

Acl\Adapter\Memory::getRoles

public getRoles () Return an array with every role registered in the list

Acl\Adapter\Memory::deny

public deny (mixed $roleName, mixed $resourceName, mixed $access, [mixed $func]) Deny access to a role on a resource You can use ‘*’ as wildcard Example: //Deny access to guests to search on customers $acl->deny('guests', 'customers', 'search'); //Deny access to guests to search or create on customers $acl->deny('guests', 'customers', array('search', 'create')); //Deny access to any role to browse on products $acl->deny('*', 'products', 'browse'); //Deny access to any role to

Acl\Adapter\Memory::getNoArgumentsDefaultAction

public getNoArgumentsDefaultAction () Returns the default ACL access level for no arguments provided in isAllowed action if there exists func for accessKey

Acl\Adapter\Memory::isResource

public isResource (mixed $resourceName) Check whether resource exist in the resources list

Acl\Adapter\Memory::dropResourceAccess

public dropResourceAccess (mixed $resourceName, array | string $accessList) Removes an access from a resource

Acl\Adapter\Memory::isAllowed

public isAllowed (mixed $roleName, mixed $resourceName, mixed $access, [array $parameters]) Check whether a role is allowed to access an action from a resource //Does andres have access to the customers resource to create? $acl->isAllowed('andres', 'Products', 'create'); //Do guests have access to any resource to edit? $acl->isAllowed('guests', '*', 'edit');