private Enlight_Components_Snippet_Manager
$snippets;
public function __construct(string
$entity, ModelManager
$entityManager, Enlight_Components_Snippet_Manager
$snippets) { parent::
__construct($entity,
$entityManager);
$this->snippets =
$snippets;
} public function getList($identifiers) { $orders = parent::
getList($identifiers);
$documents =
$this->
getDocuments($orders);
$namespace =
$this->snippets->
getNamespace('backend/static/order_status'
);
foreach ($orders as &
$order) { $order['orderStateName'
] =
$namespace->
get($order['orderStateKey'
]);
$order['orderDocuments'
] =
$this->
getOrderDocuments($documents,
$order);
$order['supplierId'
] =
explode(',',
$order['supplierId'
] ?? ''
);
$order['articleNumber'
] =
explode(',',
$order['articleNumber'
] ?? ''
);
} return $orders;
}