access.php

Show: inherited
Table of Contents

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 Business Use License Agreement Version 2.0  
Package
index  
Version
4.6.0  

Constants

Constant  EZ_ACCESS_TYPE_DEFAULT = 1

Integer constants that identify the siteaccess matching used

Deprecated
Since 4.4  
See
\eZSiteAccess  
Constant  EZ_ACCESS_TYPE_URI = 2
Constant  EZ_ACCESS_TYPE_PORT = 3
Constant  EZ_ACCESS_TYPE_HTTP_HOST = 4
Constant  EZ_ACCESS_TYPE_INDEX_FILE = 5
Constant  EZ_ACCESS_TYPE_STATIC = 6
Constant  EZ_ACCESS_TYPE_SERVER_VAR = 7
Constant  EZ_ACCESS_TYPE_URL = 8
Constant  EZ_ACCESS_SUBTYPE_PRE = 1
Constant  EZ_ACCESS_SUBTYPE_POST = 2

Functions

functionaccessAllowed( \eZURI $uri ) : array

Checks if access is allowed to a module/view based on site.ini[SiteAccessRules]Rules settings

Parameters
Name Type Description
$uri \eZURI
Returns
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
Details
Deprecated
Since 4.4  
See
\eZModule::accessAllowed()  
functionaccessDebugEnabled( ) : bool

Checks if site access debug is enabled

Returns
Type Description
bool
Details
Deprecated
Since 4.4  
See
\eZSiteAccess::debugEnabled()  
functionaccessExtraDebugEnabled( ) : bool

Checks if extra site access debug is enabled

Returns
Type Description
bool
Details
Deprecated
Since 4.4  
See
\eZSiteAccess::extraDebugEnabled()  
functionaccessMatchRegexp( string $text, string $reg, int $num ) : string | null

Match a regex expression

Parameters
Name Type Description
$text string
$reg string
$num int
Returns
Type Description
string | null
Details
Deprecated
Since 4.4  
See
\eZSiteAccess::matchRegexp()  
functionaccessMatchText( string $text, string $match_pre, string $match_post ) : string | null

Match a text string with pre or/or post text strings

Parameters
Name Type Description
$text string
$match_pre string
$match_post string
Returns
Type Description
string | null
Details
Deprecated
Since 4.4  
See
\eZSiteAccess::matchText()  
functionaccessType( \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

Parameters
Name Type Description
$uri \eZURI
$host string
$port \string(numeric)
$file string

Example '/index.php'

Returns
Type Description
array
Details
Deprecated
Since 4.4  
See
\eZSiteAccess::match()  
functionchangeAccess( 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

Parameters
Name Type Description
$access array

An associative array with 'name' (string), 'type' (int) and 'uri_part' (array).

Returns
Type Description
array The $access parameter
Details
Deprecated
Since 4.4  
See
\eZSiteAccess::change()  
Documentation was generated by DocBlox 0.18.1.