Class AbstractValidatorChainEM2

Summary

Fully Qualified Name: Zend\Session\Validator\AbstractValidatorChainEM2
Extends: EventManager

Description

Abstract validator chain for validating sessions (for use with zend-eventmanager v2).

Methods

Name Description Defined By
__construct() Construct the validation chain AbstractValidatorChainEM2
addIdentifiers() EventManager
attach() Attach a listener to the session validator chain. AbstractValidatorChainEM2
clearListeners() EventManager
detach() EventManager
getIdentifiers() EventManager
getSharedManager() Retrieve the shared event manager, if composed. EventManager
prepareArgs() Prepare arguments EventManager
setEventPrototype() EventManager
setIdentifiers() EventManager
trigger() EventManager
triggerEvent() EventManager
triggerEventUntil() EventManager
triggerUntil() EventManager

Method Details

__construct()

Construct the validation chain

Retrieves validators from session storage and attaches them.

Duplicated in ValidatorChainEM3 to prevent trait collision with parent.

Parameter Name Type Description
$storage \StorageInterface

Returns:

addIdentifiers()

Parameter Name Type Description
$identifiers

Returns:

attach()

Attach a listener to the session validator chain.

Parameter Name Type Description
$event string
$callback null|callable
$priority int

Returns: \Zend\Stdlib\CallbackHandler

clearListeners()

Parameter Name Type Description
$eventName

Returns:

detach()

Parameter Name Type Description
$listener
$eventName
$force

Returns:

getIdentifiers()

Returns:

getSharedManager()

Retrieve the shared event manager, if composed.

Returns: null|\SharedEventManagerInterface $sharedEventManager

prepareArgs()

Prepare arguments

Use this method if you want to be able to modify arguments from within a listener. It returns an ArrayObject of the arguments, which may then be passed to trigger().

Parameter Name Type Description
$args array

Returns: \ArrayObject

setEventPrototype()

Parameter Name Type Description
$prototype

Returns:

setIdentifiers()

Parameter Name Type Description
$identifiers

Returns:

trigger()

Parameter Name Type Description
$eventName
$target
$argv

Returns:

triggerEvent()

Parameter Name Type Description
$event

Returns:

triggerEventUntil()

Parameter Name Type Description
$callback
$event

Returns:

triggerUntil()

Parameter Name Type Description
$callback
$eventName
$target
$argv

Returns:

Top