mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
44 lines
744 B
PHP
44 lines
744 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
|
|
namespace Magento\Sales\Model\ResourceModel;
|
|
|
|
/**
|
|
* Class GridPool
|
|
* @api
|
|
* @since 100.0.2
|
|
*/
|
|
class GridPool
|
|
{
|
|
/**
|
|
* @var \Magento\Sales\Model\ResourceModel\Grid[]
|
|
*/
|
|
protected $grids;
|
|
|
|
/**
|
|
* @param array $grids
|
|
*/
|
|
public function __construct(array $grids)
|
|
{
|
|
$this->grids = $grids;
|
|
}
|
|
|
|
/**
|
|
* Refresh grids list
|
|
*
|
|
* @param int $orderId
|
|
* @return $this
|
|
*/
|
|
public function refreshByOrderId($orderId)
|
|
{
|
|
foreach ($this->grids as $grid) {
|
|
$grid->refresh($orderId, $grid->getOrderIdField());
|
|
}
|
|
|
|
return $this;
|
|
}
|
|
}
|