access.php
File containing (site)access functions
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- Deprecated
- since 4.4, this file and its compatibility functions/constants will be removed
- License
- eZ Proprietary Use License v1.0
- Package
- index
- Version
- 4.5.0
Constants
EZ_ACCESS_TYPE_DEFAULT
= 1Integer constants that identify the siteaccess matching used
- Deprecated
- Since 4.4
- See
- \eZSiteAccess
Functions
accessAllowed(
\eZURI $uri
)
:
arrayChecks if access is allowed to a module/view based on site.ini[SiteAccessRules]Rules settings
| Name | Type | Description |
|---|---|---|
| $uri | \eZURI |
| Type | Description |
|---|---|
| array | An associative array with: 'result' => bool Indicates if access is allowed 'module' => string Module name 'view' => string View name 'view_checked' => bool Indicates if view access has been checked |
- Deprecated
- Since 4.4
- See
- \eZModule::accessAllowed()
accessDebugEnabled(
)
:
boolChecks if site access debug is enabled
| Type | Description |
|---|---|
| bool |
- Deprecated
- Since 4.4
- See
- \eZSiteAccess::debugEnabled()
accessExtraDebugEnabled(
)
:
boolChecks if extra site access debug is enabled
| Type | Description |
|---|---|
| bool |
- Deprecated
- Since 4.4
- See
- \eZSiteAccess::extraDebugEnabled()
accessMatchRegexp(
string $text, string $reg, int $num
)
:
string | nullMatch a regex expression
| Name | Type | Description |
|---|---|---|
| $text | string | |
| $reg | string | |
| $num | int |
| Type | Description |
|---|---|
| string | null |
- Deprecated
- Since 4.4
- See
- \eZSiteAccess::matchRegexp()
accessMatchText(
string $text, string $match_pre, string $match_post
)
:
string | nullMatch a text string with pre or/or post text strings
| Name | Type | Description |
|---|---|---|
| $text | string | |
| $match_pre | string | |
| $match_post | string |
| Type | Description |
|---|---|
| string | null |
- Deprecated
- Since 4.4
- See
- \eZSiteAccess::matchText()
accessType(
\eZURI $uri, string $host, \string(numeric) $port, string $file
)
:
arrayGoes 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
| Name | Type | Description |
|---|---|---|
| $uri | \eZURI | |
| $host | string | |
| $port | \string(numeric) | |
| $file | string | Example '/index.php' |
| Type | Description |
|---|---|
| array |
- Deprecated
- Since 4.4
- See
- \eZSiteAccess::match()
changeAccess(
array $access
)
:
arrayChanges the site access to what's defined in $access. It will change the access path in eZSys and prepend an override dir to eZINI
| Name | Type | Description |
|---|---|---|
| $access | array | An associative array with 'name' (string), 'type' (int) and 'uri_part' (array). |
| Type | Description |
|---|---|
| array | The $access parameter |
- Deprecated
- Since 4.4
- See
- \eZSiteAccess::change()