◆ getHTML()
static getHTML |
( |
string |
$range_id, |
|
|
string |
$range_type |
|
) |
| |
|
static |
Returns the html code for feedback elements for a given range, if the module is activated within a course
- Returns
- string
◆ hasAdminPerm()
static hasAdminPerm |
( |
|
$course_id, |
|
|
string |
$user_id = null |
|
) |
| |
|
static |
Returns admin permission of current user within given course
- Parameters
-
string | $course_id | the course |
string | $user_id | optional; use this ID instead of $GLOBALS['user']->id |
- Returns
- boolean
(PHPMD.Superglobals)
◆ hasCreatePerm()
static hasCreatePerm |
( |
|
$course_id, |
|
|
string |
$user_id = null |
|
) |
| |
|
static |
Returns create permission of current user within given course
- Parameters
-
string | $course_id | the course |
string | $user_id | optional; use this ID instead of $GLOBALS['user']->id |
- Returns
- boolean
(PHPMD.Superglobals)
◆ hasRangeAccess()
static hasRangeAccess |
( |
|
$range_id, |
|
|
|
$range_type, |
|
|
string |
$user_id = null |
|
) |
| |
|
static |
Returns range access permission of current user for given range
- Parameters
-
string | $range_id | |
string | $range_type | |
string | $user_id | optional; use this ID instead of $GLOBALS['user']->id |
- Returns
- boolean
◆ isActivated()
static isActivated |
( |
string |
$course_id = null | ) |
|
|
static |
Returns activation status of the feedback module in currently active course
- Parameters
-
string | $course_id | optional; use this course_id instead of the current context |
- Returns
- boolean
The documentation for this class was generated from the following file: