ILIAS  release_8 Revision v8.24
class.ilTestProcessLockFileStorage.php
Go to the documentation of this file.
1<?php
25{
26 public function __construct(int $contextId)
27 {
29 }
30
39 protected function getPathPrefix(): string
40 {
41 return 'ilTestProcessLocks';
42 }
43
53 protected function getPathPostfix(): string
54 {
55 return 'context';
56 }
57
58 public function create(): void
59 {
60 set_error_handler(function ($severity, $message, $file, $line): void {
61 throw new ErrorException($message, $severity, 0, $file, $line);
62 });
63
64 try {
65 parent::create();
66 restore_error_handler();
67 } catch (Exception $e) {
68 restore_error_handler();
69 }
70
71 if (!$this->getFileSystemService()->has($this->path)) {
72 throw new ErrorException(sprintf('Could not find directory: %s', $this->getPath()));
73 }
74 }
75}
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
has(string $class_name)
$message
Definition: xapiexit.php:32