[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/classes/ -> ezsslzone.php (sommaire)

(pas de description)

Poids: 477 lignes (17 kb)
Inclus ou requis: 5 fois
Référencé: 0 fois
Nécessite: 4 fichiers
 lib/ezfile/classes/ezdir.php
 lib/ezutils/classes/ezsys.php
 lib/ezutils/classes/ezini.php
 kernel/classes/ezcontentobjecttreenode.php

Définit 1 class

eZSSLZone:: (13 méthodes):
  enabled()
  cacheFileName()
  clearCacheIfNeeded()
  clearCache()
  getSSLZones()
  viewIsInArray()
  isKeepModeView()
  switchIfNeeded()
  checkNodeID()
  checkNode()
  checkNodePath()
  checkObject()
  checkModuleView()


Classe: eZSSLZone  - X-Ref

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


cacheFileName()   X-Ref
\static


clearCacheIfNeeded()   X-Ref
\static


clearCache()   X-Ref
\static


getSSLZones()   X-Ref
\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.


viewIsInArray( $module, $view, $moduleViews )   X-Ref
\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

isKeepModeView( $module, $view )   X-Ref
\static
\return true if the view is defined as 'keep'


switchIfNeeded( $inSSL )   X-Ref
\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).

checkNodeID( $module, $view, $nodeID )   X-Ref
\static
Check whether the given node should cause access mode change.
It it should, this method does not return.

\see checkNode()

checkNode( $module, $view, &$node, $redirect = true )   X-Ref
\static
Check whether the given node should cause access mode change.
It it should, this method does not return.


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


checkObject( $module, $view, $object )   X-Ref
\static
Check whether the given object should cause access mode change.
It it should, this method does not return.


checkModuleView( $module, $view )   X-Ref
\static
Decide whether we should change access mode for this module view or not.
Called from index.php.




Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7