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

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Enumerations

enum  GLOSSARY_SHOW_ALL_CATEGORIES
enum  GLOSSARY_SHOW_NOT_CATEGORISED
enum  GLOSSARY_NO_VIEW
enum  GLOSSARY_STANDARD_VIEW
enum  GLOSSARY_CATEGORY_VIEW
enum  GLOSSARY_DATE_VIEW
enum  GLOSSARY_AUTHOR_VIEW
enum  GLOSSARY_ADDENTRY_VIEW
enum  GLOSSARY_IMPORT_VIEW
enum  GLOSSARY_EXPORT_VIEW
enum  GLOSSARY_APPROVAL_VIEW

Functions

 glossary_add_instance ($glossary)
 STANDARD FUNCTIONS ///////////////////////////////////////////////////////////.
 glossary_update_instance ($glossary)
 glossary_delete_instance ($id)
 glossary_user_outline ($course, $user, $mod, $glossary)
 glossary_get_user_entries ($glossaryid, $userid)
 glossary_user_complete ($course, $user, $mod, $glossary)
 glossary_print_recent_activity ($course, $viewfullnames, $timestart)
 glossary_log_info ($log)
 glossary_cron ()
 glossary_get_user_grades ($glossary, $userid=0)
 glossary_rating_permissions ($contextid, $component, $ratingarea)
 glossary_rating_validate ($params)
 glossary_update_grades ($glossary=null, $userid=0, $nullifnone=true)
 glossary_upgrade_grades ()
 glossary_grade_item_update ($glossary, $grades=NULL)
 glossary_grade_item_delete ($glossary)
 glossary_get_participants ($glossaryid)
 glossary_scale_used ($glossaryid, $scaleid)
 glossary_scale_used_anywhere ($scaleid)
 glossary_get_available_formats ()
 glossary_debug ($debug, $text, $br=1)
 glossary_get_entries ($glossaryid, $entrylist, $pivot="")
 glossary_get_entries_search ($concept, $courseid)
 glossary_print_entry ($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $displayformat=-1, $printview=false)
 glossary_print_entry_default ($entry, $glossary, $cm)
 glossary_print_entry_concept ($entry, $return=false)
 glossary_print_entry_definition ($entry, $glossary, $cm)
 glossary_print_entry_aliases ($course, $cm, $glossary, $entry, $mode='', $hook='', $type= 'print')
 glossary_print_entry_icons ($course, $cm, $glossary, $entry, $mode='', $hook='', $type= 'print')
 glossary_print_entry_lower_section ($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases=true)
 glossary_print_entry_attachment ($entry, $cm, $format=NULL, $align="right", $insidetable=true)
 glossary_print_entry_approval ($cm, $entry, $mode, $align="right", $insidetable=true)
 glossary_search ($course, $searchterms, $extended=0, $glossary=NULL)
 glossary_search_entries ($searchterms, $glossary, $extended)
 glossary_print_attachments ($entry, $cm, $type=NULL, $align="left")
 glossary_get_file_areas ($course, $cm, $context)
 glossary_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload)
 glossary_print_tabbed_table_end ()
 glossary_print_approval_menu ($cm, $glossary, $mode, $hook, $sortkey= '', $sortorder= '')
 glossary_print_import_menu ($cm, $glossary, $mode, $hook, $sortkey='', $sortorder= '')
 glossary_print_export_menu ($cm, $glossary, $mode, $hook, $sortkey='', $sortorder= '')
 glossary_print_alphabet_menu ($cm, $glossary, $mode, $hook, $sortkey='', $sortorder= '')
 glossary_print_author_menu ($cm, $glossary, $mode, $hook, $sortkey= '', $sortorder= '')
 glossary_print_categories_menu ($cm, $glossary, $hook, $category)
 glossary_print_all_links ($cm, $glossary, $mode, $hook)
 glossary_print_special_links ($cm, $glossary, $mode, $hook)
 glossary_print_alphabet_links ($cm, $glossary, $mode, $hook, $sortkey, $sortorder)
 glossary_print_sorting_links ($cm, $mode, $sortkey= '', $sortorder= '')
 glossary_sort_entries ($entry0, $entry1)
 glossary_print_entry_ratings ($course, $entry)
 glossary_print_dynaentry ($courseid, $entries, $displayformat=-1)
 glossary_generate_export_csv ($entries, $aliases, $categories)
 glossary_generate_export_file ($glossary, $ignored="", $hook=0)
 glossary_read_imported_file ($file_content)
 glossary_start_tag ($tag, $level=0, $endline=false)
 glossary_end_tag ($tag, $level=0, $endline=true)
 glossary_full_tag ($tag, $level=0, $endline=true, $content)
 glossary_count_unrated_entries ($glossaryid, $userid)
 glossary_get_paging_bar ($totalcount, $page, $perpage, $baseurl, $maxpageallowed=99999, $maxdisplay=20, $separator=" ", $specialtext="", $specialvalue=-1, $previousandnext=true)
 glossary_get_view_actions ()
 glossary_get_post_actions ()
 glossary_reset_course_form_definition (&$mform)
 glossary_reset_course_form_defaults ($course)
 glossary_reset_gradebook ($courseid, $type='')
 glossary_reset_userdata ($data)
 glossary_get_extra_capabilities ()
 glossary_supports ($feature)
 glossary_get_completion_state ($course, $cm, $userid, $type)
 glossary_extend_navigation ($navigation, $course, $module, $cm)
 glossary_extend_settings_navigation (settings_navigation $settings, navigation_node $glossarynode)
 glossary_comment_permissions ($comment_param)
 glossary_comment_validate ($comment_param)
 glossary_page_type_list ($pagetype, $parentcontext, $currentcontext)

Enumeration Type Documentation

Definition at line 36 of file lib.php.

Definition at line 39 of file lib.php.

Definition at line 35 of file lib.php.

Definition at line 33 of file lib.php.

Definition at line 34 of file lib.php.

Definition at line 38 of file lib.php.

Definition at line 37 of file lib.php.

Definition at line 31 of file lib.php.

Definition at line 28 of file lib.php.

Definition at line 29 of file lib.php.

Definition at line 32 of file lib.php.


Function Documentation

glossary_add_instance ( glossary)

STANDARD FUNCTIONS ///////////////////////////////////////////////////////////.

object

Parameters:
object$glossary
Returns:
int

Given an object containing all the necessary data, (defined by the form in mod_form.php) this function will create a new instance and return the id number of the new instance.

Definition at line 47 of file lib.php.

Here is the call graph for this function:

glossary_comment_permissions ( comment_param)

Running addtional permission check on plugin, for example, plugins may have switch to turn on/off comments option, this callback will affect UI display, not like pluginname_comment_validate only throw exceptions. Capability check has been done in comment->check_permissions(), we don't need to do it again here.

Parameters:
stdClass$comment_param{ context => context the context object courseid => int course id cm => stdClass course module object commentarea => string comment area itemid => int itemid }
Returns:
array

Definition at line 2801 of file lib.php.

glossary_comment_validate ( comment_param)

Validate comment parameter before perform other comments actions

Parameters:
stdClass$comment_param{ context => context the context object courseid => int course id cm => stdClass course module object commentarea => string comment area itemid => int itemid }
Returns:
boolean

Definition at line 2817 of file lib.php.

Here is the call graph for this function:

glossary_count_unrated_entries ( glossaryid,
userid 
)

How many unrated entries are in the given glossary for a given user?

moodle_database $DB

Parameters:
int$glossaryid
int$userid
Returns:
int

Definition at line 2209 of file lib.php.

Function to be run periodically according to the moodle cron This function searches for things that need to be done, such as sending out mail, toggling flags etc ...

Returns:
bool

Definition at line 431 of file lib.php.

glossary_debug ( debug,
text,
br = 1 
)
Parameters:
bool$debug
string$text
int$br

Definition at line 824 of file lib.php.

Given an ID of an instance of this module, this function will permanently delete the instance and any data that depends on it.

object

Parameters:
int$idglossary id
Returns:
bool success

Definition at line 137 of file lib.php.

Here is the call graph for this function:

glossary_end_tag ( tag,
level = 0,
endline = true 
)

Return the xml end tag

Parameters:
string$tag
int$level
bool$endline
Returns:
string

Definition at line 2173 of file lib.php.

Here is the caller graph for this function:

glossary_extend_navigation ( navigation,
course,
module,
cm 
)

Definition at line 2736 of file lib.php.

Adds module specific settings to the settings block

Parameters:
settings_navigation$settingsThe settings navigation object
navigation_node$glossarynodeThe node to add module settings to

Definition at line 2750 of file lib.php.

Here is the call graph for this function:

glossary_full_tag ( tag,
level = 0,
endline = true,
content 
)

Return the start tag, the contents and the end tag

object

Parameters:
string$tag
int$level
bool$endline
string$content
Returns:
string

Definition at line 2192 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_generate_export_csv ( entries,
aliases,
categories 
)

object

Parameters:
array$entries
array$aliases
array$categories
Returns:
string

Definition at line 1979 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_generate_export_file ( glossary,
ignored = "",
hook = 0 
)
Parameters:
object$glossary
string$ignoredinvalid parameter
int | string$hook
Returns:
string

Definition at line 2040 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Any other glossary functions go here. Each of them must have a name that starts with glossary_ This function return an array of valid glossary_formats records Everytime it's called, every existing format is checked, new formats are included if detected and old formats are deleted and any glossary using an invalid format is updated to the default (dictionary).

object object

Returns:
array

Definition at line 765 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_get_completion_state ( course,
cm,
userid,
type 
)

Obtains the automatic completion state for this glossary based on any conditions in glossary settings.

object object

Parameters:
object$courseCourse
object$cmCourse-module
int$useridUser ID
bool$typeType of comparison (or/and; can be used as return value if no conditions)
Returns:
bool True if completed, false if not. (If no conditions, then return value depends on comparison type)

Definition at line 2713 of file lib.php.

glossary_get_entries ( glossaryid,
entrylist,
pivot = "" 
)

object

Parameters:
int$glossaryid
string$entrylist
string$pivot
Returns:
array

Definition at line 841 of file lib.php.

glossary_get_entries_search ( concept,
courseid 
)

object object

Parameters:
object$concept
string$courseid
Returns:
array

Definition at line 860 of file lib.php.

Here is the call graph for this function:

Returns all other caps used in module

Returns:
array

Definition at line 2674 of file lib.php.

glossary_get_file_areas ( course,
cm,
context 
)

Lists all browsable file areas

Parameters:
object$course
object$cm
object$context
Returns:
array

Definition at line 1459 of file lib.php.

glossary_get_paging_bar ( totalcount,
page,
perpage,
baseurl,
maxpageallowed = 99999,
maxdisplay = 20,
separator = " ",
specialtext = "",
specialvalue = -1,
previousandnext = true 
)

Returns the html code to represent any pagging bar. Paramenters are:

The function dinamically show the first and last pages, and "scroll" over pages. Fully compatible with Moodle's print_paging_bar() function. Perhaps some day this could replace the general one. ;-)

Parameters:
int$totalcounttotal number of records to be displayed
int$pagepage currently selected (0 based)
int$perpagenumber of records per page
string$baseurlurl to link in each page, the string 'page=XX' will be added automatically.
int$maxpageallowedOptional maximum number of page allowed.
int$maxdisplayOptional maximum number of page links to show in the bar
string$separatorOptional string to be used between pages in the bar
string$specialtextOptional string to be showed as an special link
string$specialvalueOptional value (page) to be used in the special link
bool$previousandnextOptional to decide if we want the previous and next links
Returns:
string

Definition at line 2279 of file lib.php.

glossary_get_participants ( glossaryid)

Returns the users with data in one glossary (users with records in glossary_entries, students)

Todo:
: deprecated - to be deleted in 2.2
Parameters:
int$glossaryid
Returns:
array

Definition at line 699 of file lib.php.

Returns:
array

Definition at line 2406 of file lib.php.

glossary_get_user_entries ( glossaryid,
userid 
)

object

Parameters:
int$glossaryid
int$userid
Returns:
array

Get all the entries for a user in a glossary

Definition at line 266 of file lib.php.

Here is the caller graph for this function:

glossary_get_user_grades ( glossary,
userid = 0 
)

Return grade for given user or all users.

object

Parameters:
int$glossaryidid of glossary
int$useridoptional user id, 0 means all users
Returns:
array array of grades, false if none

Definition at line 443 of file lib.php.

