kernel/classes/ezsslzone.php
File containing the eZSSLZone class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\eZSSLZone
File containing the eZSSLZone class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Constants
Methods


checkModuleView(
$module, $view
)
:
void
\static Decide whether we should change access mode for this module view or not.
Called from index.php.
Name | Type | Description |
---|---|---|
$module | ||
$view |


checkNode(
$module, $view, $node, $redirect
=
true
)
:
void
\static Check whether the given node should cause access mode change.
It it should, this method does not return.
Name | Type | Description |
---|---|---|
$module | ||
$view | ||
$node | ||
$redirect |


checkNodeID(
$module, $view, $nodeID
)
:
void
\static Check whether the given node should cause access mode change.
It it should, this method does not return.
\see checkNode()
Name | Type | Description |
---|---|---|
$module | ||
$view | ||
$nodeID |


checkNodePath(
$module, $view, $pathString, $redirect
=
true
)
:
void
\static Check whether the given node should cause access mode change.
It it should, this method does not return.
Name | Type | Description |
---|---|---|
$module | ||
$view | ||
$pathString | ||
$redirect |


checkObject(
$module, $view, $object
)
:
void
\static Check whether the given object should cause access mode change.
It it should, this method does not return.
Name | Type | Description |
---|---|---|
$module | ||
$view | ||
$object |


enabled(
)
:
void
\static Returns true if the SSL zones functionality is enabled, false otherwise.
The result is cached in memory to save time on multiple invocations.


getSSLZones(
)
:
void
\static Load content SSL zones definitions.
Substitute URIs with corresponding path strings (e.g. "/news" would be subsituted with "/1/2/50"). The result is cached in memory to save time on multiple invocations. It is also saved in a cache file that is usually updated by eZContentCacheManager along with content cache.


isKeepModeView(
$module, $view
)
:
void
\static \return true if the view is defined as 'keep'
Name | Type | Description |
---|---|---|
$module | ||
$view |


switchIfNeeded(
$inSSL
)
:
void
\static \param $inSSL The desired access mode.
Change access mode (HTTP/HTTPS): - If previous mode was HHTP but $inSSL is true, we switch to SSL. - If previous mode was SSL but $inSSL is false, we switch to HTTP. - Otherwise no mode change is occured.
Mode change is done by redirect to the same URL, but with changed protocol (http/https) and TCP port.
In case of mode change this method does not return (exit() is called).
Name | Type | Description |
---|---|---|
$inSSL |


viewIsInArray(
$module, $view, $moduleViews
)
:
void
\static Checks if a given module/view pair is in the given list of views.
Wildcard matching on view name is done.
\return 2 if wildcard match occurs on the given view 1 if exact match occurs on the given view 0 if the view is not found in the list
Name | Type | Description |
---|---|---|
$module | ||
$view | ||
$moduleViews |