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
# SEO | |
/robots.txt | |
/sitemap.xml | |
/sitemap_files.xml | |
/sitemap_iblock_*.xml | |
# 1C-Bitrix | |
/bitrix/cache | |
/bitrix/controller_log | |
/bitrix/managed_cache |
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
\Bitrix\Main\Application::getConnection() ->startTracker(); | |
$result = ExampleTable::getList(); | |
\Bitrix\Main\Application::getConnection()->stopTracker(); | |
print_r($result->getTrackerQuery()->getSql()); |
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
<? | |
/** | |
* Пример работы с конструкцией match against в ядре d7 Битрикс | |
*/ | |
use \Bitrix\Main\Entity; | |
use \Bitrix\Main\Application; | |
use \Bitrix\Main\DB; | |
$myIterator = MyTable::getList(array( | |
'runtime' => array( | |
new Entity\ExpressionField('1', '1'), |
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
<? | |
/** | |
* Class SimpleCoupons | |
* | |
* Класс для генерации купонов для существующей скидки в 1С-Битрикс | |
* Необходимые модули: catalog | |
*/ | |
class SimpleCoupons | |
{ | |
protected $length = 4; |