403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/sale/lib/sender/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/sale/lib/sender/connectororder.php
<?

namespace Bitrix\Sale\Sender;

use Bitrix\Main\Loader;

if (!Loader::includeModule('sender'))
{
	return;
}

class ConnectorOrder extends \Bitrix\Sender\Connector
{
    public function getName()
    {
        return 'Sale - orders';
    }

    public function getCode()
    {
        return "order";
    }


    /** @return \CDBResult */
    public function getData()
    {
        $runtime = array();
        $filter = array();

        if($this->getFieldValue('LID'))
            $filter['=LID'] = $this->getFieldValue('LID', null);

        if($this->getFieldValue('ID'))
            $filter['=ID'] = $this->getFieldValue('ID', 0);

        if($this->getFieldValue('USER_ID'))
            $filter['=USER_ID'] = $this->getFieldValue('USER_ID', 0);

        if($this->getFieldValue('BASKET_PRODUCT_ID'))
        {
            $filter['=BASKET.PRODUCT_ID'] = $this->getFieldValue('BASKET_PRODUCT_ID', 0);
            $runtime['BASKET'] = array(
                'data_type' => 'Bitrix\Sale\Internals\Basket',
                'reference' => array(
                    '=this.ID' => 'ref.ORDER_ID'
                )
            );
        }

        $resultDb = \Bitrix\Sale\Internals\OrderTable::getList(array(
            'select' => array('USER_ID', 'NAME' => 'USER.NAME', 'EMAIL' => 'USER.EMAIL'),
            'filter' => $filter,
            'runtime' => $runtime,
            'group' => array('USER_ID', 'NAME', 'EMAIL'),
            'order' => array('USER_ID' => 'ASC'),
        ));

        return new \CDBResult($resultDb);
    }

    public function getForm()
    {
        return '';
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit