class ControlRegistry (View source)

A simple class for registering context to view bindings, in the event that certain contexts ought to deliver different views. (Used by Express Attribute Key View vs Form)

Properties

protected ControlEntry[] $entries

Methods

__construct()

No description

registerControl($handle, $entries)

No description

register(ContextInterface $context, $handle, $viewClass)

No description

addOrReplaceEntry(ControlEntry $entry)

No description

getEntryFromContext(ContextInterface $context, $handle)

No description

getControlView(ContextInterface $context, $handle, $arguments = array())

No description

Details

__construct()

No description

registerControl($handle, $entries)

No description

Parameters

$handle
$entries

register(ContextInterface $context, $handle, $viewClass)

No description

Parameters

ContextInterface $context
$handle
$viewClass

protected addOrReplaceEntry(ControlEntry $entry)

No description

Parameters

ControlEntry $entry

protected getEntryFromContext(ContextInterface $context, $handle)

No description

Parameters

ContextInterface $context
$handle

getControlView(ContextInterface $context, $handle, $arguments = array())

No description

Parameters

ContextInterface $context
$handle
$arguments