PHP Class Imbo\Resource\AccessRules

Author: Kristoffer Brabrand ([email protected])
Inheritance: implements Imbo\Resource\ResourceInterface
Show file Open project: imbo/imbo

Public Methods

Method Description
addRules ( Imbo\EventManager\EventInterface $event ) Add access rules for the specified public key
getAllowedMethods ( )
getRules ( Imbo\EventManager\EventInterface $event ) Get access rules for the specified public key
getSubscribedEvents ( )

Private Methods

Method Description
isStringArray ( $values ) : boolean Checks if this is an array containing only strings
validateRule ( Imbo\EventManager\EventInterface $event, array $rule ) Validate the contents of an access rule.

Method Details

addRules() public method

Add access rules for the specified public key
public addRules ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event

getAllowedMethods() public method

public getAllowedMethods ( )

getRules() public method

Get access rules for the specified public key
public getRules ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event

getSubscribedEvents() public static method

public static getSubscribedEvents ( )