Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/glossary/deleteentry.php File Reference

Go to the source code of this file.

Variables

 $id = required_param('id', PARAM_INT)
 $confirm = optional_param('confirm', 0, PARAM_INT)
 $entry = optional_param('entry', 0, PARAM_INT)
 $prevmode = required_param('prevmode', PARAM_ALPHA)
 $hook = optional_param('hook', '', PARAM_CLEAN)
 $url = new moodle_url('/mod/glossary/deleteentry.php', array('id'=>$id,'prevmode'=>$prevmode))
 $strglossary = get_string("modulename", "glossary")
 $strglossaries = get_string("modulenameplural", "glossary")
 $stredit = get_string("edit")
 $entrydeleted = get_string("entrydeleted","glossary")
 $context = get_context_instance(CONTEXT_MODULE, $cm->id)
 $manageentries = has_capability('mod/glossary:manageentries', $context)
if(!$glossary=$DB->get_record("glossary",
array("id"=> $cm->instance))) 
$strareyousuredelete = get_string("areyousuredelete","glossary")
if(($entry->userid!=$USER->id)
and!$manageentries) 
$ineditperiod = ((time() - $entry->timecreated < $CFG->maxeditingtime) || $glossary->editalways)

Variable Documentation

Definition at line 7 of file deleteentry.php.

Definition at line 43 of file deleteentry.php.

$entry = optional_param('entry', 0, PARAM_INT)

Definition at line 8 of file deleteentry.php.

$entrydeleted = get_string("entrydeleted","glossary")

Definition at line 27 of file deleteentry.php.

$hook = optional_param('hook', '', PARAM_CLEAN)

Definition at line 10 of file deleteentry.php.

Definition at line 6 of file deleteentry.php.

if (($entry->userid!=$USER->id) and!$manageentries) $ineditperiod = ((time() - $entry->timecreated < $CFG->maxeditingtime) || $glossary->editalways)

Definition at line 56 of file deleteentry.php.

$manageentries = has_capability('mod/glossary:manageentries', $context)

Definition at line 44 of file deleteentry.php.

$prevmode = required_param('prevmode', PARAM_ALPHA)

Definition at line 9 of file deleteentry.php.

if (!$glossary=$DB->get_record("glossary", array("id"=> $cm->instance))) $strareyousuredelete = get_string("areyousuredelete","glossary")

Definition at line 51 of file deleteentry.php.

$stredit = get_string("edit")

Definition at line 26 of file deleteentry.php.

$strglossaries = get_string("modulenameplural", "glossary")

Definition at line 25 of file deleteentry.php.

$strglossary = get_string("modulename", "glossary")

Definition at line 24 of file deleteentry.php.

$url = new moodle_url('/mod/glossary/deleteentry.php', array('id'=>$id,'prevmode'=>$prevmode))

Definition at line 12 of file deleteentry.php.

 All Data Structures Namespaces Files Functions Variables Enumerations