Bitrix API

IReadable

Interface for Entity Fields to be filtered by Query.

Table of Contents

Methods

cast()  : mixed
Casts value strictly to field type.
convertValueFromDb()  : mixed
Returns value converted from SQL raw result.
convertValueToDb()  : string
Returns raw SQL with escaped and quoted value.

Methods

cast()

Casts value strictly to field type.

public cast(mixed $value) : mixed

Non-static because of field configuration (e.g. length for string or precision for float)

Parameters
$value : mixed

convertValueFromDb()

Returns value converted from SQL raw result.

public convertValueFromDb(mixed $value) : mixed

Non-static because of dependency on Entity's Connection. Should use $this->getConnection() inside.

Parameters
$value : mixed

convertValueToDb()

Returns raw SQL with escaped and quoted value.

public convertValueToDb(mixed $value) : string

Non-static because of dependency on Entity's Connection. Should use $this->getConnection() inside.

Parameters
$value : mixed
Return values
string

        
On this page

Search results