Here is the caller graph for this function:

Returns:
array

Definition at line 2400 of file lib.php.

glossary_grade_item_delete ( glossary)

Delete grade item for given glossary

object

Parameters:
object$glossaryobject

Definition at line 683 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_grade_item_update ( glossary,
grades = NULL 
)

Create/update grade item for given glossary

object

Parameters:
object$glossaryobject with extra cmidnumber
mixedoptional array/object of grade(s); 'reset' means reset grades in gradebook
Returns:
int, 0 if ok, error code otherwise

Definition at line 650 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_log_info ( log)

object

Parameters:
object$log

Definition at line 417 of file lib.php.

glossary_page_type_list ( pagetype,
parentcontext,
currentcontext 
)

Return a list of page types

Parameters:
string$pagetypecurrent page type
stdClass$parentcontextBlock's parent context
stdClass$currentcontextCurrent context of block

Definition at line 2869 of file lib.php.

glossary_pluginfile ( course,
cm,
context,
filearea,
args,
forcedownload 
)

Serves the glossary attachments. Implements needed access control ;-)

Parameters:
object$course
object$cm
object$context
string$filearea
array$args
bool$forcedownload
Returns:
bool false if file not found, does not return if found - justsend the file

Definition at line 1475 of file lib.php.

Here is the call graph for this function:

glossary_print_all_links ( cm,
glossary,
mode,
hook 
)

object

Parameters:
object$cm
object$glossary
string$mode
string$hook

Definition at line 1722 of file lib.php.

Here is the caller graph for this function:

glossary_print_alphabet_links ( cm,
glossary,
mode,
hook,
sortkey,
sortorder 
)

object

Parameters:
object$glossary
string$mode
string$hook
string$sortkey
string$sortorder

Definition at line 1763 of file lib.php.

Here is the caller graph for this function:

glossary_print_alphabet_menu ( cm,
glossary,
mode,
hook,
sortkey = '',
sortorder = '' 
)
Parameters:
object$cm
object$glossary
string$hook
string$sortkey
string$sortorder

Definition at line 1602 of file lib.php.

Here is the call graph for this function:

glossary_print_approval_menu ( cm,
glossary,
mode,
hook,
sortkey = '',
sortorder = '' 
)
Parameters:
object$cm
object$glossary
string$mode
string$hook
string$sortkey
string$sortorder

Definition at line 1562 of file lib.php.

Here is the call graph for this function:

glossary_print_attachments ( entry,
cm,
type = NULL,
align = "left" 
)

if return=html, then return a html string. if return=text, then return a text-only string. otherwise, print HTML for non-images, and return image HTML if attachment is an image, $align set its aligment.

object object

Parameters:
object$entry
object$cm
string$typehtml, txt, empty
string$alignleft or right
Returns:
string image string or nothing depending on $type param

Definition at line 1391 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_print_author_menu ( cm,
glossary,
mode,
hook,
sortkey = '',
sortorder = '' 
)
Parameters:
object$cm
object$glossary
string$hook
string$sortkey
string$sortorder

Definition at line 1625 of file lib.php.

Here is the call graph for this function:

glossary_print_categories_menu ( cm,
glossary,
hook,
category 
)

object object

Parameters:
object$cm
object$glossary
string$hook
object$category

Definition at line 1643 of file lib.php.

Here is the call graph for this function:

glossary_print_dynaentry ( courseid,
entries,
displayformat = -1 
)

object object object

Parameters:
int$courseid
array$entries
int$displayformat

Definition at line 1922 of file lib.php.

Here is the call graph for this function:

glossary_print_entry ( course,
cm,
glossary,
entry,
mode = '',
hook = '',
printicons = 1,
displayformat = -1,
printview = false 
)

object object

Parameters:
object$course
object$course
object$glossary
object$entry
string$mode
string$hook
int$printicons
int$displayformat
bool$printview
Returns:
mixed

Definition at line 909 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_print_entry_aliases ( course,
cm,
glossary,
entry,
mode = '',
hook = '',
type = 'print' 
)

object

Parameters:
object$course
object$cm
object$glossary
object$entry
string$mode
string$hook
string$type
Returns:
string|void

Definition at line 1044 of file lib.php.

Here is the caller graph for this function:

