Moodle  2.2.1
http://www.collinsharper.com
jsportal Class Reference

Public Member Functions

 block_add ($id, $hidden=false)
 print_javascript ($courseid, $return=false)

Data Fields

 $currentblocksection = null
 $blocks = array()

Detailed Description

Used to create view of document to be passed to JavaScript on pageload. We use this class to pass data from PHP to JavaScript.

Definition at line 99 of file ajaxlib.php.


Member Function Documentation

block_add ( id,
hidden = false 
)

Takes id of block and adds it

Definition at line 108 of file ajaxlib.php.

print_javascript ( courseid,
return = false 
)

Prints the JavaScript code needed to set up AJAX for the course.

Definition at line 121 of file ajaxlib.php.

Here is the call graph for this function:


Field Documentation

$blocks = array()

Definition at line 102 of file ajaxlib.php.

$currentblocksection = null

Definition at line 101 of file ajaxlib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations