aboutsummaryrefslogtreecommitdiff
path: root/app/class/modelfont.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-12 11:11:58 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-12 11:11:58 +0100
commit89b05effb2eb45382762fcfcfae2373b7754caa7 (patch)
treede7a5298f1ef7a095c4b99e684c80b9152c686b1 /app/class/modelfont.php
parenta64af357ff41a61f5248e2052274315b390e979c (diff)
downloadwcms-89b05effb2eb45382762fcfcfae2373b7754caa7.tar.gz
wcms-89b05effb2eb45382762fcfcfae2373b7754caa7.zip
url-cleaning-redirect-correct-id
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