Xpressengine\Menu\MenuRepository::fetchInItem PHP Method

fetchInItem() public method

Get menu items by identifier list
public fetchInItem ( array $ids, array $with = [] ) : MenuItem[]
$ids array menu item identifier
$with array relation
return Xpressengine\Menu\Models\MenuItem[]
    public function fetchInItem(array $ids, $with = []);

Usage Example

Ejemplo n.º 1
0
 /**
  * Get menu items by identifier list
  *
  * @param array $ids  menu item identifier
  * @param array $with relation
  * @return MenuItem[]
  */
 public function fetchInItem(array $ids, $with = [])
 {
     $items = $this->repo->fetchInItem($ids, $with);
     foreach ($items as $item) {
         $this->bag[$item->getKey()] = $item;
     }
     return $items;
 }
All Usage Examples Of Xpressengine\Menu\MenuRepository::fetchInItem