Parent class for *ViewHelper
ViewHelpers are handled by classes and not by instances.
| package | salt\view |
|---|---|
| inherited_from | \salt\Identifiable |
__construct(string $class)
Have to be called by child classes for having an internal ID
| inherited_from | \salt\Identifiable::__construct() |
|---|
stringClass name of a Base child class
__construct()
Have to be called by child classes for having an internal ID
column(\salt\Field $field, string $format = NULL) : string
edit(\salt\Base $object, \salt\Field $field, mixed $value, string $format, array<mixed,mixed> $params) : string
| see | |
|---|---|
| inherited_from | \salt\ViewHelper::edit() |
\salt\Baseobject that contains the value
\salt\Fieldthe field
mixedthe value to edit
stringformat to use
array<mixed,mixed>parameter passed to Base->FORM or Base->VIEW method
stringa full HTML form tag (input, select, etc...) for editing the valuegetInstance(string $class) : \salt\ViewHelper
stringClass name of a Base child class
\salt\ViewHelperregistered ViewHelper for this class, or a BaseViewHelper insteadgetInternalId() : integer
integerUnique ID of an instancegetObject() : \salt\Base
setInstance(string $class, string $helper)
stringClass name of a Base child class
stringClass name of a ViewHelper class
show(\salt\Base $object, \salt\Field $field, mixed $value, string $format, array<mixed,mixed> $params) : string
| see | |
|---|---|
| inherited_from | \salt\ViewHelper::show() |
\salt\Baseobject that contains the value
\salt\Fieldthe field
mixedthe value to display
stringformat to use
array<mixed,mixed>parameter passed to Base->FORM or Base->VIEW method
stringa HTML escaped valuetext(\salt\Base $object, \salt\Field $field, mixed $value, string $format, array<mixed,mixed> $params) : string
| see | |
|---|---|
| inherited_from | \salt\ViewHelper::text() |
\salt\Baseobject that contains the value
\salt\Fieldthe field
mixedthe value to display
stringformat to use
array<mixed,mixed>parameter passed to Base->FORM or Base->VIEW method
stringa non-HTML escaped value$_salt_id : integer
$_salt_id_sequence : integer
0$class : string
$instances : array<mixed,\salt\ViewHelper>
array()$object : \salt\Base