‪TYPO3CMS  9.5
TYPO3\CMS\Core\Site\Entity\PseudoSite Class Reference
Inheritance diagram for TYPO3\CMS\Core\Site\Entity\PseudoSite:
TYPO3\CMS\Core\Site\Entity\NullSite TYPO3\CMS\Core\Site\Entity\SiteInterface TYPO3\CMS\Core\Site\Entity\SiteInterface

Public Member Functions

 __construct (int $rootPageId, array $configuration)
 
string getIdentifier ()
 
 getBase ()
 
UriInterface[] getEntryPoints ()
 
int getRootPageId ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Site\Entity\NullSite
 __construct (array $languages=null, Uri $baseEntryPoint=null)
 
SiteLanguage[] getLanguages ()
 
SiteLanguage getLanguageById (int $languageId)
 
 getDefaultLanguage ()
 
 getAvailableLanguages (BackendUserAuthentication $user, bool $includeAllLanguagesFlag=false, int $pageId=null)
 
PageErrorHandlerInterface getErrorHandler (int $statusCode)
 

Protected Member Functions

string sanitizeBaseUrl (string $base)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Site\Entity\NullSite
LanguageService getLanguageService ()
 

Protected Attributes

string[] $entryPoints
 
array $domainRecords = array( )
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Site\Entity\NullSite
int $rootPageId = 0
 
SiteLanguage[] $languages
 

Detailed Description

Entity representing a site with legacy configuration (sys_domain) and all available languages in the system (sys_language)

this class will likely be removed in TYPO3 v10.0. Please use SiteMatcher and SiteInterface to work with Sites in your own code.

Definition at line 27 of file PseudoSite.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Site\Entity\PseudoSite::__construct ( int  $rootPageId,
array  $configuration 
)

Sets up a pseudo site object, and its languages and error handlers

Parameters
int$rootPageId
array$configuration

Definition at line 44 of file PseudoSite.php.

References TYPO3\CMS\Core\Site\Entity\NullSite\$rootPageId, and TYPO3\CMS\Core\Site\Entity\PseudoSite\sanitizeBaseUrl().

Member Function Documentation

◆ getBase()

TYPO3\CMS\Core\Site\Entity\PseudoSite::getBase ( )

Returns the first base URL of this site, falls back to "/"

Reimplemented from TYPO3\CMS\Core\Site\Entity\NullSite.

Definition at line 75 of file PseudoSite.php.

◆ getEntryPoints()

UriInterface [] TYPO3\CMS\Core\Site\Entity\PseudoSite::getEntryPoints ( )

Returns the base URLs of this site, if none given, it's always "/"

Returns
‪UriInterface[]

Definition at line 85 of file PseudoSite.php.

References TYPO3\CMS\Core\Site\Entity\PseudoSite\$entryPoints.

◆ getIdentifier()

string TYPO3\CMS\Core\Site\Entity\PseudoSite::getIdentifier ( )

Returns a generic identifier

Returns
‪string

Reimplemented from TYPO3\CMS\Core\Site\Entity\NullSite.

Definition at line 67 of file PseudoSite.php.

References TYPO3\CMS\Core\Site\Entity\NullSite\$rootPageId.

◆ getRootPageId()

int TYPO3\CMS\Core\Site\Entity\PseudoSite::getRootPageId ( )

Returns the root page ID of this site

Returns
‪int

Reimplemented from TYPO3\CMS\Core\Site\Entity\NullSite.

Definition at line 95 of file PseudoSite.php.

References TYPO3\CMS\Core\Site\Entity\NullSite\$rootPageId.

◆ sanitizeBaseUrl()

string TYPO3\CMS\Core\Site\Entity\PseudoSite::sanitizeBaseUrl ( string  $base)
protected

If a site base contains "/" or "www.domain.com", it is ensured that parse_url() can handle this kind of configuration properly.

Parameters
string$base
Returns
‪string

Definition at line 107 of file PseudoSite.php.

Referenced by TYPO3\CMS\Core\Site\Entity\PseudoSite\__construct().

Member Data Documentation

◆ $domainRecords

array TYPO3\CMS\Core\Site\Entity\PseudoSite::$domainRecords = array( )
protected

attached sys_domain records

Definition at line 36 of file PseudoSite.php.

◆ $entryPoints

string [] TYPO3\CMS\Core\Site\Entity\PseudoSite::$entryPoints
protected

Definition at line 31 of file PseudoSite.php.

Referenced by TYPO3\CMS\Core\Site\Entity\PseudoSite\getEntryPoints().