pre_check.php
File containing pre check functions as used to validate request
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- index
- Version
- 4.6.0
Functions

eZCheckList(
)
:
array
List of functions that should be checked by key identifier
Type | Description |
---|---|
array | An associative array with items to run a check on, each items is an associative array. The item must contain: function -> name of the function |
- Deprecated
- As of 4.4, since SitePrecheckRules setting is not used or documented anywhere (documentation above was added when it was deprecated) Also validity checks needs to be done before session init and user check after..

eZCheckOrder(
)
:
array
Return the order that prechecks should be checked
Type | Description |
---|---|
array |
- Deprecated
- As of 4.4, since SitePrecheckRules setting is not used or documented anywhere (documentation above was added when it was deprecated) Also validity checks needs to be done before session init and user check after..

eZCheckUser(
array $siteBasics, \eZURI $uri
)
:
array | true | false | null
Check if user login is required. If so, use login handler to redirect user.
Name | Type | Description |
---|---|---|
$siteBasics | array | |
$uri | \eZURI |
Type | Description |
---|---|
array | true | false | null | An associative array on redirect with 'module' and 'function' keys, true on successful and false/null on #fail. |
- Deprecated
- As of 4.4, moved to {@link eZUserLoginHandler::preCheck()}

eZCheckValidity(
array $siteBasics, \eZURI $uri
)
:
void
Checks if the installation is valid and returns a module redirect if required.
If CheckValidity in SiteAccessSettings is false then no check is done.
Name | Type | Description |
---|---|---|
$siteBasics | array | |
$uri | \eZURI |
- Deprecated
- As of 4.4, moved to index.php for now

eZHandlePreChecks(
array $siteBasics, \eZURI $uri
)
:
array | null
Executes pre checks
Name | Type | Description |
---|---|---|
$siteBasics | array | |
$uri | \eZURI |
Type | Description |
---|---|
array | null | A structure with redirection information or null if nothing should be done. |
- Deprecated
- As of 4.4, since SitePrecheckRules setting is not used or documented anywhere (documentation above was added when it was deprecated) Also validity checks needs to be done before session init and user check after..

precheckAllowed(
array $prechecks
)
:
array
Uses [SitePrecheckRules] to check if a precheck is allowed or not.
Setting seems to be able to be defined like this (site.ini): [SitePrecheckRules] Rules[] # access can be enabled or disabled, and will affect the later Rules[]=access;enabled # precheckall can be true (makes prior access rule affect all prechecks) Rules[]=precheckall;true # precheck needs to be set to the same key as the precheck you want to allow / disallow Rules[]=precheck;validity
Name | Type | Description |
---|---|---|
$prechecks | array |
Type | Description |
---|---|
array | The same $prechecks array but adjusted according to the SitePrecheckRules rules |
- Deprecated
- As of 4.4, since SitePrecheckRules setting is not used or documented anywhere (documentation above was added when it was deprecated)