eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZSiteAccess

class eZSiteAccess

Provides functions for siteaccess handling

Constants

TYPE_DEFAULT

Integer constants that identify the siteaccess matching used

TYPE_URI

TYPE_PORT

TYPE_HTTP_HOST

TYPE_INDEX_FILE

TYPE_STATIC

TYPE_SERVER_VAR

TYPE_URL

TYPE_HTTP_HOST_URI

TYPE_CUSTOM

SUBTYPE_PRE

SUBTYPE_POST

Methods

eZSiteAccess()

static array match(eZURI $uri, string $host, string(numeric) $port = 80, string $file = '/index.php')

Goes trough the access matching rules and returns the access match.

static string|null saNameByLanguage(string $language)

Gets siteaccess name by language based on site.ini[RegionalSettings]\LanguageSA[] if defined otherwise by convention ( eng-GB -> eng ), in both cases sa needs to be in site.ini[SiteAccessSettings]\RelatedSiteAccessList[] as well to be valid.

Details

at line 40
public eZSiteAccess()

at line 110
static public array match(eZURI $uri, string $host, string(numeric) $port = 80, string $file = '/index.php')

Goes trough the access matching rules and returns the access match.

The returned match is an associative array with: name => string Name of the siteaccess (same as folder name) type => int The constant that represent the matching used uri_part => array(string) List of path elements that was used in start of url for the match

Parameters

eZURI $uri
string $host
string(numeric) $port
string $file Example '/index.php'

Return Value

array

at line 658
static public string|null saNameByLanguage(string $language)

Gets siteaccess name by language based on site.ini[RegionalSettings]\LanguageSA[] if defined otherwise by convention ( eng-GB -> eng ), in both cases sa needs to be in site.ini[SiteAccessSettings]\RelatedSiteAccessList[] as well to be valid.

Parameters

string $language eg: eng-GB

Return Value

string|null