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

Go to the source code of this file.

Variables

 $id = optional_param('id', 0, PARAM_INT)
 This page prints a particular instance of glossary.
 $g = optional_param('g', 0, PARAM_INT)
 $tab = optional_param('tab', GLOSSARY_NO_VIEW, PARAM_ALPHA)
 $displayformat = optional_param('displayformat',-1, PARAM_INT)
 $mode = optional_param('mode', '', PARAM_ALPHA)
 $hook = optional_param('hook', '', PARAM_CLEAN)
 $fullsearch = optional_param('fullsearch', 0,PARAM_INT)
 $sortkey = optional_param('sortkey', '', PARAM_ALPHA)
 $sortorder = optional_param('sortorder', 'ASC', PARAM_ALPHA)
 $offset = optional_param('offset', 0,PARAM_INT)
 $page = optional_param('page', 0,PARAM_INT)
 $show = optional_param('show', '', PARAM_ALPHA)
 $context = get_context_instance(CONTEXT_MODULE, $cm->id)
 $fmtoptions
 $textlib = textlib_get_instance()
 Loading the textlib singleton instance. We are going to need it.
 $completion = new completion_info($course)
 redirecting if adding a new entry
if($sortorder=strtolower($sortorder))
if($sortkey=strtoupper($sortkey))
switch($mode=strtolower($mode))
switch($tab) 
$strglossaries = get_string("modulenameplural", "glossary")
 stablishing flag variables
 $strglossary = get_string("modulename", "glossary")
 $strallcategories = get_string("allcategories", "glossary")
 $straddentry = get_string("addentry", "glossary")
 $strnoentries = get_string("noentries", "glossary")
 $strsearchindefinition = get_string("searchindefinition", "glossary")
 $strsearch = get_string("search")
 $strwaitingapproval = get_string('waitingapproval', 'glossary')
 $url = new moodle_url('/mod/glossary/view.php', array('id'=>$cm->id))
 $entriesshown = 0
 printing the entries
 $currentpivot = ''
 $paging = NULL
if($allentries) if(!$entriesshown)
if(!empty($formsent)) 
if ($paging)

Variable Documentation

$completion = new completion_info($course)

redirecting if adding a new entry

setting the defaut number of entries per page if not set If we have received a page, recalculate offset setting the default values for the display mode of the current glossary only if the glossary is viewed by the first time

Based on format->defaultmode, we build the defaulttab to be showed sometimes

Fetch the rest of variables

Definition at line 132 of file view.php.

Definition at line 51 of file view.php.

$currentpivot = ''

Definition at line 382 of file view.php.

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

Definition at line 13 of file view.php.

$entriesshown = 0

printing the entries

Definition at line 381 of file view.php.

$fmtoptions
Initial value:
 array(
    'context' => $context)

Definition at line 54 of file view.php.

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

Definition at line 17 of file view.php.

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

Definition at line 10 of file view.php.

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

Definition at line 16 of file view.php.

This page prints a particular instance of glossary.

Definition at line 9 of file view.php.

Definition at line 15 of file view.php.

Definition at line 20 of file view.php.

Definition at line 21 of file view.php.

$paging = NULL

Definition at line 383 of file view.php.

$show = optional_param('show', '', PARAM_ALPHA)

Definition at line 22 of file view.php.

$sortkey = optional_param('sortkey', '', PARAM_ALPHA)

Definition at line 18 of file view.php.

$sortorder = optional_param('sortorder', 'ASC', PARAM_ALPHA)

Definition at line 19 of file view.php.

$straddentry = get_string("addentry", "glossary")

Definition at line 233 of file view.php.

$strallcategories = get_string("allcategories", "glossary")

Definition at line 232 of file view.php.

if ($sortorder=strtolower($sortorder)) if ($sortkey=strtoupper($sortkey)) switch ($mode=strtolower($mode)) switch ($tab) $strglossaries = get_string("modulenameplural", "glossary")

stablishing flag variables

Printing the heading

looking for terms containing certain word(s)

Looking for a certain entry id

Looking for a certain cat

Looking for entries waiting for approval

Looking for entries that include certain term in its concept, definition or aliases

Looking for entries, browsed by author

Looking for entries that begin with a certain letter, ALL or SPECIAL characters

Definition at line 230 of file view.php.

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

Definition at line 231 of file view.php.

$strnoentries = get_string("noentries", "glossary")

Definition at line 234 of file view.php.

$strsearch = get_string("search")

Definition at line 236 of file view.php.

$strsearchindefinition = get_string("searchindefinition", "glossary")

Definition at line 235 of file view.php.

$strwaitingapproval = get_string('waitingapproval', 'glossary')

Definition at line 237 of file view.php.

Definition at line 12 of file view.php.

Loading the textlib singleton instance. We are going to need it.

Definition at line 61 of file view.php.

$url = new moodle_url('/mod/glossary/view.php', array('id'=>$cm->id))

Definition at line 242 of file view.php.

if ($allentries) if (!$entriesshown) if (!empty($formsent)) if($paging)

highlight the term if necessary

and finally print the entry.

Definition at line 494 of file view.php.

 All Data Structures Namespaces Files Functions Variables Enumerations