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
// теперь можно делать запросы к компоненту вида: | |
/api/v1/custom/ajax/class.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
Применительно к веб-окружению Битрикс: | |
Из главного меню окружения: | |
6. Manage sites.... | |
затем | |
4. Change email settings on site | |
Забиваем поля по любой доступной инструкции. Если почта не отправляется, переходим в /home/bitrix и открываем на редактирование | |
конфиг .msmtprc, содержание: | |
#Яндекс | |
logfile /home/bitrix/msmtp_domain.ru.log |
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
$userId = 23; | |
... | |
new ReferenceField( | |
'IS_VISIT', | |
getHLEntityClassNameById(VIEWED_HL_BLOCK_ID), | |
[ | |
'=this.ID' => 'ref.UF_ELEMENT_ID', | |
'=ref.UF_ENTITY_CODE' => new \Bitrix\Main\DB\SqlExpression('?i', 'case'), |
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 declare(strict_types=1); | |
/** | |
* Определение поля в методе getMap ORM класса (ClinicTable) | |
* опция serialize | |
*/ | |
class ClinicTable extends \Bitrix\Main\ORM\Data\DataManager | |
{ | |
public static function getMap() | |
{ |
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 declare(strict_types=1); | |
/** | |
* Для тестирования Закрытых методов | |
* Для метода: "$res = СlinicTable::validateInnKpp(123123, 123123);" Использовать в тесте: | |
* $res = $this->runProtectedMethod(ClinicTable::class, 'validateInnKpp', [123123, 123123]); | |
* | |
* @throws ReflectionException | |
* | |
*/ | |
protected static function runProtectedMethod($objectOrClass, string $methodName, array $args = []) |
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 | |
$runtime = [ | |
new \Bitrix\Main\Entity\ReferenceField( | |
'DOCTOR', | |
'\Bitrix\Main\UserTable', | |
[ '=this.UF_DOCTOR_ID' => 'ref.ID'] | |
) | |
]; |