Example #1
0
 static function beginNamedRun($name)
 {
     if (!self::$useNamedRuns || !isset($_ENV['dir.temp'])) {
         return;
     }
     self::$namedRun = $name;
     if (!isset(self::$namedRuns[$name])) {
         self::$namedRuns[$name] = array();
     } else {
         if (!is_array(self::$namedRuns[$name])) {
             self::$namedRuns[$name] = array();
         }
     }
     $namedRunFile = $_ENV['dir.temp'] . self::NAMED_RUNS_PATH . $name . self::PHP_EXTENSION;
     if (file_exists($namedRunFile)) {
         self::$inNamedRunImport = true;
         include $namedRunFile;
         self::$namedRunFileSize = filesize($namedRunFile);
         self::$inNamedRunImport = false;
     }
 }