SiteRepository
class SiteRepository extends Repository (View source)
The Site Repository
Properties
protected array | $defaultOrderings | ||
protected string | $defaultSiteNodeName |
Methods
QueryResultInterface
findOnline()
Find all sites with status "online"
Site
findFirstOnline()
Find first site with status "online"
Site|null
findOneByNodeName(string $nodeName)
No description
findDefault()
Find the site that was specified in the configuration defaultSiteNodeName
void
QueryResultInterface() $Site> findByState(int $state)
No description
Details
Site
findFirst()
Finds the first site
QueryResultInterface
findOnline()
Find all sites with status "online"
Site
findFirstOnline()
Find first site with status "online"
Site|null
findOneByNodeName(string $nodeName)
No description
Site
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
void
QueryResultInterface() $Site> findByState(int $state)
No description