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

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

 __construct ($name, $parameters=[])
 
 configureSecretLength ($length)
 
 encode ($data)
 
 decode ($data)
 
 getRandomBytes ()
 
- Открытые члены унаследованные от CryptoField
 encrypt ($data)
 
 decrypt ($data)
 
- Открытые члены унаследованные от TextField
 configureLong ($long=true)
 
 isLong ()
 
 convertValueFromDb ($value)
 
 convertValueToDb ($value)
 
 isValueEmpty ($value)
 
- Открытые члены унаследованные от StringField
 configureFormat ($format)
 
 getFormat ()
 
 getValidators ()
 
 configureSize ($size)
 
 getSize ()
 
 cast ($value)
 
- Открытые члены унаследованные от 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)
 
 getGetterTypeHint ()
 
 getSetterTypeHint ()
 
- Открытые члены унаследованные от Field
 setEntity (Entity $entity)
 
 resetEntity ()
 
 validateValue ($value, $primary, $row, Result $result)
 
 modifyValueBeforeSave ($value, $data)
 
 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 ()
 

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

 $secretLength = 20
 
- Защищенные данные унаследованные от CryptoField
 $cryptoKey
 
- Защищенные данные унаследованные от TextField
 $long = false
 
- Защищенные данные унаследованные от StringField
 $format = null
 
 $size = null
 
- Защищенные данные унаследованные от 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
 

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

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

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

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

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

◆ __construct()

__construct ( $name,
$parameters = [] )

SecretField constructor.

Аргументы
string$name
array$parametersCan contain 'secret_length'.

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

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

Методы

◆ configureSecretLength()

configureSecretLength ( $length)
Аргументы
int$lengthThe length of the secret

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

◆ decode()

decode ( $data)

Decodes into binary data from DB.

Аргументы
$data
Возвращает
false|string

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

◆ encode()

encode ( $data)

Encodes binary data before save into DB.

Аргументы
string$data
Возвращает
string

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

◆ getRandomBytes()

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

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

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

◆ $secretLength

$secretLength = 20
protected

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