SiteRepository
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
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
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
Site[]
findByNodeName(string $nodeName)
No description
Site[]
findByState(int $state)
No description