|
static | process404 ($message="", $defineConstant=true, $setStatus=true, $showPage=false, $pageFile="") |
|
static | getFieldImageData (array &$item, array $keys, $entity, $ipropertyKey='IPROPERTY_VALUES') |
|
static | getImageSrc (array $image, $safe=true) |
|
static | isCheckboxProperty (array $property) |
|
См. определение в файле tools.php строка 13
◆ getFieldImageData()
static getFieldImageData |
( |
array & |
$item, |
|
|
array |
$keys, |
|
|
|
$entity, |
|
|
|
$ipropertyKey = 'IPROPERTY_VALUES' |
|
) |
| |
|
static |
Get image data for element fields.
- Аргументы
-
array | &$item | Result CIBlockResult::GetNext/Fetch or _CIBElement::GetFields. |
array | $keys | Field keys. |
string | $entity | Entity id. |
string | $ipropertyKey | Key with seo data. |
- Возвращает
- void
См. определение в файле tools.php строка 85
◆ getImageSrc()
static getImageSrc |
( |
array |
$image, |
|
|
|
$safe = true |
|
) |
| |
|
static |
Get absolute path to image.
- Аргументы
-
array | $image | Image array from CFile::GetFileArray or Tools::getImageData. |
bool | $safe | Get encode path or unsafe. |
- Возвращает
- string
См. определение в файле tools.php строка 146
◆ isCheckboxProperty()
static isCheckboxProperty |
( |
array |
$property | ) |
|
|
static |
Check if the property is checkbox:
- PROPERTY_TYPE === 'L';
- LIST_TYPE === 'C';
- Variants amount === 1;
- Value of the variant === 'Y'.
- Аргументы
-
array | $property | Array of property settings |
- Возвращает
- bool
См. определение в файле tools.php строка 189
◆ process404()
static process404 |
( |
|
$message = "" , |
|
|
|
$defineConstant = true , |
|
|
|
$setStatus = true , |
|
|
|
$showPage = false , |
|
|
|
$pageFile = "" |
|
) |
| |
|
static |
Performs actions enabled by its parameters.
- Аргументы
-
string | $message | Message to show with bitrix:system.show_message component. |
bool | $defineConstant | If true then ERROR_404 constant defined. |
bool | $setStatus | If true sets http response status. |
bool | $showPage | If true then work area will be cleaned and /404.php will be included. |
string | $pageFile | Alternative file to /404.php. |
- Возвращает
- void
@global \CMain $APPLICATION
См. определение в файле tools.php строка 28
◆ IPROPERTY_ENTITY_ELEMENT
const IPROPERTY_ENTITY_ELEMENT = 'ELEMENT' |
◆ IPROPERTY_ENTITY_SECTION
const IPROPERTY_ENTITY_SECTION = 'SECTION' |