PHP Class Sulu\Component\Webspace\Portal

Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode Description
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 )

Method Details

addEnvironment() public méthode

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

addLocalization() public méthode

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

getDefaultLocalization() public méthode

public getDefaultLocalization ( ) : Localization
Résultat Sulu\Component\Localization\Localization

getEnvironment() public méthode

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
Résultat Sulu\Component\Webspace\Environment

getEnvironments() public méthode

Returns the environment for this portal.
public getEnvironments ( ) : Sulu\Component\Webspace\Environment[]
Résultat Sulu\Component\Webspace\Environment[]

getKey() public méthode

public getKey ( ) : string
Résultat string

getLocalization() public méthode

public getLocalization ( $locale )

getLocalizations() public méthode

Returns the languages of this portal.
public getLocalizations ( ) : Localization[]
Résultat Sulu\Component\Localization\Localization[] The languages of this portal

getName() public méthode

Returns the name of the portal.
public getName ( ) : string
Résultat string The name of the portal

getWebspace() public méthode

public getWebspace ( ) : Webspace
Résultat Webspace

getXDefaultLocalization() public méthode

public getXDefaultLocalization ( ) : Localization
Résultat Sulu\Component\Localization\Localization

setDefaultLocalization() public méthode

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

setEnvironments() public méthode

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

setKey() public méthode

public setKey ( string $key )
$key string

setLocalizations() public méthode

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

setName() public méthode

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

setWebspace() public méthode

public setWebspace ( Webspace $webspace )
$webspace Webspace

setXDefaultLocalization() public méthode

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

toArray() public méthode

public toArray ( $depth = null )