|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
| $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
| $displayformat = optional_param('displayformat',-1, PARAM_INT) |
| $fullsearch = optional_param('fullsearch', 0,PARAM_INT) |
| $g = optional_param('g', 0, PARAM_INT) |
| $hook = optional_param('hook', '', PARAM_CLEAN) |
| $id = optional_param('id', 0, PARAM_INT) |
| $mode = optional_param('mode', '', PARAM_ALPHA) |
| $show = optional_param('show', '', PARAM_ALPHA) |
| $sortkey = optional_param('sortkey', '', PARAM_ALPHA) |
| $sortorder = optional_param('sortorder', 'ASC', PARAM_ALPHA) |
| $straddentry = get_string("addentry", "glossary") |
| $strallcategories = get_string("allcategories", "glossary") |
| 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
| $strglossary = get_string("modulename", "glossary") |
| $strnoentries = get_string("noentries", "glossary") |
| $strsearch = get_string("search") |
| $strsearchindefinition = get_string("searchindefinition", "glossary") |
| $strwaitingapproval = get_string('waitingapproval', 'glossary') |
| $tab = optional_param('tab', GLOSSARY_NO_VIEW, PARAM_ALPHA) |