glossary_print_entry_approval ( cm,
entry,
mode,
align = "right",
insidetable = true 
)

object

Parameters:
object$cm
object$entry
string$mode
string$align
bool$insidetable

Definition at line 1248 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_print_entry_attachment ( entry,
cm,
format = NULL,
align = "right",
insidetable = true 
)
Todo:
Document this function

valid format values: html : Return the HTML link for the attachment as an icon text : Return the HTML link for tha attachment as text blank : Print the output to the screen

Definition at line 1225 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_print_entry_concept ( entry,
return = false 
)

Print glossary concept/term as a heading <h3>

Parameters:
object$entry

Definition at line 972 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_print_entry_default ( entry,
glossary,
cm 
)

Default (old) print format used if custom function doesn't exist in format

Parameters:
object$entry
object$glossary
object$cm
Returns:
void Output is echo'd

Definition at line 944 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_print_entry_definition ( entry,
glossary,
cm 
)

moodle_database DB

Parameters:
object$entry
object$glossary
object$cm

Definition at line 995 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_print_entry_icons ( course,
cm,
glossary,
entry,
mode = '',
hook = '',
type = 'print' 
)

object object object

Parameters:
object$course
object$cm
object$glossary
object$entry
string$mode
string$hook
string$type
Returns:
string|void

Definition at line 1082 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_print_entry_lower_section ( course,
cm,
glossary,
entry,
mode,
hook,
printicons,
aliases = true 
)
Parameters:
object$course
object$cm
object$glossary
object$entry
string$mode
object$hook
bool$printicons
bool$aliases
Returns:
void

Definition at line 1196 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_print_entry_ratings ( course,
entry 
)

object object object

Parameters:
object$course
object$entry
Returns:
bool

Definition at line 1906 of file lib.php.

Here is the caller graph for this function:

glossary_print_export_menu ( cm,
glossary,
mode,
hook,
sortkey = '',
sortorder = '' 
)
Parameters:
object$cm
object$glossary
string$hook
string$sortkey
string$sortorder

Definition at line 1592 of file lib.php.

glossary_print_import_menu ( cm,
glossary,
mode,
hook,
sortkey = '',
sortorder = '' 
)
Parameters:
object$cm
object$glossary
string$hook
string$sortkey
string$sortorder

Definition at line 1581 of file lib.php.

glossary_print_recent_activity ( course,
viewfullnames,
timestart 
)

Given a course and a time, this module should find recent activity that has occurred in glossary activities and print it out. Return true if there was output, or false is there was none.

object object object

Parameters:
object$course
object$viewfullnames
int$timestart
Returns:
bool

Definition at line 325 of file lib.php.

Here is the call graph for this function:

glossary_print_sorting_links ( cm,
mode,
sortkey = '',
sortorder = '' 
)

object

Parameters:
object$cm
string$mode
string$sortkey
string$sortorder

Definition at line 1785 of file lib.php.

Here is the caller graph for this function:

glossary_print_special_links ( cm,
glossary,
mode,
hook 
)

object

Parameters:
object$cm
object$glossary
string$mode
string$hook

Definition at line 1742 of file lib.php.

Here is the caller graph for this function:

Definition at line 1550 of file lib.php.

glossary_rating_permissions ( contextid,
component,
ratingarea 
)

Return rating related permissions

Parameters:
int$contextidthe context id
string$componentThe component we want to get permissions for
string$ratingareaThe ratingarea that we want to get permissions for
Returns:
array an associative array of the user's rating permissions

Definition at line 474 of file lib.php.

Here is the call graph for this function:

glossary_rating_validate ( params)

Validates a submitted rating

Parameters:
array$paramssubmitted data context => object the context in which the rated items exists [required] component => The component for this module - should always be mod_forum [required] ratingarea => object the context in which the rated items exists [required] itemid => int the ID of the object being rated [required] scaleid => int the scale from which the user can select a rating. Used for bounds checking. [required] rating => int the submitted rating rateduserid => int the id of the user whose items have been rated. NOT the user who submitted the ratings. 0 to update all. [required] aggregation => int the aggregation method to apply when calculating grades ie RATING_AGGREGATE_AVERAGE [optional]
Returns:
boolean true if the rating is valid. Will throw rating_exception if not

