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

require_once 'tutorial_autoload.php';
ezcExecution::init('ezcExecutionBasicErrorHandler');
ezcExecution::cleanExit();
예제 #3
0
 /**
  * Notifies ezcExecution that there was a graceful exit
  */
 public function postDispatch()
 {
     ezcExecution::cleanExit();
 }
예제 #4
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'));
     }
 }