|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| block_add ($id, $hidden=false) | |
| print_javascript ($courseid, $return=false) | |
Data Fields | |
| $currentblocksection = null | |
| $blocks = array() | |
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.
| 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.

| $blocks = array() |
Definition at line 102 of file ajaxlib.php.
| $currentblocksection = null |
Definition at line 101 of file ajaxlib.php.