| Current Path : /var/www/homesaver/www/bitrix/modules/catalog/lib/restview/ |
| Current File : /var/www/homesaver/www/bitrix/modules/catalog/lib/restview/productimage.php |
<?php
namespace Bitrix\Catalog\RestView;
use Bitrix\Rest\Integration\View\Attributes;
use Bitrix\Rest\Integration\View\DataType;
use Bitrix\Rest\Integration\View\Base;
final class ProductImage extends Base
{
/**
* @return array[]
*/
public function getFields()
{
return [
'ID' => [
'TYPE' => DataType::TYPE_INT,
'ATTRIBUTES' => [
Attributes::READONLY
]
],
'NAME' => [
'TYPE' => DataType::TYPE_STRING,
'ATTRIBUTES' => [
Attributes::READONLY
]
],
'PRODUCT_ID' => [
'TYPE' => DataType::TYPE_STRING,
'ATTRIBUTES' => [
Attributes::REQUIRED
]
],
'TYPE' => [
'TYPE' => DataType::TYPE_STRING,
],
'CREATE_TIME' => [
'TYPE' => DataType::TYPE_DATETIME,
'ATTRIBUTES' => [
Attributes::READONLY
]
],
'DOWNLOAD_URL' => [
'TYPE' => DataType::TYPE_STRING,
'ATTRIBUTES' => [
Attributes::READONLY
]
],
'DETAIL_URL' => [
'TYPE' => DataType::TYPE_STRING,
'ATTRIBUTES' => [
Attributes::READONLY
]
],
];
}
}