Moodle  2.2.1
http://www.collinsharper.com
block_community_manager Class Reference

Public Member Functions

 block_community_add_course ($course, $userid)
 block_community_get_courses ($userid)
 block_community_get_course ($courseurl, $userid)
 block_community_download_course_backup ($course)
 block_community_remove_course ($communityid, $userid)

Detailed Description

Definition at line 27 of file locallib.php.


Member Function Documentation

block_community_add_course ( course,
userid 
)

Add a community course

Parameters:
object$course
integer$userid
Returns:
id of course or false if already added

Definition at line 35 of file locallib.php.

Here is the call graph for this function:

Download the community course backup and save it in file API

Parameters:
integer$courseid
string$huburl
Returns:
array 'privatefile' the file name saved in private area 'tmpfile' the file name saved in the moodledata temp dir (for restore)

Definition at line 81 of file locallib.php.

Here is the call graph for this function:

block_community_get_course ( courseurl,
userid 
)

Return a community courses of a user

Parameters:
integer$userid
integer$userid
Returns:
array of course

Definition at line 68 of file locallib.php.

Here is the caller graph for this function:

Return all community courses of a user

Parameters:
integer$userid
Returns:
array of course

Definition at line 57 of file locallib.php.

block_community_remove_course ( communityid,
userid 
)

Delete a community course

Parameters:
integer$communityid
integer$userid
Returns:
bool true

Definition at line 140 of file locallib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations