method
public
static
OrderHistory::addAction()
Класс: \Bitrix\Sale\OrderHistory
Сигнатура
public static addAction(mixed $entityName, mixed $orderId, mixed $type[, null $id = null ][, null $entity = null ][, array<string|int, mixed> $fields = array() ][, null $level = null ]) : mixed
Параметры
$entityName
mixed
$orderId
mixed
$type
mixed
$id
null
= null
$entity
null
= null
$fields
array<string|int, mixed>
= array()
$level
null
= null
Возвращаемое значение
mixed
Как применяется в OrderHistory
OrderHistory::addAction() — метод класса \Bitrix\Sale\OrderHistory модуля «Интернет-магазин».
Статический метод — вызывается через имя класса OrderHistory, без создания объекта.
use Bitrix\Main\Loader;
use Bitrix\Sale\OrderHistory;
Loader::includeModule('sale');
$entityName = null;
$orderId = null;
$type = null;
$result = OrderHistory::addAction($entityName, $orderId, $type);
// $result: mixedДругие методы OrderHistory
addField()addLog()checkActionLogLevel()checkLogLevel()collectEntityFields()deleteByOrderId()deleteOldAgent()Удаляет старые записи на агентеgetManagerLogItems()
Исходный файл: source/sale/lib/orderhistory.php:97

