Example #1
0
 public function testCleanExitInitialized()
 {
     ezcExecution::reset();
     ezcExecution::init('ExecutionTest2');
     ezcExecution::cleanExit();
 }
Example #2
0
<?php

require 'ezc-setup.php';
class myExecutionHandler extends ezcExecutionBasicErrorHandler
{
    public static function onError(Exception $exception = NULL)
    {
        echo '<div class="shadow" style="margin: 1em 4em 0.8em 3em;"><div  class="output" style="font-size: 1.8em; margin: -0.55555555555556em 0 0 -0.55555555555556em; background: #eeee33;">';
        parent::onError($exception);
    }
}
ezcExecution::init('myExecutionHandler');
//ezcExecution::cleanExit();
Example #3
0
<?php

require_once 'tutorial_autoload.php';
ezcExecution::init('ezcExecutionBasicErrorHandler');
ezcExecution::cleanExit();
Example #4
0
 /**
  * Notifies ezcExecution that there was a graceful exit
  */
 public function postDispatch()
 {
     ezcExecution::cleanExit();
 }
Example #5
0
 /**
  * Shutdown handler
  *
  * The ezcExecution environment installs this method as general shutdown handler.
  * This method's only function is to call the ::onError() static method of
  * the error handler set with the init() method.
  *
  * @return void
  */
 public static function shutdownCallbackHandler()
 {
     if (!self::$cleanExit) {
         self::$cleanExit = true;
         call_user_func(array(self::$callbackClassName, 'onError'));
     }
 }