class SiteRepository extends Repository (View source)

The Site Repository

Properties

protected array<string,string> $defaultOrderings
protected string $defaultSiteNodeName

Methods

Site|null
findFirst()

Finds the first site

QueryResultInterface
findOnline()

Find all sites with status "online"

Site|null
findFirstOnline()

Find first site with status "online"

Site|null
findOneByNodeName(SiteNodeName $nodeName)

No description

Site|null
findDefault()

Find the site that was specified in the configuration defaultSiteNodeName

Site[]
findByNodeName(string $nodeName)

No description

Site[]
findByState(int $state)

No description

Details

Site|null findFirst()

Finds the first site

Return Value

Site|null

The first site or NULL if none exists

QueryResultInterface findOnline()

Find all sites with status "online"

Return Value

QueryResultInterface

Site|null findFirstOnline()

Find first site with status "online"

Return Value

Site|null

Site|null findOneByNodeName(SiteNodeName $nodeName)

No description

Parameters

SiteNodeName $nodeName

Return Value

Site|null

Site|null findDefault()

Find the site that was specified in the configuration defaultSiteNodeName

If the defaultSiteNodeName-setting is null the first active site is returned If the site is not found or not active an exception is thrown

Return Value

Site|null

Exceptions

Exception

Site[] findByNodeName(string $nodeName)

No description

Parameters

string $nodeName

Return Value

Site[]

Site[] findByState(int $state)

No description

Parameters

int $state

Return Value

Site[]