diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-03-26 18:07:28 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-03-26 18:07:28 +0100 |
commit | 5019671cf2bba2202c0024f3bd309fe674251226 (patch) | |
tree | 720aa7ca861f9ccc3216a8fff9e730a26a8eab6c /app/class/Model.php | |
parent | 633076d7c9275b33b722d9a7989e63839f8c38d2 (diff) | |
download | wcms-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.php | 8 |
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', |