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
AddEventHandler('crm', 'OnBeforeCrmDealAdd', ['Davletyarov\Core\Crm\Handler\DealHandler', 'onBeforeCrmDealAddAndUpdate'], 10000); | |
AddEventHandler('crm', 'OnBeforeCrmDealUpdate', ['Davletyarov\Core\Crm\Handler\DealHandler', 'onBeforeCrmDealAddAndUpdate'], 10000); |
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 | |
namespace Davletyarov\Core\Crm\Handler; | |
class DealHandler | |
{ | |
public function onBeforeCrmDealAddAndUpdate(&$arFields) | |
{ | |
// проверяем не случаи ли обновление стади сделки ч/з прогресс бар | |
if (!isset($_REQUEST['ACTION']) && 'SAVE_PROGRESS' != $_REQUEST['ACTION']) { |
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 | |
defined('B_PROLOG_INCLUDED') || die(); | |
/** | |
* @global CMain $APPLICATION | |
* @var array $arParams | |
* @var array $arResult | |
*/ |
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 | |
defined('B_PROLOG_INCLUDED') || die(); | |
/** | |
* @global CMain $APPLICATION | |
* @var array $arParams | |
* @var array $arResult | |
*/ | |
// зеркально указываем оригинальное место нахождение директори шаблона, которую мы хотим расширить косвенно | |
$this->__folder = '/bitrix/components/bitrix/crm.interface.filter/templates/flat'; |
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
sudo apt install cups printer-driver-hpcups printer-driver-foo2zjs |
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 | |
Debug::writeToFile([ | |
'module' => $entity->getModule(), | |
'eventName' => $eventName, | |
'parameters' => $parameters | |
]); | |
parent::__construct($entity->getModule(), $eventName, $parameters); |
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
sudo apt isntall php7.2-dev graphviz |
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
git clone https://github.com/longxinH/xhprof.git /var/www/xhprof | |
cd xhprof/extension/ | |
/usr/bin/phpize7.2 | |
./configure --with-php-config=/usr/bin/php-config7.2 | |
sudo make | |
sudo make install |
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
extension=xhprof.so | |
xhprof.output_dir="/var/tmp/xhprof" |
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
ln -s /etc/php/7.2/mods-available/xhprof.ini /etc/php/7.2/apache2/conf.d/20-xhprof.ini |
OlderNewer