Definition at line 502 of file lib.php.

Here is the call graph for this function:

glossary_read_imported_file ( file_content)

Functions designed by Eloy Lafuente Functions to create, open and write header of the xml file Read import file and convert to current charset

object

Parameters:
string$file
Returns:
string

Definition at line 2142 of file lib.php.

Here is the call graph for this function:

Course reset form defaults.

Returns:
array

Definition at line 2439 of file lib.php.

Implementation of the function for printing the form elements that control whether the course reset functionality affects the glossary.

Parameters:
object$mformform passed by reference

Definition at line 2416 of file lib.php.

glossary_reset_gradebook ( courseid,
type = '' 
)

Removes all grades from gradebook

object

Parameters:
int$courseid
stringoptional type

Definition at line 2450 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Actual implementation of the reset course functionality, delete all the glossary responses for course $data->courseid.

object

Parameters:
$datathe data submitted from the reset course.
Returns:
array status array

updating dates - shift may be negative too

Definition at line 2477 of file lib.php.

Here is the call graph for this function:

glossary_scale_used ( glossaryid,
scaleid 
)

object

Parameters:
int$gloassryid
int$scaleid
Returns:
bool

Definition at line 717 of file lib.php.

Checks if scale is being used by any instance of glossary

This is used to find out if scale used anywhere

object

Parameters:
int$scaleid
Returns:
boolean True if the scale is used by any glossary

Definition at line 741 of file lib.php.

glossary_search ( course,
searchterms,
extended = 0,
glossary = NULL 
)

It returns all entries from all glossaries that matches the specified criteria within a given $course. It performs an $extended search if necessary. It restrict the search to only one $glossary if the $glossary parameter is set.

object object

Parameters:
object$course
array$searchterms
int$extended
object$glossary
Returns:
array

Initially we aren't going to perform NOT LIKE searches, only MSSQL and Oracle

will use it to simulate the "-" operator with LIKE clause

Under Oracle and MSSQL, trim the + and - operators and perform simpler LIKE (or NOT LIKE) queries

Definition at line 1275 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_search_entries ( searchterms,
glossary,
extended 
)

object

Parameters:
array$searchterms
object$glossary
bool$extended
Returns:
array

Definition at line 1370 of file lib.php.

Here is the call graph for this function:

glossary_sort_entries ( entry0,
entry1 
)
Parameters:
object$entry0
object$entry1
Returns:
int [-1 | 0 | 1]

Definition at line 1886 of file lib.php.

Here is the call graph for this function:

glossary_start_tag ( tag,
level = 0,
endline = false 
)

Return the xml start tag

Parameters:
string$tag
int$level
bool$endline
Returns:
string

Definition at line 2157 of file lib.php.

Here is the caller graph for this function:

glossary_supports ( feature)
Parameters:
string$featureFEATURE_xx constant for requested feature
Returns:
mixed True if module supports feature, null if doesn't know

Definition at line 2682 of file lib.php.

glossary_update_grades ( glossary = null,
userid = 0,
nullifnone = true 
)

Update activity grades

object object

Parameters:
object$glossarynull means all glossaries (with extra cmidnumber property)
int$useridspecific user only, 0 means all

Definition at line 591 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

glossary_update_instance ( glossary)

Given an object containing all the necessary data, (defined by the form in mod_form.php) this function will update an existing instance with new data.

object object

Parameters:
object$glossary
Returns:
bool

Definition at line 93 of file lib.php.

Here is the call graph for this function:

Update all grades in gradebook.

object

Definition at line 617 of file lib.php.

Here is the call graph for this function:

glossary_user_complete ( course,
user,
mod,
glossary 
)

Print a detailed representation of what a user has done with a given particular instance of this module, for user activity reports.

object

Parameters:
object$course
object$user
object$mod
object$glossary

Definition at line 289 of file lib.php.

Here is the call graph for this function:

glossary_user_outline ( course,
user,
mod,
glossary 
)

Return a small object with summary information about what a user has done with a given particular instance of this module Used for user activity reports. $return->time = the time they did it $return->info = a short text description

Parameters:
object$course
object$user
object$mod
object$glossary
Returns:
object|null

Definition at line 220 of file lib.php.

Here is the call graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations