ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
LoggingJavaScriptBinding Class Reference
+ Inheritance diagram for LoggingJavaScriptBinding:
+ Collaboration diagram for LoggingJavaScriptBinding:

Public Member Functions

 createId ()
 Create a fresh unique id. More...
 
 addOnLoadCode ($code)
 Add some JavaScript-statements to the on-load handler of the page. More...
 

Data Fields

 $ids = array()
 
 $on_load_code = array()
 

Private Attributes

 $count = 0
 

Detailed Description

Definition at line 51 of file Base.php.

Member Function Documentation

◆ addOnLoadCode()

LoggingJavaScriptBinding::addOnLoadCode (   $code)

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

Parameters
string$code
Returns
null

Implements ILIAS\UI\Implementation\Render\JavaScriptBinding.

Definition at line 61 of file Base.php.

References $code.

61  {
62  $this->on_load_code[] = $code;
63  }
$code
Definition: example_050.php:99

◆ createId()

LoggingJavaScriptBinding::createId ( )

Create a fresh unique id.

This MUST return a new id on every call.

Returns
string

Implements ILIAS\UI\Implementation\Render\JavaScriptBinding.

Definition at line 54 of file Base.php.

54  {
55  $this->count++;
56  $id = "id_".$this->count;
57  $this->ids[] = $id;
58  return $id;
59  }

Field Documentation

◆ $count

LoggingJavaScriptBinding::$count = 0
private

Definition at line 52 of file Base.php.

◆ $ids

LoggingJavaScriptBinding::$ids = array()

Definition at line 53 of file Base.php.

◆ $on_load_code

LoggingJavaScriptBinding::$on_load_code = array()

Definition at line 60 of file Base.php.


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