ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
NullTemplate Class Reference
+ Inheritance diagram for NullTemplate:
+ Collaboration diagram for NullTemplate:

Public Member Functions

 setCurrentBlock (string $name)
 Set the block to work on. More...
 
 parseCurrentBlock ()
 Parse the block that is currently worked on. More...
 
 touchBlock (string $name)
 Touch a block without working further on it. More...
 
 setVariable (string $name, $value)
 Set a variable in the current block. More...
 
 get (string $block=null)
 Get the rendered template or a specific block. More...
 
 addOnLoadCode (string $code)
 Add some javascript to be executed on_load of the rendered page. More...
 

Detailed Description

Definition at line 115 of file AbstractRendererTest.php.

Member Function Documentation

◆ addOnLoadCode()

NullTemplate::addOnLoadCode ( string  $code)

Add some javascript to be executed on_load of the rendered page.

TODO: This seems to be no rendering, but a javascript concern. We should revise this when introducing patterns for javascript.

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 141 of file AbstractRendererTest.php.

141  : void
142  {
143  }

◆ get()

NullTemplate::get ( string  $block = null)

Get the rendered template or a specific block.

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 136 of file AbstractRendererTest.php.

136  : string
137  {
138  return "";
139  }

◆ parseCurrentBlock()

NullTemplate::parseCurrentBlock ( )

Parse the block that is currently worked on.

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 122 of file AbstractRendererTest.php.

122  : bool
123  {
124  return true;
125  }

◆ setCurrentBlock()

NullTemplate::setCurrentBlock ( string  $name)

Set the block to work on.

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 117 of file AbstractRendererTest.php.

117  : bool
118  {
119  return true;
120  }

◆ setVariable()

NullTemplate::setVariable ( string  $name,
  $value 
)

Set a variable in the current block.

Parameters
mixed$valueshould be possible to be cast to string.

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 132 of file AbstractRendererTest.php.

132  : void
133  {
134  }

◆ touchBlock()

NullTemplate::touchBlock ( string  $name)

Touch a block without working further on it.

Implements ILIAS\UI\Implementation\Render\Template.

Definition at line 127 of file AbstractRendererTest.php.

127  : bool
128  {
129  return true;
130  }

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