access.php
File containing (site)access functions
- Copyright
- Copyright (C) 1999-2010 eZ Systems AS. All rights reserved.
- Deprecated
- This file and its compatibility functions/constants will be removed in "4.6"
- License
- GNU General Public License v2.0
- Package
- index
- Version
- 4.4.0
Constants

EZ_ACCESS_TYPE_DEFAULT
= 1
Integer constants that identify the siteaccess matching used
- See
- \eZSiteAccess
Functions

accessAllowed(
\eZURI $uri
)
:
array
Checks 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 |

accessDebugEnabled(
)
:
bool
Checks if site access debug is enabled
Type | Description |
---|---|
bool |

accessExtraDebugEnabled(
)
:
bool
Checks if extra site access debug is enabled
Type | Description |
---|---|
bool |

accessMatchRegexp(
string $text, string $reg, int $num
)
:
string | null
Match a regex expression
Name | Type | Description |
---|---|---|
$text | string | |
$reg | string | |
$num | int |
Type | Description |
---|---|
string | null |

accessMatchText(
string $text, string $match_pre, string $match_post
)
:
string | null
Match 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 |

accessType(
\eZURI $uri, string $host, \string(numeric) $port, string $file
)
:
array
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
Name | Type | Description |
---|---|---|
$uri | \eZURI | |
$host | string | |
$port | \string(numeric) | |
$file | string | Example '/index.php' |
Type | Description |
---|---|
array |

changeAccess(
array $access
)
:
array
Changes 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 |