|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Variables | |
| if(!isset($sortorder)) if(!isset($sortkey)) | $sortkey = clean_param($sortkey, PARAM_ALPHA) |
| $sortorder = clean_param($sortorder, PARAM_ALPHA) | |
| $toolsrow = array() | |
| $browserow = array() | |
| $inactive = array() | |
| $activated = array() | |
| if(!has_capability('mod/glossary:approve', $context)&&$tab==GLOSSARY_APPROVAL_VIEW) | $browserow [] |
| if($tab < GLOSSARY_STANDARD_VIEW||$tab > GLOSSARY_AUTHOR_VIEW) | $tabrows = array() |
| Put all this info together. | |
| $tabrows [] = $browserow | |
| if($toolsrow) if($showcommonelements) if(!isset($category)) | switch ($tab) |
| $browserow[] |
new tabobject(GLOSSARY_STANDARD_VIEW, $CFG->wwwroot.'/mod/glossary/view.php?id='.$id.'&mode=letter', get_string('standardview', 'glossary'))
Non-teachers going to approval view go to defaulttab
| if (!isset($sortorder)) if (!isset($sortkey)) $sortkey = clean_param($sortkey, PARAM_ALPHA) |
| $sortorder = clean_param($sortorder, PARAM_ALPHA) |
| if ($tab< GLOSSARY_STANDARD_VIEW||$tab > GLOSSARY_AUTHOR_VIEW) $tabrows = array() |