aboutsummaryrefslogtreecommitdiff
path: root/app/class/Model.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-03-26 18:07:28 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-03-26 18:07:28 +0100
commit5019671cf2bba2202c0024f3bd309fe674251226 (patch)
tree720aa7ca861f9ccc3216a8fff9e730a26a8eab6c /app/class/Model.php
parent633076d7c9275b33b722d9a7989e63839f8c38d2 (diff)
downloadwcms-5019671cf2bba2202c0024f3bd309fe674251226.tar.gz
wcms-5019671cf2bba2202c0024f3bd309fe674251226.zip
sort media by date and ext fix #67
Diffstat (limited to 'app/class/Model.php')
-rw-r--r--app/class/Model.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/Model.php b/app/class/Model.php
index 9e66af4..ea75da8 100644
--- a/app/class/Model.php
+++ b/app/class/Model.php
@@ -21,6 +21,14 @@ abstract class Model
const DATABASE_DIR = '.' . DIRECTORY_SEPARATOR . 'database' . DIRECTORY_SEPARATOR;
const PAGES_DIR = self::DATABASE_DIR . 'pages' . DIRECTORY_SEPARATOR;
+ const MEDIA_SORTBY = [
+ 'id' => 'id',
+ 'size' => 'size',
+ 'type' => 'type',
+ 'date' => 'date',
+ 'extension' => 'extension'
+ ];
+
const MAP_LAYOUTS = [
'cose' => 'cose',
'cose-bilkent' => 'cose-bilkent',