From 5019671cf2bba2202c0024f3bd309fe674251226 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 26 Mar 2020 18:07:28 +0100 Subject: sort media by date and ext fix #67 --- app/class/Model.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/class/Model.php') 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', -- cgit v1.2.3