We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f5125 commit c113b4bCopy full SHA for c113b4b
src/App.php
@@ -136,6 +136,12 @@ public function show(){
136
return false;
137
}
138
139
+ /**
140
+ * Show single record
141
+ *
142
+ * @param $id
143
+ * @return string
144
+ */
145
public function show_single($id){
146
147
$json_data = file_get_contents($this->data_location);
@@ -151,4 +157,13 @@ public function show_single($id){
151
157
152
158
return !empty($singleData) ? $single_data : false;
153
159
160
+
161
162
+ * Delete all records
163
164
165
166
+ public function delete_all(){
167
+ return unlink($this->data_location);
168
+ }
154
169
0 commit comments