Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/blocks/community/communitycourse.php File Reference

Go to the source code of this file.

Variables

 $courseid = required_param('courseid', PARAM_INT)
 $parentcourse = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST)
 $context = get_context_instance(CONTEXT_COURSE, $courseid)
 $search = optional_param('search', null, PARAM_TEXT)
 $usercansearch = has_capability('moodle/community:add', $context)
 $usercandownload = has_capability('moodle/community:download', $context)
if(empty($usercansearch)) else
if(!extension_loaded('xmlrpc'))
if(!empty($notificationerror)) 
$communitymanager = new block_community_manager()
 $renderer = $PAGE->get_renderer('block_community')
 $add = optional_param('add', -1, PARAM_INTEGER)
 Check if the page has been called with trust argument.
 $confirm = optional_param('confirmed', false, PARAM_INTEGER)
if($add!=-1 and $confirm and
confirm_sesskey()) 
$cancelrestore = optional_param('cancelrestore', false, PARAM_INT)
 Delete temp file when cancel restore.
if($usercandownload and
$cancelrestore and
confirm_sesskey()) 
$huburl = optional_param('huburl', false, PARAM_URL)
 Download.
 $download = optional_param('download', -1, PARAM_INTEGER)
 $downloadcourseid = optional_param('downloadcourseid', '', PARAM_INTEGER)
 $coursefullname = optional_param('coursefullname', '', PARAM_ALPHANUMEXT)
 $backupsize = optional_param('backupsize', 0, PARAM_INT)
if($usercandownload and
$download!=-1 and!empty($downloadcourseid)
and confirm_sesskey()) 
$remove = optional_param('remove', '', PARAM_INTEGER)
 Remove community.
 $communityid = optional_param('communityid', '', PARAM_INTEGER)
if($remove!=-1 and!empty($communityid)
and confirm_sesskey()) 
$fromformdata ['coverage'] = optional_param('coverage', 'all', PARAM_TEXT)
 $fromformdata ['licence'] = optional_param('licence', 'all', PARAM_ALPHANUMEXT)
 $fromformdata ['subject'] = optional_param('subject', 'all', PARAM_ALPHANUMEXT)
 $fromformdata ['audience'] = optional_param('audience', 'all', PARAM_ALPHANUMEXT)
 $fromformdata ['language'] = optional_param('language', current_language(), PARAM_ALPHANUMEXT)
 $fromformdata ['educationallevel'] = optional_param('educationallevel', 'all', PARAM_ALPHANUMEXT)
 $fromformdata ['downloadable'] = optional_param('downloadable', 0, PARAM_ALPHANUM)
 $fromformdata ['orderby'] = optional_param('orderby', 'newest', PARAM_ALPHA)
 $fromformdata ['huburl'] = optional_param('huburl', HUB_MOODLEORGHUBURL, PARAM_URL)
 $fromformdata ['search'] = $search
 $fromformdata ['courseid'] = $courseid
 $hubselectorform = new community_hub_search_form('', $fromformdata)
 $courses = null
 if (optional_param('executesearch', 0, PARAM_INTEGER) and confirm_sesskey())
if(!empty($errormessage)) $commentedcourseids = array()
 $courseids = array()
 $courseimagenumbers = array()

Variable Documentation

$add = optional_param('add', -1, PARAM_INTEGER)

Check if the page has been called with trust argument.

Definition at line 70 of file communitycourse.php.

$backupsize = optional_param('backupsize', 0, PARAM_INT)

Definition at line 99 of file communitycourse.php.

if ($add!=-1 and $confirm and confirm_sesskey()) $cancelrestore = optional_param('cancelrestore', false, PARAM_INT)

Delete temp file when cancel restore.

Definition at line 87 of file communitycourse.php.

if (!empty($errormessage)) $commentedcourseids = array()

Definition at line 218 of file communitycourse.php.

$communityid = optional_param('communityid', '', PARAM_INTEGER)

Definition at line 129 of file communitycourse.php.

if (empty($usercansearch)) else if (!extension_loaded('xmlrpc')) if (!empty($notificationerror)) $communitymanager = new block_community_manager()

Definition at line 66 of file communitycourse.php.

$confirm = optional_param('confirmed', false, PARAM_INTEGER)

Definition at line 71 of file communitycourse.php.

$coursefullname = optional_param('coursefullname', '', PARAM_ALPHANUMEXT)

Definition at line 98 of file communitycourse.php.

Definition at line 36 of file communitycourse.php.

$courseids = array()

Definition at line 219 of file communitycourse.php.

$courseimagenumbers = array()

Definition at line 220 of file communitycourse.php.

$courses = null

Definition at line 154 of file communitycourse.php.

$download = optional_param('download', -1, PARAM_INTEGER)

Definition at line 96 of file communitycourse.php.

$downloadcourseid = optional_param('downloadcourseid', '', PARAM_INTEGER)

Definition at line 97 of file communitycourse.php.

if ($remove!=-1 and!empty($communityid) and confirm_sesskey()) $fromformdata['coverage'] = optional_param('coverage', 'all', PARAM_TEXT)

Definition at line 139 of file communitycourse.php.

$fromformdata['licence'] = optional_param('licence', 'all', PARAM_ALPHANUMEXT)

Definition at line 140 of file communitycourse.php.

$fromformdata['subject'] = optional_param('subject', 'all', PARAM_ALPHANUMEXT)

Definition at line 141 of file communitycourse.php.

$fromformdata['audience'] = optional_param('audience', 'all', PARAM_ALPHANUMEXT)

Definition at line 142 of file communitycourse.php.

$fromformdata['language'] = optional_param('language', current_language(), PARAM_ALPHANUMEXT)

Definition at line 143 of file communitycourse.php.

$fromformdata['educationallevel'] = optional_param('educationallevel', 'all', PARAM_ALPHANUMEXT)

Definition at line 144 of file communitycourse.php.

$fromformdata['downloadable'] = optional_param('downloadable', 0, PARAM_ALPHANUM)

Definition at line 145 of file communitycourse.php.

$fromformdata['orderby'] = optional_param('orderby', 'newest', PARAM_ALPHA)

Definition at line 146 of file communitycourse.php.

$fromformdata['huburl'] = optional_param('huburl', HUB_MOODLEORGHUBURL, PARAM_URL)

Definition at line 147 of file communitycourse.php.

$fromformdata['search'] = $search

Definition at line 148 of file communitycourse.php.

$fromformdata['courseid'] = $courseid

Definition at line 149 of file communitycourse.php.

$hubselectorform = new community_hub_search_form('', $fromformdata)

Definition at line 150 of file communitycourse.php.

if ($usercandownload and $cancelrestore and confirm_sesskey()) $huburl = optional_param('huburl', false, PARAM_URL)

Download.

Definition at line 95 of file communitycourse.php.

$parentcourse = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST)

Definition at line 37 of file communitycourse.php.

if ($usercandownload and $download!=-1 and!empty($downloadcourseid) and confirm_sesskey()) $remove = optional_param('remove', '', PARAM_INTEGER)

Remove community.

Definition at line 128 of file communitycourse.php.

$renderer = $PAGE->get_renderer('block_community')

Definition at line 67 of file communitycourse.php.

Definition at line 47 of file communitycourse.php.

$usercandownload = has_capability('moodle/community:download', $context)

Definition at line 51 of file communitycourse.php.

$usercansearch = has_capability('moodle/community:add', $context)

Definition at line 50 of file communitycourse.php.

if(!empty($courses))

Definition at line 155 of file communitycourse.php.

 All Data Structures Namespaces Files Functions Variables Enumerations