eZ Publish  [trunk]
ezasynchronouspublisher.php File Reference

Go to the source code of this file.

Functions

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

Variables

 $cli = eZCLI::instance()
foreach($pcntlFunctions as
$pcntlFunction) 
$options
 $pcntlFunctions = array( 'pcntl_fork', 'pcntl_signal', 'pcntl_waitpid', 'pcntl_wexitstatus' )
if(!file_exists($pidFileDirectory)) $pidFp = @fopen( $pidFile, 'x' )
 $script
 $sys = eZSys::instance()

Function Documentation

childHandler ( signo)

Signal handler.

Parameters:
int$signoSignal number

Definition at line 184 of file ezasynchronouspublisher.php.

daemonSignalHandler ( signo)

Signal handler for the daemon process.

Parameters:
int$signoSignal number

Definition at line 198 of file ezasynchronouspublisher.php.


Variable Documentation

$cli = eZCLI::instance()

Definition at line 16 of file ezasynchronouspublisher.php.

foreach ($pcntlFunctions as $pcntlFunction) $options
Initial value:
 $script->getOptions(
    
    "[n|daemon][p:|pid-file:]",
    
    "",
    
    array( 'daemon' => 'Run in the background',
           'pid-file' => 'PID file' ) )

Definition at line 36 of file ezasynchronouspublisher.php.

$pcntlFunctions = array( 'pcntl_fork', 'pcntl_signal', 'pcntl_waitpid', 'pcntl_wexitstatus' )

Definition at line 25 of file ezasynchronouspublisher.php.

if (!file_exists($pidFileDirectory)) $pidFp = @fopen( $pidFile, 'x' )

Definition at line 70 of file ezasynchronouspublisher.php.

Initial value:
 eZScript::instance( array( 'description' => "Processes the eZ Publish publishing queue",
                                     'use-session' => false,
                                     'use-modules' => true,
                                     'use-extensions' => true ) )

Definition at line 18 of file ezasynchronouspublisher.php.

$sys = eZSys::instance()

Definition at line 44 of file ezasynchronouspublisher.php.