PHP Интерфейс Pantheon\Terminus\Site\SiteAwareInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
getOptionalSiteEnv ( string $site_env_id ) : array Get the site and environment with the given ids if provided
getSite ( $site_id ) : mixed Look up a site by id.
getSiteEnv ( string $site_env_id, string $default_env ) : array Get the site and environment with the given ids.
setSites ( Sites $sites ) *
sites ( ) : Sites

Описание методов

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

Get the site and environment with the given ids if provided
public getOptionalSiteEnv ( string $site_env_id ) : array
$site_env_id string The site/environment id in the form [.]
Результат array The site and environment in an array, if provided; may return [null, null]

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

Look up a site by id.
public getSite ( $site_id ) : mixed
$site_id
Результат mixed

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

Get the site and environment with the given ids.
public getSiteEnv ( string $site_env_id, string $default_env ) : array
$site_env_id string The site/environment id in the form [.]
$default_env string The default environment to use if none is specified; null if not required
Результат array The site and environment in an array.

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

*
public setSites ( Sites $sites )
$sites Pantheon\Terminus\Collections\Sites

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

public sites ( ) : Sites
Результат Pantheon\Terminus\Collections\Sites The sites collection for the authenticated user.