You are here

public function TMGMTJobItemUICart::addExistingJobItems in Translation Management Tool 7

Adds existing job items into the cart.

Parameters

TMGMTJobItem[] $items: Job items to be added.

File

ui/includes/tmgmt_ui.cart.inc, line 66
Contains TMGMTJobItemUICart.

Class

TMGMTJobItemUICart
Represents a job item cart.

Code

public function addExistingJobItems(array $items) {
  foreach ($items as $item) {
    if (!$this
      ->isSourceItemAdded($item->plugin, $item->item_type, $item->item_id)) {
      $this->cart[] = $item->tjiid;
    }
  }
}