本文整理汇总了PHP中eZClusterFileHandler::globalHandler方法的典型用法代码示例。如果您正苦于以下问题:PHP eZClusterFileHandler::globalHandler方法的具体用法?PHP eZClusterFileHandler::globalHandler怎么用?PHP eZClusterFileHandler::globalHandler使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZClusterFileHandler
的用法示例。
在下文中一共展示了eZClusterFileHandler::globalHandler方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
// restore the previous file handler
if ( $this->previousFileHandler !== null )
{
$fileINI = eZINI::instance( 'file.ini' );
$fileINI->setVariable( 'ClusteringSettings', 'FileHandler', $this->previousFileHandler );
$this->previousFileHandler = null;
eZClusterFileHandler::$globalHandler = null;
}
parent::tearDown();
}
示例2: preFork
/**
* Performs required operations before forking a process
*
* - disconnects DB based cluster handlers from the database
*/
public static function preFork()
{
$clusterHandler = self::instance();
// disconnect DB based cluster handlers from the database
if ($clusterHandler instanceof ezpDatabaseBasedClusterFileHandler) {
$clusterHandler->disconnect();
// destroy the current handler so that it reconnects when instanciated again
self::$globalHandler = null;
}
}
示例3: tearDown
public function tearDown()
{
// restore the previous file handler
if ( $this->previousFileHandler !== null )
{
$fileINI = eZINI::instance( 'file.ini' );
$fileINI->setVariable( 'ClusteringSettings', 'FileHandler', $this->previousFileHandler );
$this->previousFileHandler = null;
eZClusterFileHandler::$globalHandler = null;
}
if ( $this->haveToRemoveDFSPath )
{
eZDir::recursiveDelete( $this->DFSPath );
}
parent::tearDown();
}
示例4: tearDown
public function tearDown()
{
ezpINIHelper::restoreINISettings();
eZClusterFileHandler::$globalHandler = null;
parent::tearDown();
}