[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/community/ -> locallib.php (summary)

(no description)

File Size: 148 lines (5 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 1 class

block_community_manager:: (5 methods):
  block_community_add_course()
  block_community_get_courses()
  block_community_get_course()
  block_community_download_course_backup()
  block_community_remove_course()


Class: block_community_manager  - X-Ref

Community library

block_community_add_course($course, $userid)   X-Ref
Add a community course

param: object $course
param: integer $userid
return: id of course or false if already added

block_community_get_courses($userid)   X-Ref
Return all community courses of a user

param: integer $userid
return: array of course

block_community_get_course($courseurl, $userid)   X-Ref
Return a community courses of a user

param: integer $userid
param: integer $userid
return: array of course

block_community_download_course_backup($course)   X-Ref
Download the community course backup and save it in file API

param: integer $courseid
param: string $huburl
return: array 'privatefile' the file name saved in private area

block_community_remove_course($communityid, $userid)   X-Ref
Delete a community course

param: integer $communityid
param: integer $userid
return: bool true



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