Return value without convert it

Do NOT use if PHP is multi threaded

package salt\converter
inherited_from \salt\AbstractConverter

 Methods

Retrieve converted value

__get(string $field) : mixed
Inherited

Parameters

$field

string

Field name

Returns

mixedconverter value

Set a field with converted value

__set(string $field, mixed $value) 
Inherited

Parameters

$field

string

Field name

$value

mixed

Value

Convert a value

convert(mixed $value) : mixed
see
inherited_from \salt\AbstractConverter::convert()

Parameters

$value

mixed

The value to convert

Returns

mixedthe converted value

Convert a value

convert(mixed $value) : mixed
Inherited
see
inherited_from \salt\Converter::convert()

Parameters

$value

mixed

The value to convert

Returns

mixedthe converted value

Convert a value

convertForSetter(mixed $value) : mixed
Inherited
see
inherited_from \salt\Converter::convertForSetter()

Parameters

$value

mixed

The value to convert for set in object

Returns

mixedthe converted value

Retrieve context for accessor

getContext() : mixed
Inherited

Returns

mixed$context The context

Retrieve field name

getField() : string
Inherited

Returns

stringthe field name

Retrieve a Converter instance

getInstance(object|string $object = NULL, mixed $context = NULL, string $fieldName = NULL) : static
InheritedStatic

Parameters

$object

objectstring

Object or class name for static call

$context

mixed

context to pass at convert method

$fieldName

string

set field name : use it when delegate calls between DAOConverters only.

Returns

staticthe converter instance

Retrieve object for accessor

getObject() : object | string
Inherited

Returns

objectstring$object Instance of class name of the object

Retrieve value of a field on the current object

getValue(string $field) : mixed | NULL
Inherited

Parameters

$field

string

field name

Returns

mixedNULLthe field value on current object or NULL if there is no current object

Initialize a converter accessor call

_init(array<mixed,mixed> $context = NULL, object $object = NULL, string $field = NULL
Inherited

Parameters

$context

array<mixed,mixed>

an array with format entry

$object

object

the object

$field

string

the field name

Make a new Converter

__construct() 
Inherited

 Properties

 

context for accessor call. Generaly an array with format entry

$_salt_context : array<mixed,mixed>

Default

NULL
 

field name

$_salt_field : string

Default

NULL
 

Converters instances, indexed by class name

$_salt_instances : array<mixed,\salt\Converter>

Default

array()
Static
 

object for accessor call.

$_salt_object : object

Default

NULL