PHP Class Neos\Neos\Domain\Repository\SiteRepository

Inheritance: extends Neos\Flow\Persistence\Repository
Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$defaultSiteNodeName string

Méthodes publiques

Méthode 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 méthode

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
Résultat Neos\Neos\Domain\Model\Site

findFirst() public méthode

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

findFirstOnline() public méthode

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

findOnline() public méthode

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

Property Details

$defaultSiteNodeName protected_oe property

protected string $defaultSiteNodeName
Résultat string