ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\UI\Implementation\Render\JavaScriptBinding Interface Reference

Provides methods to interface with javascript. More...

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

Public Member Functions

 createId ()
 Create a fresh unique id. More...
 
 addOnLoadCode (string $code)
 Add some JavaScript-statements to the on-load handler of the page. More...
 
 getOnLoadCodeAsync ()
 Get all the registered on-load javascript code for the async context, e.g. More...
 

Detailed Description

Provides methods to interface with javascript.

Definition at line 26 of file JavaScriptBinding.php.

Member Function Documentation

◆ addOnLoadCode()

ILIAS\UI\Implementation\Render\JavaScriptBinding::addOnLoadCode ( string  $code)

Add some JavaScript-statements to the on-load handler of the page.

Implemented in ILIAS\UI\Implementation\Render\ilJavaScriptBinding.

◆ createId()

ILIAS\UI\Implementation\Render\JavaScriptBinding::createId ( )

Create a fresh unique id.

This MUST return a new id on every call.

Implemented in LoggingJavaScriptBinding, and ILIAS\UI\Implementation\Render\ilJavaScriptBinding.

◆ getOnLoadCodeAsync()

ILIAS\UI\Implementation\Render\JavaScriptBinding::getOnLoadCodeAsync ( )

Get all the registered on-load javascript code for the async context, e.g.

return all code inside <script> tags

Implemented in LoggingJavaScriptBinding, and ILIAS\UI\Implementation\Render\ilJavaScriptBinding.


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