IblockMoneyProperty
Table of Contents
Constants
Methods
- addFilterFields() : void
- Add values in filter.
- checkFields() : array<string|int, mixed>
- Check fields before inserting into the database.
- convertFromDB() : mixed
- The method is to convert the property value in the processing format.
- convertToDB() : mixed
- The method is to convert the value of a format suitable for storage in a database.
- getAdminListViewHTML() : mixed|string
- The method must return safe HTML display the value of the properties on the list of items the administrative part.
- getLength() : int
- Get the length of the value. Checks completion of mandatory.
- getPropertyFieldHtml() : string
- The method should return the html display for editing property values in the administrative part.
- getPublicEditHTML() : string
- Return html for public edit value.
- getPublicViewHTML() : string
- Return html for public view value.
- getSeparatedValues() : mixed
- GetUIEntityEditorProperty() : mixed
- getUnitedValue() : string
- getUserTypeDescription() : array<string|int, mixed>
- Returns property type description.
Constants
SEPARATOR
public
mixed
SEPARATOR
= '|'
USER_TYPE
public
mixed
USER_TYPE
= 'Money'
Methods
addFilterFields()
Add values in filter.
public
static addFilterFields(array<string|int, mixed> $property, array<string|int, mixed> $controlSettings, array<string|int, mixed> &$filter, bool &$filtered) : void
Parameters
- $property : array<string|int, mixed>
-
Property data.
- $controlSettings : array<string|int, mixed>
-
Form data.
- $filter : array<string|int, mixed>
-
Filter data.
- $filtered : bool
-
Marker filter.
checkFields()
Check fields before inserting into the database.
public
static checkFields(array<string|int, mixed> $property, array<string|int, mixed> $value) : array<string|int, mixed>
Parameters
- $property : array<string|int, mixed>
-
Property data.
- $value : array<string|int, mixed>
-
Current value.
Return values
array<string|int, mixed> —An empty array, if no errors.
convertFromDB()
The method is to convert the property value in the processing format.
public
static convertFromDB(array<string|int, mixed> $property, array<string|int, mixed> $value) : mixed
Parameters
- $property : array<string|int, mixed>
-
Property data.
- $value : array<string|int, mixed>
-
Current value.
convertToDB()
The method is to convert the value of a format suitable for storage in a database.
public
static convertToDB(array<string|int, mixed> $property, array<string|int, mixed> $value) : mixed
Parameters
- $property : array<string|int, mixed>
-
Property data.
- $value : array<string|int, mixed>
-
Current value.
getAdminListViewHTML()
The method must return safe HTML display the value of the properties on the list of items the administrative part.
public
static getAdminListViewHTML(array<string|int, mixed> $property, array<string|int, mixed> $value, array<string|int, mixed> $controlSettings) : mixed|string
Parameters
- $property : array<string|int, mixed>
-
Property data.
- $value : array<string|int, mixed>
-
Current value.
- $controlSettings : array<string|int, mixed>
-
Form data.
Return values
mixed|stringgetLength()
Get the length of the value. Checks completion of mandatory.
public
static getLength(array<string|int, mixed> $property, array<string|int, mixed> $value) : int
Parameters
- $property : array<string|int, mixed>
-
Property data.
- $value : array<string|int, mixed>
-
Current value.
Return values
intgetPropertyFieldHtml()
The method should return the html display for editing property values in the administrative part.
public
static getPropertyFieldHtml(array<string|int, mixed> $property, array<string|int, mixed> $value, array<string|int, mixed> $controlSettings) : string
Parameters
- $property : array<string|int, mixed>
-
Property data.
- $value : array<string|int, mixed>
-
Current value.
- $controlSettings : array<string|int, mixed>
-
Form data.
Return values
stringgetPublicEditHTML()
Return html for public edit value.
public
static getPublicEditHTML(array<string|int, mixed> $property, array<string|int, mixed> $value, array<string|int, mixed> $controlSettings) : string
Parameters
- $property : array<string|int, mixed>
-
Property data.
- $value : array<string|int, mixed>
-
Current value.
- $controlSettings : array<string|int, mixed>
-
Form data.
Return values
stringgetPublicViewHTML()
Return html for public view value.
public
static getPublicViewHTML(array<string|int, mixed> $property, array<string|int, mixed> $value, array<string|int, mixed> $controlSettings) : string
Parameters
- $property : array<string|int, mixed>
-
Property data.
- $value : array<string|int, mixed>
-
Current value.
- $controlSettings : array<string|int, mixed>
-
Form data.
Return values
stringgetSeparatedValues()
public
static getSeparatedValues(mixed $value) : mixed
Parameters
- $value : mixed
GetUIEntityEditorProperty()
public
static GetUIEntityEditorProperty(mixed $settings, mixed $value) : mixed
Parameters
- $settings : mixed
- $value : mixed
getUnitedValue()
public
static getUnitedValue(mixed $amount, string $currency) : string
Parameters
- $amount : mixed
- $currency : string
Return values
stringgetUserTypeDescription()
Returns property type description.
public
static getUserTypeDescription() : array<string|int, mixed>