eZPublishCommunityProject(LegacyStack)  2013.6
ezasynchronouspublisher.php File Reference

Functions

 childHandler ($signo)
 Signal handler. More...
 
 daemonSignalHandler ($signo)
 Signal handler for the daemon process. More...
 

Variables

 $cli = eZCLI::instance()
 
foreach($pcntlFunctions as
$pcntlFunction) 
$options
 
 $pcntlFunctions = array( 'pcntl_fork', 'pcntl_signal', 'pcntl_waitpid', 'pcntl_wexitstatus' )
 
 $pidFile = "$varDir/run/ezasynchronouspublisher.pid"
 
 $pidFileDirectory = dirname( $pidFile )
 
if(!file_exists($pidFileDirectory)) $pidFp = @fopen( $pidFile, 'x' )
 
 $processor = ezpContentPublishingQueueProcessor::instance()
 
 $script
 
 $sys = eZSys::instance()
 
 $varDir = $siteINI->variable( 'FileSettings', 'VarDir' )
 
if(isset($options['pid-file'])) else
 

Function Documentation

childHandler (   $signo) -> shutdown( 0 )

Signal handler.

Parameters
int$signoSignal number
daemonSignalHandler (   $signo)

Signal handler for the daemon process.

Parameters
int$signoSignal number

Variable Documentation

$cli = eZCLI::instance()
foreach ($pcntlFunctions as $pcntlFunction) $options
Initial value:
= $script->getOptions(
"[n|daemon][p:|pid-file:]",
"",
array( 'daemon' => 'Run in the background',
'pid-file' => 'PID file' ) )
$script
Definition: adddefaultstates.php:22
$pcntlFunctions = array( 'pcntl_fork', 'pcntl_signal', 'pcntl_waitpid', 'pcntl_wexitstatus' )
$pidFile = "$varDir/run/ezasynchronouspublisher.pid"
$pidFileDirectory = dirname( $pidFile )
if (!file_exists($pidFileDirectory)) $pidFp = @fopen( $pidFile, 'x' )
$script
Initial value:
= eZScript::instance( array( 'description' => "Processes the eZ Publish publishing queue",
'use-session' => false,
'use-modules' => true,
'use-extensions' => true ) )
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1084
$sys = eZSys::instance()
if ($options['daemon']) else
Initial value:
{
$siteINI = eZINI::instance( 'site.ini' )
static instance($fileName= 'site.ini', $rootDir= 'settings', $useTextCodec=null, $useCache=null, $useLocalOverrides=null, $directAccess=false, $addArrayDefinition=false)
Returns a shared instance of the eZINI class pr $fileName, $rootDir and $useLocalOverrides param comb...
Definition: ezini.php:1826
$siteINI
Definition: treemenu.php:41