<?
// Вместо "main.ru - свой домен
COption::SetOptionString("main","server_name","main.ru");
COption::SetOptionString("main","site_name","main.ru");
// Убераем из Нстройки - Сайты - Список сайтов (в активный сайт )
$obSite = new CSite();
$t = $obSite->Update("s1", array(
'ACTIVE' => "Y",
"SERVER_NAME" => "",
"DOMAINS" => ""
));
?>
CFile::MakeFileArray($_SERVER["DOCUMENT_ROOT"]."/image.gif")
$ID = CFile::SaveFile()
$arFile = CFile::MakeFileArray($_SERVER["DOCUMENT_ROOT"]."/image.gif");
CIBlockElement::SetPropertyValueCode($ELEMENT_ID, "picture", $arFile);
$result = Sale\Internals\BasketTable::getList(array(
'filter' => array(
'FUSER_ID' => Sale\Fuser::getId(),
'ORDER_ID' => null,
'LID' => SITE_ID,
'CAN_BUY' => 'Y',
),
'select' => array('BASKET_COUNT', 'BASKET_SUM'),
'runtime' => array(
new \Bitrix\Main\Entity\ExpressionField('BASKET_COUNT', 'COUNT(*)'),
new \Bitrix\Main\Entity\ExpressionField('BASKET_SUM', 'SUM(PRICE*QUANTITY)'),
)
))->fetch();
FMUploader.init({
container : 'attachment',
mode : 'readonly',
url: {
download_route : 'https://storage.eltox.ru'
}
}).list([{"name":"61a09c12b9c7e_\u0418\u0437\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0440\u044b\u0431\u0430 \u043d\u0430 2022.doc","alias":"\u0418\u0437\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0440\u044b\u0431\u0430 \u043d\u0430 2022.doc","label":"2855154","hash":"c2cf6e574ed0e103d71ca854fda5be87ce6c5b3eae990320c5f4d8a88e97f236","group":"undefined","guid":"70bba5c7-630c-4fba-931e-06b7e936ab2c","path":"938f33c4-2702-4a54-abb0-661fea6df0e3","db":true}]);
$this->{$value['type']}( $value )
. Начиная с 7 версии и выше - ($this->$value)['type']( $value )
.https://realia.ua/prodazha-kvartir/room-2/type_object-ctudiya-2_h_i_bolee_urovnej/area-ot-25/cost-ot-500000/