PHP Класс Sulu\Component\Webspace\Manager\WebspaceCollection

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

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

Метод Описание
addResource ( Symfony\Component\Config\Resource\FileResource $resource ) Adds a new FileResource, which is required to determine if the cache is fresh.
getIterator ( ) : Traversable (PHP 5 >= 5.0.0)
Retrieve an external iterator.
getPortal ( $key ) : Portal Returns the portal with the given index.
getPortalInformations ( $environment, array | null $types = null ) : PortalInformation[] Returns the portal informations for the given environment.
getPortals ( ) : Portal[] Returns all the portals of this collection.
getResources ( ) : array Returns the resources used to build this collection.
getWebspace ( $key ) : Webspace Returns the webspace with the given key.
getWebspaces ( ) : Webspace[]
length ( ) : integer Returns the length of the collection.
setPortalInformations ( array $portalInformations ) Sets the portal Information for this collection.
setPortals ( Portal[] $portals ) Sets the portals for this collection.
setWebspaces ( Webspace[] $webspaces )
toArray ( ) : array Returns the content of these portals as array.

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

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

Adds a new FileResource, which is required to determine if the cache is fresh.
public addResource ( Symfony\Component\Config\Resource\FileResource $resource )
$resource Symfony\Component\Config\Resource\FileResource

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

(PHP 5 >= 5.0.0)
Retrieve an external iterator.
public getIterator ( ) : Traversable
Результат Traversable An instance of an object implementing Iterator or Traversable

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

Returns the portal with the given index.
public getPortal ( $key ) : Portal
$key string The index of the portal
Результат Sulu\Component\Webspace\Portal

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

Returns the portal informations for the given environment.
public getPortalInformations ( $environment, array | null $types = null ) : PortalInformation[]
$environment string The environment to deliver
$types array | null Defines which typr of portals are requested (null for all)
Результат Sulu\Component\Webspace\PortalInformation[]

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

Returns all the portals of this collection.
public getPortals ( ) : Portal[]
Результат Sulu\Component\Webspace\Portal[]

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

Returns the resources used to build this collection.
public getResources ( ) : array
Результат array The resources build to use this collection

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

Returns the webspace with the given key.
public getWebspace ( $key ) : Webspace
$key string The key of the webspace
Результат Sulu\Component\Webspace\Webspace

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

public getWebspaces ( ) : Webspace[]
Результат Sulu\Component\Webspace\Webspace[]

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

Returns the length of the collection.
public length ( ) : integer
Результат integer

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

Sets the portal Information for this collection.
public setPortalInformations ( array $portalInformations )
$portalInformations array

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

Sets the portals for this collection.
public setPortals ( Portal[] $portals )
$portals Sulu\Component\Webspace\Portal[]

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

public setWebspaces ( Webspace[] $webspaces )
$webspaces Sulu\Component\Webspace\Webspace[]

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

Returns the content of these portals as array.
public toArray ( ) : array
Результат array