ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\UI\Implementation\Render\ilTemplateWrapper Class Reference

Wraps an ilTemplate to only provide smaller interface. More...

+ Inheritance diagram for ILIAS\UI\Implementation\Render\ilTemplateWrapper:
+ Collaboration diagram for ILIAS\UI\Implementation\Render\ilTemplateWrapper:

Public Member Functions

 __construct (private ilTemplate $tpl,)
 
 setCurrentBlock (string $name)
 
 parseCurrentBlock ()
 
 touchBlock (string $name)
 
 setVariable (string $name, $value)
 
 get (?string $block=null)
 

Detailed Description

Wraps an ilTemplate to only provide smaller interface.

Definition at line 29 of file ilTemplateWrapper.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\UI\Implementation\Render\ilTemplateWrapper::__construct ( private ilTemplate  $tpl)
final

Definition at line 31 of file ilTemplateWrapper.php.

33  {
34  }

Member Function Documentation

◆ get()

ILIAS\UI\Implementation\Render\ilTemplateWrapper::get ( ?string  $block = null)

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 71 of file ilTemplateWrapper.php.

References null.

71  : string
72  {
73  if ($block === null) {
74  $block = "__global__";
75  }
76  return $this->tpl->get($block);
77  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ parseCurrentBlock()

ILIAS\UI\Implementation\Render\ilTemplateWrapper::parseCurrentBlock ( )

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 47 of file ilTemplateWrapper.php.

47  : bool
48  {
49  return $this->tpl->parseCurrentBlock();
50  }

◆ setCurrentBlock()

ILIAS\UI\Implementation\Render\ilTemplateWrapper::setCurrentBlock ( string  $name)

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 39 of file ilTemplateWrapper.php.

39  : bool
40  {
41  return $this->tpl->setCurrentBlock($name);
42  }

◆ setVariable()

ILIAS\UI\Implementation\Render\ilTemplateWrapper::setVariable ( string  $name,
  $value 
)

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 63 of file ilTemplateWrapper.php.

63  : void
64  {
65  $this->tpl->setVariable($name, $value);
66  }

◆ touchBlock()

ILIAS\UI\Implementation\Render\ilTemplateWrapper::touchBlock ( string  $name)

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 55 of file ilTemplateWrapper.php.

55  : bool
56  {
57  return $this->tpl->touchBlock($name);
58  }

The documentation for this class was generated from the following file: