1 | <?php |
||
22 | class PHPUtil { |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | * @var IL10N |
||
27 | */ |
||
28 | private $l10n; |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | * @param IL10N $l10n |
||
33 | */ |
||
34 | 5 | public function __construct(IL10N $l10n) { |
|
37 | |||
38 | /** |
||
39 | * Wraps the php native function tempnam() |
||
40 | * @codeCoverageIgnore |
||
41 | * |
||
42 | * @param string $dir |
||
43 | * @param string $prefix |
||
44 | * @throws NotFoundException |
||
45 | * @return string |
||
46 | */ |
||
47 | public function tempnamWrapper($dir, $prefix) { |
||
55 | |||
56 | /** |
||
57 | * Wraps the php native function unlink() |
||
58 | * @codeCoverageIgnore |
||
59 | * |
||
60 | * @param string $fileName |
||
61 | * @throws NotFoundException |
||
62 | * @return boolean |
||
63 | */ |
||
64 | public function unlinkWrapper($fileName) { |
||
72 | |||
73 | /** |
||
74 | * Wraps the php native function touch() |
||
75 | * @codeCoverageIgnore |
||
76 | * |
||
77 | * @param string $fileName |
||
78 | * @throws NotFoundException |
||
79 | * @return boolean |
||
80 | */ |
||
81 | public function touchWrapper($fileName) { |
||
88 | |||
89 | /** |
||
90 | * Wraps the php native function chmod() |
||
91 | * @codeCoverageIgnore |
||
92 | * |
||
93 | * @param string $fileName |
||
94 | * @param integer $mode |
||
95 | * @throws NotFoundException |
||
96 | * @return boolean |
||
97 | */ |
||
98 | public function chmodWrapper($fileName, $mode) { |
||
105 | } |
||
106 |