Piwik\Settings\Storage\Factory::getSitesTable PHP Метод

getSitesTable() публичный Метод

The storage will hold values that belong to the given idSite. Be aware that a storage instance for a specific site will be cached during one request for better performance.
public getSitesTable ( integer $idSite ) : Storage
$idSite integer If idSite is empty it will use a backend that never actually persists any value. Pass $idSite = 0 to create a storage for a site that is about to be created.
Результат Storage
    public function getSitesTable($idSite)
    {
        $id = 'sitesTable#' . $idSite;
        if (empty($idSite)) {
            return $this->getNonPersistentStorage($id . '#nonpersistent');
        }
        if (!isset($this->cache[$id])) {
            $backend = new Backend\SitesTable($idSite);
            $this->cache[$id] = $this->makeStorage($backend);
        }
        return $this->cache[$id];
    }