Habari\FileCache::_get_group PHP Метод

_get_group() защищенный Метод

Returns the group from the cache.
protected _get_group ( $group ) : mixed
Результат mixed The group or array() if it doesn't exist in cache
    protected function _get_group($group)
    {
        if (!$this->enabled) {
            return null;
        }
        $ghash = $this->get_group_hash($group);
        if (!isset($this->cache_data[$group])) {
            $this->cache_data[$group] = array();
            if (isset($this->cache_files[$ghash])) {
                foreach ($this->cache_files[$ghash] as $hash => $record) {
                    $this->cache_data[$group][$record['name']] = unserialize(file_get_contents($record['file']));
                }
            }
        }
        return $this->cache_data[$group];
    }