This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? require_once($_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/prolog_before.php"); | |
use Bitrix\Main\Loader; | |
use Bitrix\Iblock\PropertyIndex; | |
Loader::includeModule("iblock"); | |
CBitrixComponent::includeComponentClass('bitrix:catalog.smart.filter'); | |
$iblockID = 3; | |
$iblockSkuID = 4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dbElement = ElementTable::getList([ | |
'select' => ['ID', 'XML_ID', 'NAME', 'LINK', 'PROPERTY.ID', 'IBLOCK_ID'], | |
'filter' => [ | |
'=IBLOCK_ID' => 3, | |
'=LINK' => $elementID, | |
'=PROPERTY.CODE' => 'CML2_LINK' | |
], | |
'order' => ['ID'], | |
'runtime' => [ | |
'PROPERTY' => [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Выводит / возвращает Dump SQL запроса Bitrix D7 и старого ядра */ | |
if( !function_exists('_dumpSQL') ){ | |
function _dumpSQL(callable $callback, array $params = []) | |
{ | |
$result = []; | |
if($params['user'] == 'all' || $GLOBALS['USER']-> isAdmin() ){ |