This file contains 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
var btn = $('#set_filter_price'); | |
var myVar = setInterval(function(){ | |
checkBtnFilter(); | |
}, 50); | |
function checkBtnFilter() { | |
if(!btn.prop('disabled')){ | |
btn.click(); | |
//console.log(btn) |
This file contains 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 | |
/** | |
* Очистка кеша | |
* @param array $iblockIds - id инфоблоков | |
*/ | |
function ClearCache($iblockIds = array()) | |
{ | |
CModule::IncludeModule('iblock'); | |
// >= iblock 15.0.7 | |
if (method_exists('CIBlock', 'clearIblockTagCache')) { |
This file contains 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 | |
$APPLICATION->ShowViewContent('type_order'); | |
$this->SetViewTarget("type_order"); | |
echo $type_order; | |
$this->EndViewTarget(); |
This file contains 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 | |
// Найдем пользователей с пустым guid с регистрацией не больше месяца | |
$objDateTime = new \Bitrix\Main\Type\DateTime(); | |
$objDateTime->add("-1 months"); | |
$arFilter = Array( | |
"UF_GUID"=>'', | |
">DATE_REGISTER"=> $objDateTime, | |
"LOGIN" =>"+%" |
This file contains 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 | |
use Bitrix\Main\Diag; | |
$connection = Bitrix\Main\Application::getConnection(); | |
/** Bitrix\Main\Diag\SqlTracker $tracker */ | |
$tracker = $connection->startTracker(); | |
// ... | |
$connection->stopTracker(); | |
foreach ($tracker->getQueries() as $query) { |
This file contains 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
<? | |
use \Bitrix\Main\Data\Cache; | |
//<ПРостий кеш> | |
$cache = Cache::createInstance(); // отрматике ексзепляр класу | |
if ($cache->initCache(7200, "cache_key")) { | |
$vars = $cache->getVars(); // отримани змінні з кешу | |
} | |
elseif ($cache->startDataCache()) { | |
// некоторые действия... |
OlderNewer