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");
24 if (
$filename{0} ==
'/' && substr($this->fileRoot, -1) ==
'/') {
30 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCache.php');
48 $content = fread(
$fh, $fsize);
51 return preg_replace_callback(
52 "#<!-- INCLUDE (.*) -->#im",
81 public function get($block = null) {
82 if ($block === null) {
83 $block =
"__global__";
85 if ($block ==
'__global__' && !$this->flagGlobalParsed) {
86 $this->
parse(
'__global__');
89 if (!isset($this->blocklist[$block])) {
94 if (isset($this->blockdata[$block])) {
95 $ret = $this->blockdata[$block];
96 if ($this->clearCache) {
97 unset($this->blockdata[$block]);
99 if ($this->_options[
'preserve_data']) {
101 $this->openingDelimiter .
102 '%preserved%' . $this->closingDelimiter,
103 $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...