[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/lib/ajax/ -> ajaxlib.php (summary)

Library functions for using AJAX with Moodle.

File Size: 196 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

jsportal:: (2 methods):
  block_add()
  print_javascript()

Defines 2 functions

  ajax_get_lib()
  ajaxenabled()

Class: jsportal  - X-Ref

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

block_add($id, $hidden=false)   X-Ref
Takes id of block and adds it


print_javascript($courseid, $return=false)   X-Ref
Prints the JavaScript code needed to set up AJAX for the course.


Functions
Functions that are not part of a class:

ajax_get_lib($libname)   X-Ref
Get the path to a JavaScript library.

param: $libname - the name of the library whose path we need.
return: string

ajaxenabled($browsers = array()   X-Ref
Returns whether ajax is enabled/allowed or not.




Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7