Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: Frank Ralf/Glossary list2.

User:Frank Ralf/Glossary list2: Difference between revisions

From MoodleDocs
Line 16: Line 16:
== Possibly useful functions ==
== Possibly useful functions ==


\mod\glossary
=== \mod\glossary ===
* [http://xref.moodle.org/mod/glossary/index.php.html glossary/index.php]
* [http://xref.moodle.org/mod/glossary/index.php.html glossary/index.php]
* [http://xref.moodle.org/mod/glossary/exportentry.php.html exportentry.php]


datalib.php
=== datalib.php ===
* [http://xref.moodle.org/lib/datalib.php.html#get_my_courses get_my_courses]  
* [http://xref.moodle.org/lib/datalib.php.html#get_my_courses get_my_courses]  
: Convenience function - lists courses that a user has access to view.
: Convenience function - lists courses that a user has access to view.

Revision as of 15:56, 13 November 2009

Ideen für Glossarlisten-Block:

Some unsorted ideas

  • use activity_modules block as a template for glossary_list block
  • request SQL with dmllib.php?
  • function get_fast_modinfo in moodle\course\lib.php (1058) - works only on course level ("Returns reference to full info about modules in course")
Is there an equivalent at site level?
  • Alternatives:
  1. get list of all courses (IDs)
  2. collect all glossaries
  3. show only those for the current user

Possibly useful functions

\mod\glossary

datalib.php

Convenience function - lists courses that a user has access to view.
Returns an array of all the active instances of a particular module in given courses, sorted in the order they are defined.
Given an id of a course module, finds the coursemodule description.
Given an instance number of a module, finds the coursemodule description.