diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-01-07 16:19:39 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-01-07 16:19:39 +0100 |
commit | 93a00c8312e220559d70147e11aa0b1e64bc127a (patch) | |
tree | 1086bb6703c970d0075ff24652017f252f55b986 /app/class/model.php | |
parent | afeeafc2a691b661ba2c92250f883fda6bd33392 (diff) | |
download | wcms-93a00c8312e220559d70147e11aa0b1e64bc127a.tar.gz wcms-93a00c8312e220559d70147e11aa0b1e64bc127a.zip |
render alement options
Diffstat (limited to 'app/class/model.php')
-rw-r--r-- | app/class/model.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 = ''; |