Stud.IP  5.4
Feedback Class Reference

Static Public Member Functions

static getHTML (string $range_id, string $range_type)
 
static isActivated (string $course_id=null)
 
static hasAdminPerm ($course_id, string $user_id=null)
 
static hasCreatePerm ($course_id, string $user_id=null)
 
static hasRangeAccess ($range_id, $range_type, string $user_id=null)
 

Detailed Description

Member Function Documentation

◆ 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_idthe course
string$user_idoptional; 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_idthe course
string$user_idoptional; 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_idoptional; 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_idoptional; use this course_id instead of the current context
Returns
boolean

The documentation for this class was generated from the following file: