aboutsummaryrefslogtreecommitdiff
path: root/app/class/model.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/model.php')
-rw-r--r--app/class/model.php5
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 = '';