Sf TIC Bundles

BooleanOrNullTransformer
in package
implements DataTransformerInterface

Conversion pour valeur booléenne à 3 niveau (vrai/faux/null).

Table of Contents

Interfaces

DataTransformerInterface

Properties

$values  : mixed
$nullable  : mixed

Methods

__construct()  : mixed
Construct the data transformer with parameters.
reverseTransform()  : bool|null
Reverse transforms form value to db value.
transform()  : string
Transforms from DB value to form value.

Properties

Methods

__construct()

Construct the data transformer with parameters.

public __construct([bool $notnull = null ]) : mixed
Parameters
$notnull : bool = null

Disable the 'null' option ('null' as 'false')

reverseTransform()

Reverse transforms form value to db value.

public reverseTransform(mixed $value) : bool|null
Parameters
$value : mixed
Return values
bool|null

transform()

Transforms from DB value to form value.

public transform(mixed $value) : string
Parameters
$value : mixed
Return values
string

Label for true, false or null


        
On this page

Search results