From 93a00c8312e220559d70147e11aa0b1e64bc127a Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Mon, 7 Jan 2019 16:19:39 +0100 Subject: render alement options --- app/class/model.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/class/model.php') diff --git a/app/class/model.php b/app/class/model.php index 770a8f5..da5e8bc 100644 --- a/app/class/model.php +++ b/app/class/model.php @@ -11,6 +11,7 @@ abstract class Model const RENDER_DIR = 'assets'. DIRECTORY_SEPARATOR . 'render' . DIRECTORY_SEPARATOR; const GLOBAL_DIR = 'assets'. DIRECTORY_SEPARATOR . 'global' . DIRECTORY_SEPARATOR; const DATABASE_DIR = '.' . DIRECTORY_SEPARATOR . 'database' . DIRECTORY_SEPARATOR; + const MEDIA_EXTENSIONS = array('jpeg', 'jpg', 'JPG', 'png', 'gif', 'mp3', 'mp4', 'mov', 'wav', 'flac', 'pdf'); const MEDIA_TYPES = ['image', 'video', 'sound', 'other']; @@ -19,6 +20,10 @@ abstract class Model const MAX_ID_LENGTH = 64; + /** RENDER OPTIONS */ + const RENDER_CLASS_ORIGIN = false; + const RENDER_EMPTY_ELEMENT = false; + public static function dirtopath($dir) { $basepath = ''; -- cgit v1.2.3