aboutsummaryrefslogtreecommitdiff
path: root/app/class/model.php
blob: d7f34dab14185cff769b1c4ff2427488b5b8bb95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
class Model
{

    const CONFIG_FILE = 'config.json';
	const CSS_DIR = 'assets' . DIRECTORY_SEPARATOR .'css' . DIRECTORY_SEPARATOR;
	const MEDIA_DIR = '.' . DIRECTORY_SEPARATOR . 'media' . DIRECTORY_SEPARATOR;
	const TEMPLATES_DIR = '.'. DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR;
	const RENDER_DIR = 'assets'. DIRECTORY_SEPARATOR . 'render' . 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'];

	const TEXT_ELEMENTS = ['header', 'nav', 'section', 'aside', 'footer'];

	public static function renderpath()
	{
		$basepath = '';
		if(!empty(Config::basepath())) {
			$basepath = Config::basepath() . DIRECTORY_SEPARATOR ;
		}
		return DIRECTORY_SEPARATOR . $basepath . Model::RENDER_DIR;
	}

	public static function csspath() 
	{
		$basepath = '';
		if(!empty(Config::basepath())) {
			$basepath = Config::basepath() . DIRECTORY_SEPARATOR ;
		}
		return DIRECTORY_SEPARATOR . $basepath . Model::CSS_DIR;
	}



}