PHP Класс Sulu\Component\Webspace\Portal

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
addEnvironment ( $environment ) Adds an environment to this portal.
addLocalization ( Localization $localization ) Adds the given language to the portal.
getDefaultLocalization ( ) : Localization
getEnvironment ( string $type ) : Sulu\Component\Webspace\Environment Returns the environment with the given type, and throws an exception if the environment does not exist.
getEnvironments ( ) : Sulu\Component\Webspace\Environment[] Returns the environment for this portal.
getKey ( ) : string
getLocalization ( $locale )
getLocalizations ( ) : Localization[] Returns the languages of this portal.
getName ( ) : string Returns the name of the portal.
getWebspace ( ) : Webspace
getXDefaultLocalization ( ) : Localization
setDefaultLocalization ( Localization $defaultLocalization )
setEnvironments ( array $environments ) Sets the environments for this portal.
setKey ( string $key )
setLocalizations ( Localization[] $localizations ) Sets the localizations to this portal.
setName ( string $name ) Sets the name of the portal.
setWebspace ( Webspace $webspace )
setXDefaultLocalization ( Localization $xDefaultLocalization )
toArray ( $depth = null )

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

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

Adds an environment to this portal.
public addEnvironment ( $environment )
$environment Environment The environment to add

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

Adds the given language to the portal.
public addLocalization ( Localization $localization )
$localization Sulu\Component\Localization\Localization

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

public getDefaultLocalization ( ) : Localization
Результат Sulu\Component\Localization\Localization

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

Returns the environment with the given type, and throws an exception if the environment does not exist.
public getEnvironment ( string $type ) : Sulu\Component\Webspace\Environment
$type string
Результат Sulu\Component\Webspace\Environment

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

Returns the environment for this portal.
public getEnvironments ( ) : Sulu\Component\Webspace\Environment[]
Результат Sulu\Component\Webspace\Environment[]

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

public getKey ( ) : string
Результат string

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

public getLocalization ( $locale )

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

Returns the languages of this portal.
public getLocalizations ( ) : Localization[]
Результат Sulu\Component\Localization\Localization[] The languages of this portal

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

Returns the name of the portal.
public getName ( ) : string
Результат string The name of the portal

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

public getWebspace ( ) : Webspace
Результат Webspace

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

public getXDefaultLocalization ( ) : Localization
Результат Sulu\Component\Localization\Localization

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

public setDefaultLocalization ( Localization $defaultLocalization )
$defaultLocalization Sulu\Component\Localization\Localization

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

Sets the environments for this portal.
public setEnvironments ( array $environments )
$environments array

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

public setKey ( string $key )
$key string

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

Sets the localizations to this portal.
public setLocalizations ( Localization[] $localizations )
$localizations Sulu\Component\Localization\Localization[]

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

Sets the name of the portal.
public setName ( string $name )
$name string The name of the portal

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

public setWebspace ( Webspace $webspace )
$webspace Webspace

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

public setXDefaultLocalization ( Localization $xDefaultLocalization )
$xDefaultLocalization Sulu\Component\Localization\Localization

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

public toArray ( $depth = null )