5 require_once(
"libs/composer/vendor/autoload.php");
8 require_once(
"./Services/UICore/lib/html-it/IT.php");
9 require_once(
"./Services/UICore/lib/html-it/ITX.php");
10 require_once(
"./Services/UICore/classes/class.ilTemplate.php");
23 parent::__construct(
$file, $flag1, $flag2, $in_module,
$vars, $plugin,
false);
37 if (
$filename{0} ==
'/' && substr($this->fileRoot, -1) ==
'/') {
43 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCache.php');
61 $content = fread(
$fh, $fsize);
64 return preg_replace_callback(
65 "#<!-- INCLUDE (.*) -->#im",
95 public function get($block = null)
97 if ($block === null) {
98 $block =
"__global__";
100 if ($block ==
'__global__' && !$this->flagGlobalParsed) {
101 $this->
parse(
'__global__');
104 if (!isset($this->blocklist[$block])) {
106 '"' . $block .
"'"));
109 if (isset($this->blockdata[$block])) {
110 $ret = $this->blockdata[$block];
111 if ($this->clearCache) {
112 unset($this->blockdata[$block]);
114 if ($this->_options[
'preserve_data']) {
116 $this->openingDelimiter .
117 '%preserved%' . $this->closingDelimiter,
118 $this->openingDelimiter,
loadTemplatefile( $filename, $removeUnknownVariables=true, $removeEmptyBlocks=true)
Reads a template file from the disk.
loadTemplatefile( $filename, $removeUnknownVariables=true, $removeEmptyBlocks=true)
Reads a template file from the disk.
errorMessage($value, $blockname='')
Return a textual error message for a IT error code.
Interface to templating as it is used in the UI framework.
special template class to simplify handling of ITX/PEAR
getFile($filename)
Reads a file from disk and returns its content.
parse($block='__global__', $flag_recursion=false)
Parses the given block.
& raiseError($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false)
This method is a wrapper that returns an instance of the configured error class with this object's de...
__construct( $file, $flag1, $flag2, $in_module=false, $vars="DEFAULT", $plugin=false, $a_use_cache=true)
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file