protected function getCacheItem($key, $item, $defaultKey, $defaultItem = null)
    {
        if (empty($cache = $this->getCache($key, $defaultKey))) {
            return $defaultItem;
        }
        if (!is_array($cache)) {
            throw new DirectAdminException("Cache item $key is not an array");
        }
        return isset($cache[$item]) ? $cache[$item] : $defaultItem;
    }
protected function getCacheItem($key, $item, $defaultKey, $defaultItem = null)
    {
        if (empty($cache = $this->getCache($key, $defaultKey))) {
            return $defaultItem;
        }
        if (!is_array($cache)) {
            throw new DirectAdminException("Cache item $key is not an array");
        }
        return isset($cache[$item]) ? $cache[$item] : $defaultItem;
    }
protected function getCacheItem ( $ key , $ item , $ defaultKey , $ defaultItem = null ) { if ( empty ( $ cache = $ this -> getCache ( $ key , $ defaultKey ) ) ) { return $ defaultItem ; } if ( ! is_array ( $ cache ) ) { throw new DirectAdminException ( "Cache item $key is not an array" ) ; } return isset ( $ cache [ $ item ] ) ? $ cache [ $ item ] : $ defaultItem ; }
Retrieves a keyed item from inside a cache item.

@param string $key
@param string $item
@param callable|mixed $defaultKey
@param mixed|null $defaultItem
@return mixed Cached value

@codeCoverageIgnore
Retrieves a keyed item from inside a cache item .