1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс IntegerField
Граф наследования:IntegerField:
ScalarField Field IStorable ITypeHintable IReadable

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

 __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 ()
 configureBinary ($value=true)
 isBinary ()
 configureFulltext ($value=true)
 isFulltext ()
 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 ()
 setConnection ($connection)
 getConnection ()
 serialize ($value)
 unserialize ($value)
 postInitialize ()

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

 $size = 4
Защищенные данные унаследованные от ScalarField
 $is_primary
 $is_unique
 $is_required
 $is_autocomplete
 $is_private
 $is_nullable
 $is_binary = false
 $is_fulltext = false
 $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
 $connection = null

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

Открытые статические члены унаследованные от 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


Объявления и описания членов класса находятся в файле: