PHP 클래스 Sulu\Component\Webspace\Manager\WebspaceCollection

상속: implements IteratorAggregate
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
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