Bitrix-D7
20.5.0
ireadable.php
См. документацию.
1
<?php
2
/**
3
* Bitrix Framework
4
* @package bitrix
5
* @subpackage main
6
* @copyright 2001-2017 Bitrix
7
*/
8
9
namespace
Bitrix\Main\ORM\Fields
;
10
11
/**
12
* Interface for Entity Fields to be filtered by Query.
13
* @package Bitrix\Main\ORM
14
*/
15
interface
IReadable
16
{
17
/**
18
* Casts value strictly to field type.
19
* Non-static because of field configuration (e.g. length for string or precision for float)
20
*
21
* @param mixed $value
22
*
23
* @return mixed
24
*/
25
public
function
cast
($value);
26
27
/**
28
* Returns value converted from SQL raw result.
29
* Non-static because of dependency on Entity's Connection. Should use $this->getConnection() inside.
30
*
31
* @param mixed $value
32
*
33
* @return mixed
34
*/
35
public
function
convertValueFromDb
($value);
36
37
/**
38
* Returns raw SQL with escaped and quoted value.
39
* Non-static because of dependency on Entity's Connection. Should use $this->getConnection() inside.
40
*
41
* @param mixed $value
42
*
43
* @return string
44
*/
45
public
function
convertValueToDb
($value);
46
}
Bitrix\Main\ORM\Fields\IReadable
Definition:
ireadable.php:16
Bitrix\Main\ORM\Fields\IReadable\cast
cast($value)
Casts value strictly to field type.
Bitrix\Main\ORM\Fields\IReadable\convertValueFromDb
convertValueFromDb($value)
Returns value converted from SQL raw result.
Bitrix\Main\ORM\Fields\IReadable\convertValueToDb
convertValueToDb($value)
Returns raw SQL with escaped and quoted value.
Bitrix\Main\ORM\Fields
Definition:
arrayfield.php:9
modules
main
lib
orm
fields
ireadable.php
Создано системой
1.9.1