Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/course/format/topics/lib.php File Reference

Go to the source code of this file.

Namespaces

namespace  moodlecore

Functions

 callback_topics_uses_sections ()
 callback_topics_load_content (&$navigation, $course, $coursenode)
 callback_topics_definition ()
 callback_topics_request_key ()
 callback_topics_get_section_name ($course, $section)
 callback_topics_ajax_support ()
 callback_topics_get_section_url ($courseid, $sectionnum)

Function Documentation

Declares support for course AJAX features

See also:
course_format_ajax_support()
Returns:
stdClass

Definition at line 87 of file lib.php.

The string that is used to describe a section of the course e.g. Topic, Week...

Returns:
string

Definition at line 56 of file lib.php.

callback_topics_get_section_name ( course,
section 
)

Definition at line 70 of file lib.php.

Here is the call graph for this function:

callback_topics_get_section_url ( courseid,
sectionnum 
)

Returns a URL to arrive directly at a section

Parameters:
int$courseidThe id of the course to get the link for
int$sectionnumThe section number to jump to
Returns:
moodle_url

Definition at line 101 of file lib.php.

callback_topics_load_content ( &$  navigation,
course,
coursenode 
)

Used to display the course structure for a course where format=topic

This is called automatically by load_course() if the current course format = weeks.

Parameters:
array$pathAn array of keys to the course node in the navigation
stdClass$modinfoThe mod info object for the current course
Returns:
bool Returns true

Definition at line 46 of file lib.php.

The GET argument variable that is used to identify the section being viewed by the user (if there is one)

Returns:
string

Definition at line 66 of file lib.php.

Indicates this format uses sections.

Returns:
bool Returns true

Definition at line 32 of file lib.php.

 All Data Structures Namespaces Files Functions Variables Enumerations