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

Go to the source code of this file.

Namespaces

namespace  moodlecore

Functions

 callback_weeks_uses_sections ()
 callback_weeks_load_content (&$navigation, $course, $coursenode)
 callback_weeks_definition ()
 callback_weeks_request_key ()
 callback_weeks_get_section_name ($course, $section)
 callback_weeks_ajax_support ()
 callback_weeks_get_section_url ($courseid, $sectionnum)

Function Documentation

Declares support for course AJAX features

See also:
course_format_ajax_support()
Returns:
stdClass

Definition at line 109 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_weeks_get_section_name ( course,
section 
)

Gets the name for the provided section.

Parameters:
stdClass$course
stdClass$section
Returns:
string

Definition at line 77 of file lib.php.

Here is the call graph for this function:

callback_weeks_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 123 of file lib.php.

callback_weeks_load_content ( &$  navigation,
course,
coursenode 
)

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

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

Parameters:
navigation_node$navigationThe course node
array$pathAn array of keys to the course node
stdClass$courseThe course we are loading the section for

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