File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
class Noop extends AbstractCache
6
6
{
7
+ /**
8
+ * {@inheritdoc}
9
+ */
7
10
protected $ autosave = false ;
8
11
12
+ /**
13
+ * {@inheritdoc}
14
+ */
9
15
public function updateObject ($ path , array $ object , $ autosave = false )
10
16
{
11
17
return $ object ;
12
18
}
13
19
20
+ /**
21
+ * {@inheritdoc}
22
+ */
14
23
public function isComplete ($ dirname , $ recursive )
15
24
{
16
25
return false ;
17
26
}
18
27
28
+ /**
29
+ * {@inheritdoc}
30
+ */
19
31
public function setComplete ($ dirname , $ recursive )
20
32
{
21
33
22
34
}
23
35
36
+ /**
37
+ * {@inheritdoc}
38
+ */
24
39
public function storeContents ($ directory , array $ contents , $ recursive )
25
40
{
26
41
return $ contents ;
27
42
}
28
43
44
+ /**
45
+ * {@inheritdoc}
46
+ */
29
47
public function flush ()
30
48
{
31
49
32
50
}
33
51
52
+ /**
53
+ * {@inheritdoc}
54
+ */
34
55
public function autosave ()
35
56
{
36
57
37
58
}
38
59
60
+ /**
61
+ * {@inheritdoc}
62
+ */
39
63
public function save ()
40
64
{
41
65
42
66
}
43
67
68
+ /**
69
+ * {@inheritdoc}
70
+ */
44
71
public function load ()
45
72
{
46
73
47
74
}
48
75
76
+ /**
77
+ * {@inheritdoc}
78
+ */
49
79
public function has ($ path )
50
80
{
51
81
return null ;
52
82
}
53
83
84
+ /**
85
+ * {@inheritdoc}
86
+ */
54
87
public function read ($ path )
55
88
{
56
89
return false ;
57
90
}
58
91
92
+ /**
93
+ * {@inheritdoc}
94
+ */
59
95
public function listContents ($ directory = '' , $ recursive = false )
60
96
{
61
97
return false ;
62
98
}
63
99
100
+ /**
101
+ * {@inheritdoc}
102
+ */
64
103
public function getMetadata ($ path )
65
104
{
66
105
return false ;
67
106
}
68
107
108
+ /**
109
+ * {@inheritdoc}
110
+ */
69
111
public function getSize ($ path )
70
112
{
71
113
return false ;
72
114
}
73
115
116
+ /**
117
+ * {@inheritdoc}
118
+ */
74
119
public function getMimetype ($ path )
75
120
{
76
121
return false ;
77
122
}
78
123
124
+ /**
125
+ * {@inheritdoc}
126
+ */
79
127
public function getTimestamp ($ path )
80
128
{
81
129
return false ;
82
130
}
83
131
132
+ /**
133
+ * {@inheritdoc}
134
+ */
84
135
public function getVisibility ($ path )
85
136
{
86
137
return false ;
87
138
}
88
139
140
+ /**
141
+ * {@inheritdoc}
142
+ */
89
143
public function ensureParentDirectories ($ path )
90
144
{
91
145
return false ;
Original file line number Diff line number Diff line change 4
4
5
5
class Directory extends Handler
6
6
{
7
+ /**
8
+ * Delete the directory
9
+ *
10
+ * @return void
11
+ */
7
12
public function delete ()
8
13
{
9
14
$ this ->filesystem ->deleteDir ($ this ->path );
10
15
}
11
16
17
+ /**
18
+ * List the directory contents
19
+ *
20
+ * @param boolean $recursive
21
+ * @return array|boolean directort contents or false
22
+ */
12
23
public function getContents ($ recursive = false )
13
24
{
14
25
return $ this ->filesystem ->listContents ($ this ->path , $ recursive );
You can’t perform that action at this time.
0 commit comments