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
| <style type="text/css"> | |
| .tooltip { | |
| -webkit-box-shadow: 2px 2px 3px black; | |
| box-shadow: 2px 2px 3px black; | |
| background-color: whitesmoke; | |
| border: solid black 1px; | |
| padding: 5px; | |
| font: bold 10pt sans-serif; | |
| } |
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 | |
| use Bitrix\Main\Loader; | |
| if(!Loader::includeModule("iblock")) die(); | |
| $aFilter = array("IBLOCK_ID"=>25, "ACTIVE"=>"Y"); | |
| $rPart = CIBlockElement::GetList(array('sort'=>'ASC'), $aFilter, false, false, array()); | |
| while($oPart = $rPart->GetNextElement()): | |
| $aPart = $oPart->GetFields(); | |
| $aPart['PROP'] = $oPart->GetProperties(); |
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
| function fadeOut(el){ | |
| el.style.opacity = 1; | |
| (function fade() { | |
| if ((el.style.opacity -= .1) < 0) { | |
| el.style.display = "none"; | |
| } else { | |
| requestAnimationFrame(fade); | |
| } | |
| })(); |
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 | |
| use Bitrix\Iblock\Elements\ElementMarketplaceRequestTable; | |
| use Bitrix\Iblock\IblockTable; | |
| // ПОДГОТОВКА | |
| // 1. Задаем в инфоблоке параметр API_CODE, в моем случае = MarketplaceRequest | |
| // 2. Генерируем аннотации php bitrix.php orm:annotate -m iblock | |
| // РАБОТАЕМ | |
| // компилируем сущность |
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 | |
| namespace Umax\Lib\Classes; | |
| use Bitrix\Main\Loader, | |
| Bitrix\Main\Localization\Loc, | |
| Bitrix\Iblock; | |
| use Umax\Lib\Helpers\UmaxWebmasterEducationFuncHelpers; | |
| class CIBlockPropertyUmaxWebmasterEducationCourseDuration |
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
| // path: /local/ajax/add2basket.php | |
| <?php require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"); | |
| CModule::IncludeModule("sale"); | |
| CModule::IncludeModule("catalog"); | |
| $productID = $_POST["id"]; | |
| // простое добавление 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
| <?//print_r — Выводит удобочитаемую информацию о переменной?> | |
| <? echo'<pre>';print_r($arResult);echo'</pre>'; ?> | |
| <?//var_dump — Выводит информацию о переменной?> | |
| <? echo'<pre>';var_dump($arResult);echo'</pre>'; ?> | |
| <?//var_export — Выводит или возвращает интерпретируемое строковое представление переменной?> | |
| <? echo'<pre>';var_export($arResult);echo'</pre>'; ?> | |
| <?//phpinfo — Выводит информацию о текущей конфигурации PHP?> |
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
| Для тестирования запроса, без 1С можно использовать следующий алгоритм: | |
| 1) открыть: http://АДРЕС_САЙТА/bitrix/admin/1c_exchange.php?type=sale&mode=checkauth | |
| Должно вывести, примерно следующее: | |
| success PHPSESSID 26abebd6e578cc6d129cd14227438ee8 sessid=5a562c8331776182a53b39fa228c99cc | |
| 2) открыть: http://АДРЕС_САЙТА/bitrix/admin/1c_exchange.php?type=sale&mode=init | |
| Должно вывести, примерно следующее: |
- зачем нужны ветки ? (для возможности работы с отдельным частями проекта)
- какие бывают ветки ? (master: по-умолчанию, develop и другие вспомогательные ветки)
- зачем нужен .gitignore ? (для исключения из git'а файлов и папок, чтобы исключить конфликты при слиянии веток)
- какие проблемы за нас решает git-flow и почему стоит его использовать ? (git-flow автоматизирует процесс управления версиями и приводит систему к общепринятой модели управления версиями)
- что будет если не писать сообщения к комитам ? (тяжело будет разобраться в каком состоянии находится проект и какие правки были введены)
- unit testing (необходимо для тестирования отдельных модулей системы, как-правило это какие-то классы или объединенные участки кода имеющие общую цель)
NewerOlder