Parent ViewHelper class for groupable objects

package sso\view

 Methods

{@inheritDoc}

column(\salt\Field $field, string $format = NULL
see

Parameters

$field

\salt\Field

the field to display

$format

string

format to use for change the output

{@inheritDoc}

edit(\salt\Base $object, \salt\Field $field, mixed $value, string $format, array<mixed,mixed> $params) 
see

Parameters

$object

\salt\Base

object that contains the value

$field

\salt\Field

the field

$value

mixed

the value to edit

$format

string

format to use

$params

array<mixed,mixed>

parameter passed to Base->FORM or Base->VIEW method

Retrieve groups options for a type

getGroupOptions(integer $type, array<mixed,mixed> $contentsByTypeGroup) : array<mixed,mixed>
Static

Parameters

$type

integer

SsoGroupElement::TYPE_*

$contentsByTypeGroup

array<mixed,mixed>

[type => [group => ['count' => number, 'tooltip' => text]]]

Returns

array<mixed,mixed>array group => value (for select display)

{@inheritDoc}

show(\salt\Base $object, \salt\Field $field, mixed $value, string $format, array<mixed,mixed> $params) 
see

Parameters

$object

\salt\Base

object that contains the value

$field

\salt\Field

the field

$value

mixed

the value to display

$format

string

format to use

$params

array<mixed,mixed>

parameter passed to Base->FORM or Base->VIEW method

 Constants

 

prefix for group values when select contain element AND group values

PREFIX_GROUP_VALUE = '__g'