aboutsummaryrefslogtreecommitdiff
path: root/app/class/modelfont.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/modelfont.php')
-rw-r--r--app/class/modelfont.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/class/modelfont.php b/app/class/modelfont.php
new file mode 100644
index 0000000..135a3df
--- /dev/null
+++ b/app/class/modelfont.php
@@ -0,0 +1,31 @@
+<?php
+
+class Modelfont extends Model
+{
+ public function list()
+ {
+ if ($handle = opendir(Model::fontpath())) {
+ $list = [];
+ while (false !== ($entry = readdir($handle))) {
+ if ($entry != "." && $entry != "..") {
+
+ $list[] = $entry;
+
+ }
+ }
+ }
+
+ return $list;
+
+ }
+}
+
+
+
+
+
+
+
+
+
+?> \ No newline at end of file