Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс IntegerField
+ Граф наследования:IntegerField:

Открытые члены

 __construct ($name, $parameters=array())
 
 configureSize ($size)
 
 getSize ()
 
 cast ($value)
 
 convertValueFromDb ($value)
 
 convertValueToDb ($value)
 
 getGetterTypeHint ()
 
 getSetterTypeHint ()
 
- Открытые члены унаследованные от ScalarField
 getTypeMask ()
 
 configurePrimary ($value=true)
 
 isPrimary ()
 
 configureRequired ($value=true)
 
 isRequired ()
 
 configureUnique ($value=true)
 
 isUnique ()
 
 configureAutocomplete ($value=true)
 
 isAutocomplete ()
 
 configurePrivate ($value=true)
 
 isPrivate ()
 
 configureNullable ($value=true)
 
 isNullable ()
 
 configureColumnName ($value)
 
 getColumnName ()
 
 setColumnName ($column_name)
 
 configureDefaultValue ($value)
 
 getDefaultValue ($row=null)
 
 isValueEmpty ($value)
 
- Открытые члены унаследованные от Field
 setEntity (Entity $entity)
 
 resetEntity ()
 
 validateValue ($value, $primary, $row, Result $result)
 
 modifyValueBeforeSave ($value, $data)
 
 getValidators ()
 
 addValidator ($validator)
 
 getFetchDataModifiers ()
 
 addFetchDataModifier ($modifier)
 
 getSaveDataModifiers ()
 
 addSaveDataModifier ($modifier)
 
 isSerialized ()
 
 setSerialized ()
 
 configureSerialized ()
 
 getName ()
 
 setName ($name)
 
 configureTitle ($title)
 
 getTitle ()
 
 setParameter ($name, $value)
 
 getParameter ($name)
 
 hasParameter ($name)
 
 setParentField (Field $parentField)
 
 getParentField ()
 
 getDataType ()
 
 getEntity ()
 
 getLangCode ()
 
 getConnection ()
 
 serialize ($value)
 
 unserialize ($value)
 
 postInitialize ()
 

Защищенные данные

 $size = 4
 
- Защищенные данные унаследованные от ScalarField
 $is_primary
 
 $is_unique
 
 $is_required
 
 $is_autocomplete
 
 $is_private
 
 $is_nullable
 
 $column_name = ''
 
 $default_value
 
- Защищенные данные унаследованные от Field
 $name
 
 $dataType
 
 $initialParameters
 
 $title
 
 $validation = null
 
 $validators = null
 
 $additionalValidators = array()
 
 $fetchDataModification = null
 
 $fetchDataModifiers
 
 $additionalFetchDataModifiers = array()
 
 $saveDataModification = null
 
 $saveDataModifiers
 
 $additionalSaveDataModifiers = array()
 
 $isSerialized = false
 
 $parentField
 
 $entity
 

Дополнительные унаследованные члены

- Открытые статические члены унаследованные от Field
static getOldDataTypeByClass ($class)
 
static getOldDataTypeByField (Field $field)
 
static getClassByOldDataType ($dateType)
 
- Защищенные члены унаследованные от ScalarField
 getNullableTypeHint (string $type)
 
- Защищенные члены унаследованные от Field
 appendValidator ($validator)
 
 appendFetchDataModifier ($modifier)
 
 appendSaveDataModifier ($modifier)
 
- Статические защищенные данные унаследованные от Field
static $oldDataTypes
 

Подробное описание

См. определение в файле integerfield.php строка 19

Конструктор(ы)

◆ __construct()

__construct ( $name,
$parameters = array() )

IntegerField constructor.

Аргументы
$name
array$parametersdeprecated, use configure* and add* methods instead
Исключения

Bitrix\Main\SystemException

Переопределяет метод предка ScalarField.

См. определение в файле integerfield.php строка 32

Методы

◆ cast()

cast ( $value)
Аргументы
mixed$value
Возвращает
SqlExpression|int

Замещает IReadable.

См. определение в файле integerfield.php строка 67

◆ configureSize()

configureSize ( $size)
Аргументы
$size
Возвращает
$this

См. определение в файле integerfield.php строка 47

◆ convertValueFromDb()

convertValueFromDb ( $value)
Аргументы
mixed$value
Возвращает
int
Исключения

Bitrix\Main\SystemException

Замещает IReadable.

См. определение в файле integerfield.php строка 88

◆ convertValueToDb()

convertValueToDb ( $value)
Аргументы
int$value
Возвращает
string
Исключения

Bitrix\Main\SystemException

Замещает IReadable.

См. определение в файле integerfield.php строка 99

◆ getGetterTypeHint()

getGetterTypeHint ( )
Возвращает
string

Переопределяет метод предка ScalarField.

См. определение в файле integerfield.php строка 114

◆ getSetterTypeHint()

getSetterTypeHint ( )
Возвращает
string

Переопределяет метод предка ScalarField.

См. определение в файле integerfield.php строка 122

◆ getSize()

getSize ( )

Returns the size of the field in a database (in bits).

Возвращает
int

См. определение в файле integerfield.php строка 57

Данные класса

◆ $size

$size = 4
protected

См. определение в файле integerfield.php строка 22