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() |
---|
string
Class 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\Base
object that contains the value
\salt\Field
the field
mixed
the value to edit
string
format to use
array<mixed,mixed>
parameter passed to Base->FORM or Base->VIEW method
string
a full HTML form tag (input, select, etc...) for editing the valuegetInstance(string $class) : \salt\ViewHelper
string
Class name of a Base child class
\salt\ViewHelper
registered ViewHelper for this class, or a BaseViewHelper insteadgetInternalId() : integer
integer
Unique ID of an instancegetObject() : \salt\Base
setInstance(string $class, string $helper)
string
Class name of a Base child class
string
Class 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\Base
object that contains the value
\salt\Field
the field
mixed
the value to display
string
format to use
array<mixed,mixed>
parameter passed to Base->FORM or Base->VIEW method
string
a 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\Base
object that contains the value
\salt\Field
the field
mixed
the value to display
string
format to use
array<mixed,mixed>
parameter passed to Base->FORM or Base->VIEW method
string
a non-HTML escaped value$_salt_id : integer
$_salt_id_sequence : integer
0
$class : string
$instances : array<mixed,\salt\ViewHelper>
array()
$object : \salt\Base