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\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Acl\Adapter\Memory::setNoArgumentsDefaultAction

public setNoArgumentsDefaultAction (mixed $defaultAccess) Sets the default access level (Phalcon\Acl::ALLOW or Phalcon\Acl::DENY) for no arguments provided in isAllowed action if there exists func for accessKey

Acl\Adapter\Memory::isRole

public isRole (mixed $roleName) Check whether role exist in the roles list

Acl\Adapter\Memory::isResource

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

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');

Acl\Adapter\Memory::getRoles

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

Acl\Adapter\Memory::getResources

public getResources () Return an array with every resource registered in the list

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::dropResourceAccess

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