[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/course/publish/ -> lib.php (summary)

Audience: educators

File Size: 299 lines (9 kb)
Included or required:0 times
Referenced: 6 times
Includes or requires: 0 files

Defines 1 class

course_publish_manager:: (11 methods):
  add_course_publication()
  update_enrollable_course_publication()
  update_publication()
  get_publications()
  get_publication()
  get_course_publications()
  get_registeredhub_by_publication()
  delete_publication()
  delete_hub_publications()
  get_block_instances_by_context()
  get_sorted_subjects()


Class: course_publish_manager  - X-Ref

Course publication library

add_course_publication($huburl, $courseid, $enrollable, $hubcourseid)   X-Ref
Record a course publication

param: int $hubid the hub id from the 'registered on hub' table
param: int $courseid the course id from site point of view
param: int $enrollable if the course is enrollable = 1, if downloadable = 0
param: int $hubcourseid the course id from the hub point of view

update_enrollable_course_publication($publicationid)   X-Ref
Update a enrollable course publication

param: int $publicationid

update_publication($publication)   X-Ref
Update a course publication

param: object $publication

get_publications($huburl = null, $courseid = null, $enrollable = -1)   X-Ref
Get courses publications

param: int $hubid specify a hub
param: int $courseid specify a course
param: int $enrollable specify type of publication (enrollable or downloadable)
return: array of publications

get_publication($hubcourseid, $huburl)   X-Ref
Get a publication for a course id on a hub
(which is either the id of the unique possible enrollable publication of a course,
either an id of one of the downloadable publication)

param: int $hubcourseid
param: string $huburl
return: object publication

get_course_publications($courseid)   X-Ref
Get all publication for a course

param: int $courseid
return: array of publication

get_registeredhub_by_publication($publicationid)   X-Ref
Get the hub concerned by a publication

param: int $publicationid
return: object the hub (id, name, url, token)

delete_publication($publicationid)   X-Ref
Delete a publication

param: int $publicationid

delete_hub_publications($huburl, $enrollable = -1)   X-Ref
Delete publications for a hub

param: string $huburl
param: int $enrollable

get_block_instances_by_context($contextid, $sort = '')   X-Ref
Get an array of all block instances for a given context

param: int $contextid a context id
return: array of block instances.

get_sorted_subjects()   X-Ref
Retrieve all the sorted course subjects

return: array $subjects



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