kernel/classes/ezsslzone.php

Show: inherited
Table of Contents

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

Package: kernel

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

Constant  DEFAULT_SSL_PORT = 443

Methods

methodpubliccacheFileName( ) : void
static

\static

methodpubliccheckModuleView(  $module,  $view ) : void
static

\static Decide whether we should change access mode for this module view or not.

Called from index.php.

Parameters
Name Type Description
$module
$view
methodpubliccheckNode(  $module,  $view,  $node,  $redirect = true ) : void
static

\static Check whether the given node should cause access mode change.

It it should, this method does not return.

Parameters
Name Type Description
$module
$view
$node
$redirect
methodpubliccheckNodeID(  $module,  $view,  $nodeID ) : void
static

\static Check whether the given node should cause access mode change.

It it should, this method does not return.

\see checkNode()

Parameters
Name Type Description
$module
$view
$nodeID
methodpubliccheckNodePath(  $module,  $view,  $pathString,  $redirect = true ) : void
static

\static Check whether the given node should cause access mode change.

It it should, this method does not return.

Parameters
Name Type Description
$module
$view
$pathString
$redirect
methodpubliccheckObject(  $module,  $view,  $object ) : void
static

\static Check whether the given object should cause access mode change.

It it should, this method does not return.

Parameters
Name Type Description
$module
$view
$object
methodpublicclearCache( ) : void
static

\static

methodpublicclearCacheIfNeeded( ) : void
static

\static

methodpublicenabled( ) : void
static

\static Returns true if the SSL zones functionality is enabled, false otherwise.

The result is cached in memory to save time on multiple invocations.

methodpublicgetSSLZones( ) : void
static

\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.

methodpublicisKeepModeView(  $module,  $view ) : void
static

\static \return true if the view is defined as 'keep'

Parameters
Name Type Description
$module
$view
methodpublicswitchIfNeeded(  $inSSL ) : void
static

\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).

Parameters
Name Type Description
$inSSL
methodpublicviewIsInArray(  $module,  $view,  $moduleViews ) : void
static

\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

Parameters
Name Type Description
$module
$view
$moduleViews
Documentation was generated by DocBlox 0.18.1.