1 | <?php |
||
5 | class File |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @param string $filename |
||
10 | * @param mixed $contents |
||
11 | * |
||
12 | * @return bool|int |
||
13 | */ |
||
14 | 2 | public static function put($filename, $contents) |
|
18 | |||
19 | /** |
||
20 | * @param string $source |
||
21 | * @param string $mode |
||
22 | * |
||
23 | * @return bool|resource |
||
24 | */ |
||
25 | 5 | public static function open($source, $mode = 'r') |
|
29 | |||
30 | /** |
||
31 | * @param resource $handle |
||
32 | * |
||
33 | * @return bool |
||
34 | */ |
||
35 | 2 | public static function close($handle) |
|
39 | |||
40 | /** |
||
41 | * @param string $path |
||
42 | * @param int $time |
||
43 | * @param int $accessTime |
||
44 | * |
||
45 | * @return bool |
||
46 | */ |
||
47 | 2 | public static function touch($path, $time = null, $accessTime = null) |
|
51 | |||
52 | /** |
||
53 | * @param string $path |
||
54 | * |
||
55 | * @return bool|string |
||
56 | */ |
||
57 | 3 | public static function real($path) |
|
61 | |||
62 | /** |
||
63 | * @param string $path |
||
64 | * |
||
65 | * @return bool |
||
66 | */ |
||
67 | 2 | public static function remove($path) |
|
71 | |||
72 | /** |
||
73 | * @param string $path |
||
74 | * |
||
75 | * @return int |
||
76 | */ |
||
77 | 1 | public static function size($path) |
|
81 | |||
82 | /** |
||
83 | * @param string $path |
||
84 | * |
||
85 | * @return bool |
||
86 | */ |
||
87 | 1 | public static function exists($path) |
|
91 | |||
92 | /** |
||
93 | * @param string $path |
||
94 | * |
||
95 | * @return bool |
||
96 | */ |
||
97 | 1 | public static function isWritable($path) |
|
101 | |||
102 | /** |
||
103 | * @param string $path |
||
104 | * |
||
105 | * @return bool |
||
106 | */ |
||
107 | 1 | public static function isReadable($path) |
|
111 | |||
112 | /** |
||
113 | * @param string $path |
||
114 | * |
||
115 | * @return bool |
||
116 | */ |
||
117 | 1 | public static function isFile($path) |
|
121 | |||
122 | /** |
||
123 | * @param string $path |
||
124 | * |
||
125 | * @return bool |
||
126 | */ |
||
127 | 1 | public static function isLink($path) |
|
131 | |||
132 | /** |
||
133 | * @param string $path |
||
134 | * @param string $link |
||
135 | * |
||
136 | * @return bool |
||
137 | */ |
||
138 | 1 | public static function symlink($path, $link) |
|
142 | |||
143 | } |
||
144 |