Skip to content

Instantly share code, notes, and snippets.

@SergeyZaigraev
SergeyZaigraev / smart_url_for_sitemap.php
Created October 27, 2017 03:27
Smart filter links for sitemap
<? 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;
@chebanenko
chebanenko / getProperties.php
Created January 22, 2016 07:55
Get Properties D7
$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' => [
@di7spider
di7spider / _dumpSQL.php
Last active May 24, 2023 12:49
1C Bitrix :: D7 SQL Dump
<?php
/** Выводит / возвращает Dump SQL запроса Bitrix D7 и старого ядра */
if( !function_exists('_dumpSQL') ){
function _dumpSQL(callable $callback, array $params = [])
{
$result = [];
if($params['user'] == 'all' || $GLOBALS['USER']-> isAdmin() ){