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

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

 __construct ($name, $parameters=array())
 
 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)
 
 getGetterTypeHint ()
 
 getSetterTypeHint ()
 
- Открытые члены унаследованные от 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 ()
 
- Открытые члены унаследованные от IReadable
 cast ($value)
 
 convertValueFromDb ($value)
 
 convertValueToDb ($value)
 

Защищенные члены

 getNullableTypeHint (string $type)
 
- Защищенные члены унаследованные от Field
 appendValidator ($validator)
 
 appendFetchDataModifier ($modifier)
 
 appendSaveDataModifier ($modifier)
 

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

 $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)
 
- Статические защищенные данные унаследованные от Field
static $oldDataTypes
 

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

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

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

◆ __construct()

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

ScalarField constructor.

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

Bitrix\Main\SystemException

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

Переопределяется в ArrayField, ObjectField, SecretField, BooleanField, CryptoField, DateField, DatetimeField, EnumField, FloatField, IntegerField, StringField, TextField и CryptoField.

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

Методы

◆ configureAutocomplete()

configureAutocomplete ( $value = true)
Аргументы
boolean$value
Возвращает
$this

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

◆ configureColumnName()

configureColumnName ( $value)
Аргументы
string$value
Возвращает
$this

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

◆ configureDefaultValue()

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

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

◆ configureNullable()

configureNullable ( $value = true)
Аргументы
bool$value
Возвращает
ScalarField

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

◆ configurePrimary()

configurePrimary ( $value = true)
Аргументы
boolean$value
Возвращает
$this

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

◆ configurePrivate()

configurePrivate ( $value = true)
Аргументы
bool$value
Возвращает
ScalarField

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

◆ configureRequired()

configureRequired ( $value = true)
Аргументы
boolean$value
Возвращает
$this

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

◆ configureUnique()

configureUnique ( $value = true)
Аргументы
boolean$value
Возвращает
$this

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

◆ getColumnName()

getColumnName ( )

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

◆ getDefaultValue()

getDefaultValue ( $row = null)
Аргументы
array$rowORM data row in case of dependency value on other values
Возвращает
callable|mixed|null

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

◆ getGetterTypeHint()

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

Замещает ITypeHintable.

Переопределяется в ArrayField, BooleanField, DateField, DatetimeField, FloatField, IntegerField и ObjectField.

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

◆ getNullableTypeHint()

getNullableTypeHint ( string $type)
protected
Аргументы
string$type
Возвращает
string

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

◆ getSetterTypeHint()

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

Замещает ITypeHintable.

Переопределяется в ArrayField, BooleanField, DateField, DatetimeField, FloatField, IntegerField и ObjectField.

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

◆ getTypeMask()

getTypeMask ( )
Возвращает
int

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

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

◆ isAutocomplete()

isAutocomplete ( )

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

◆ isNullable()

isNullable ( )
Возвращает
bool

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

◆ isPrimary()

isPrimary ( )

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

◆ isPrivate()

isPrivate ( )
Возвращает
bool

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

◆ isRequired()

isRequired ( )

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

◆ isUnique()

isUnique ( )

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

◆ isValueEmpty()

isValueEmpty ( $value)

Переопределяется в BooleanField и TextField.

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

◆ setColumnName()

setColumnName ( $column_name)
Аргументы
string$column_name

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

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

◆ $column_name

$column_name = ''
protected

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

◆ $default_value

$default_value
protected

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

◆ $is_autocomplete

$is_autocomplete
protected

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

◆ $is_nullable

$is_nullable
protected

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

◆ $is_primary

$is_primary
protected

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

◆ $is_private

$is_private
protected

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

◆ $is_required

$is_required
protected

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

◆ $is_unique

$is_unique
protected

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