Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/comment/comment_ajax.php File Reference

Go to the source code of this file.

Enumerations

enum  AJAX_SCRIPT

Variables

 $contextid = optional_param('contextid', SYSCONTEXTID, PARAM_INT)
 $action = optional_param('action', '', PARAM_ALPHA)
if(!empty($cm)) else if(!empty($course))
if(!confirm_sesskey()) 
$client_id = required_param('client_id', PARAM_ALPHANUM)
 $area = optional_param('area', '', PARAM_AREA)
 $commentid = optional_param('commentid', -1, PARAM_INT)
 $content = optional_param('content', '', PARAM_RAW)
 $itemid = optional_param('itemid', '', PARAM_INT)
 $page = optional_param('page', 0, PARAM_INT)
 $component = optional_param('component', '', PARAM_COMPONENT)
 $args = new stdClass
$args course = $course
$args cm = $cm
$args area = $area
$args itemid = $itemid
$args client_id = $client_id
$args component = $component
 $manager = new comment($args)
switch($action) if(!isloggedin()) die
$ACCESSLIB_PRIVATE

maximum size of context cache - it is possible to tweak this config.php or in any script before inclusion of context.php Although this looks like a global variable, it isn't really.

It is just a private implementation detail to accesslib that MUST NOT be used elsewhere. It is used to cache various bits of data between function calls for performance reasons. Sadly, a PHP global variable is the only way to implement this, without rewriting everything as methods of a class, instead of functions.

stdClass $ACCESSLIB_PRIVATE

$args context = $context

Enumeration Type Documentation

Definition at line 20 of file comment_ajax.php.


Variable Documentation

Definition at line 26 of file comment_ajax.php.

Definition at line 51 of file comment_ajax.php.

$args = new stdClass

Definition at line 59 of file comment_ajax.php.

if (!empty($cm)) else if (!empty($course)) if (!confirm_sesskey()) $client_id = required_param('client_id', PARAM_ALPHANUM)

Definition at line 50 of file comment_ajax.php.

$commentid = optional_param('commentid', -1, PARAM_INT)

Definition at line 52 of file comment_ajax.php.

Definition at line 56 of file comment_ajax.php.

$content = optional_param('content', '', PARAM_RAW)

Definition at line 53 of file comment_ajax.php.

Definition at line 25 of file comment_ajax.php.

Definition at line 54 of file comment_ajax.php.

$manager = new comment($args)

Definition at line 67 of file comment_ajax.php.

Definition at line 55 of file comment_ajax.php.

$args area = $area

Definition at line 63 of file comment_ajax.php.

$args client_id = $client_id

Definition at line 65 of file comment_ajax.php.

$args cm = $cm

Definition at line 62 of file comment_ajax.php.

$args component = $component

Definition at line 66 of file comment_ajax.php.

array used to translate between contextids and strings for this context = $context

Definition at line 60 of file comment_ajax.php.

string Current theme for course = $course

Definition at line 61 of file comment_ajax.php.

Definition at line 113 of file comment_ajax.php.

$args itemid = $itemid

Definition at line 64 of file comment_ajax.php.

 All Data Structures Namespaces Files Functions Variables Enumerations