PHP Трейт Pantheon\Terminus\Site\SiteAwareTrait

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

Защищенные свойства (Protected)

Свойство Тип Описание
$sites Pantheon\Terminus\Collections\Sites

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

Метод Описание
getOptionalSiteEnv ( string $site_env_id ) : array Get the site and environment with the given ids, if provided
getSite ( Site $site_id ) : mixed Look up a site by id.
getSiteEnv ( string $site_env_id, string $default_env = null ) : 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 $site_id ) : mixed
$site_id Pantheon\Terminus\Models\Site Either a site's UUID or its name
Результат mixed

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

Get the site and environment with the given ids.
public getSiteEnv ( string $site_env_id, string $default_env = null ) : array
$site_env_id string The site/environment id in the form [.]
$default_env string The default environment to use if none is specified
Результат 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.

Описание свойств

$sites защищенное свойство

protected Sites,Pantheon\Terminus\Collections $sites
Результат Pantheon\Terminus\Collections\Sites