Files
2026-07-01 16:44:17 +03:00

81 lines
2.2 KiB
PHP

<?php namespace ZN\Inclusion;
/**
* ZN PHP Web Framework
*
* "Simplicity is the ultimate sophistication." ~ Da Vinci
*
* @package ZN
* @license MIT [http://opensource.org/licenses/MIT]
* @author Ozan UYKUN [ozan@znframework.com]
*/
class Properties
{
/**
* Defined Doctypes
*
* @var array
*/
public static $doctype =
[
'xhtml1Strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//TR" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
'xhtml1Transitional' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//TR" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
'xhtml1Frameset' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//TR" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//TR" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
'html4Strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//TR" "http://www.w3.org/TR/html4/strict.dtd">',
'html4Transitional' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//TR" "http://www.w3.org/TR/html4/loose.dtd">',
'html4Frameset' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//TR" "http://www.w3.org/TR/html4/frameset.dtd">',
'html5' => '<!DOCTYPE html>'
];
/**
* Is Import
*
* @var array
*/
public static $isImport = [];
/**
* Keeps parameters
*
* @var array
*/
public static $parameters =
[
'data' => [],
'usable' => false
];
/**
* Usable
*
* @param bool $usable = true
*/
public static function usable(bool $usable = true)
{
self::$parameters['usable'] = $usable;
}
/**
* Recursive
*
* @param bool $recursive = true
*
* @codeCoverageIgnore
*/
public static function recursive(bool $recursive = true)
{
self::$parameters['recursive'] = $recursive;
}
/**
* Data
*
* @param array $data
*/
public static function data(array $data)
{
self::$parameters['data'] = $data;
}
}