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()

registerControl($handle, $entries)

Parameters

$handle
$entries

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

Parameters

ContextInterface $context
$handle
$viewClass

protected addOrReplaceEntry(ControlEntry $entry)

Parameters

ControlEntry $entry

protected getEntryFromContext(ContextInterface $context, $handle)

Parameters

ContextInterface $context
$handle

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

Parameters

ContextInterface $context
$handle
$arguments