kernel/classes/ezclusterfilehandler.php

Show: inherited
Table of Contents

File containing the eZClusterFileHandler 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  

\eZClusterFileHandler

Package: kernel

File containing the eZClusterFileHandler 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  

Properties

Propertyprivate\array(filename  $generatingFiles= 'array()'
static

Global list of currently generating files. Used by handlers that support stalecache.

=> eZClusterFileHandlerInterface)
Default valuearray()Details
Type
\array(filename
Propertypublic\eZClusterFileHandlerInterface  $globalHandler= ''
static

Global, generic (e.g. not linked to a file) cluster handler, used for caching

Propertyprivatebool  $isShutdownFunctionRegistered= 'false'
static

Shutdown registration check variable

Default valuefalseDetails
Type
bool

Methods

methodpublicaddGeneratingFile( \eZDFSFileHandler | \eZDFSFileHandler $file ) : void
static

Adds a file to the generating list

Parameters
Name Type Description
$file \eZDFSFileHandler | \eZDFSFileHandler

Cluster file handler instance Note that this method expect a version of the handler where the filePath is the REAL one, not the .generating

methodpubliccleanupEmptyDirectories( string $path ) : void
static

Goes trough the directory path and removes empty directories, starting at the leaf and deleting down until a non empty directory is reached.

If the path is not a directory, nothing will happen.

Parameters
Name Type Description
$path string
methodpubliccleanupGeneratingFiles( ) : void
static

Cluster shutdown handler. Terminates generation for unterminated files.

This situation doesn't happen by default, but may with custom code that doesn't follow recommendations.

methodpublicinstance( string | bool $filename = false ) : \eZClusterFileHandlerInterface
static

Returns the configured instance of an eZClusterFileHandlerInterface See ClusteringSettings.FileHandler in file.ini

Parameters
Name Type Description
$filename string | bool

Optional filename the handler should be initialized with

Returns
Type Description
\eZClusterFileHandlerInterface
methodpublicpreFork( ) : void
static

Performs required operations before forking a process

  • disconnects DB based cluster handlers from the database
methodpublicremoveGeneratingFile( \eZDBFileHandler | \eZDFSFileHandler $file ) : void
static

Removes a file from the generating list

Parameters
Name Type Description
$file \eZDBFileHandler | \eZDFSFileHandler

Cluster file handler instance Note that this method expect a version of the handler where the filePath is the REAL one, not the .generating

Details
Todo
Clustering: apply the eZClusterFileHandlerInterface to all cluster handlers  
methodpublicsearchPathArray( ) : array
static

Returns
Type Description
array list of directories used to search cluster file handlers for
Details
Deprecated
4.3 No longer used as we rely on ezpExtension & autoloads  
Documentation was generated by DocBlox 0.18.1.