[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/course/format/social/ -> lib.php (summary)

This file contains main class for the course format Social

Copyright: 2009 Sam Hemelryk
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 112 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

format_social:: (4 methods):
  get_view_url()
  extend_course_navigation()
  get_default_blocks()
  course_format_options()


Class: format_social  - X-Ref

Main class for the Social course format

get_view_url($section, $options = array()   X-Ref
The URL to use for the specified course

param: int|stdClass $section Section object from database or just field course_sections.section
param: array $options options for view URL. At the moment core uses:
return: null|moodle_url

extend_course_navigation($navigation, navigation_node $node)   X-Ref
Loads all of the course sections into the navigation

param: global_navigation $navigation
param: navigation_node $node The course node within the navigation

get_default_blocks()   X-Ref
Returns the list of blocks to be automatically added for the newly created course

return: array of default blocks, must contain two keys BLOCK_POS_LEFT and BLOCK_POS_RIGHT

course_format_options($foreditform = false)   X-Ref
Definitions of the additional options that this course format uses for course

social format uses the following options:
- numdiscussions

param: bool $foreditform
return: array of options



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1