public function getItem($key, $itemId)
    {
        $dataset = $this->getDataset($key);

        foreach ($dataset as $item) {
            if ($item["id"] === $itemId) {
                return $item;
            }
        }
        return null;
    }
public function getItem($key, $itemId)
    {
        $dataset = $this->getDataset($key);

        foreach ($dataset as $item) {
            if ($item["id"] === $itemId) {
                return $item;
            }
        }
        return null;
    }
public function getItem ( $ key , $ itemId ) { $ dataset = $ this -> getDataset ( $ key ) ; foreach ( $ dataset as $ item ) { if ( $ item [ "id" ] === $ itemId ) { return $ item ; } } return null ; }
Get an item from a dataset.

@param string $key    for the dataset
@param string $itemId for the item to get

@return array|null array with item if found, else null
Get an item from a dataset .