PHP Class Neos\Neos\Domain\Repository\SiteRepository

Inheritance: extends Neos\Flow\Persistence\Repository
Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$defaultSiteNodeName string

Public Methods

Method Description
findDefault ( ) : Site Find the site that was specified in the configuration defaultSiteNodeName
findFirst ( ) : Site Finds the first site
findFirstOnline ( ) : Site Find first site with status "online"
findOnline ( ) : Neos\Flow\Persistence\QueryResultInterface Find all sites with status "online"

Method Details

findDefault() public method

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
public findDefault ( ) : Site
return Neos\Neos\Domain\Model\Site

findFirst() public method

Finds the first site
public findFirst ( ) : Site
return Neos\Neos\Domain\Model\Site The first site or NULL if none exists

findFirstOnline() public method

Find first site with status "online"
public findFirstOnline ( ) : Site
return Neos\Neos\Domain\Model\Site

findOnline() public method

Find all sites with status "online"
public findOnline ( ) : Neos\Flow\Persistence\QueryResultInterface
return Neos\Flow\Persistence\QueryResultInterface

Property Details

$defaultSiteNodeName protected property

protected string $defaultSiteNodeName
return string