Skip to content

Instantly share code, notes, and snippets.

@di7spider
di7spider / api.php
Last active September 21, 2015 12:22
1C Bitrix :: base frame API on phalconphp
<?php
define("NO_AGENT_CHECK", true);
require_once $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php';
/**
* API
*
* https://docs.phalconphp.com/ru/latest/api/index.html
@di7spider
di7spider / CacheHB.php
Last active September 11, 2015 13:47
1C Bitrix :: Class cache highload block
<?
use
\Bitrix\Highloadblock\HighloadBlockTable as HighloadBlockTable;
/** Кэширование Highload блоков */
class CacheHB
{
const DEF_CACHE_FOLDER = 'cache';
const DEF_CACHE_TIME = 36000;
const DEF_CACHE_TIME_HBT = 36000;
@di7spider
di7spider / hb_uf_code_generate.php
Last active September 10, 2015 12:10
1C Bitrix :: Генерация символьных кодов (UF_CODE) на основе имени (UF_NAME) для H-Инфоблоков
<?
include $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php';
use
\Bitrix\Highloadblock\HighloadBlockTable as HighloadBlockTable;
array_map('\Bitrix\Main\Loader::includeModule',
Array(
'iblock',
'highloadblock'