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

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

 __construct ($name, $parameters=array())
 configurePrecision ($precision)
 configureScale ($scale)
 getPrecision ()
 getScale ()
 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 ()

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

 $precision
 $scale
Защищенные данные унаследованные от 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

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

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

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

◆ __construct()

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

FloatField constructor.

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

Bitrix\Main\SystemException

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

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

Методы

◆ cast()

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

Замещает IReadable.

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

◆ configurePrecision()

configurePrecision ( $precision)
Аргументы
int$precision
Возвращает
$this

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

◆ configureScale()

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

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

◆ convertValueFromDb()

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

Bitrix\Main\SystemException

Замещает IReadable.

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

◆ convertValueToDb()

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

Bitrix\Main\SystemException

Замещает IReadable.

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

◆ getGetterTypeHint()

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

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

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

◆ getPrecision()

getPrecision ( )
Возвращает
int|null

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

◆ getScale()

getScale ( )
Возвращает
int|null

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

◆ getSetterTypeHint()

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

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

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

Поля

◆ $precision

$precision
protected

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

◆ $scale

$scale
protected

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


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