util
Table of Contents
Methods
-
check_access()
: void
-
check_cohorts()
: void
-
course_completion()
: bool
-
create_cohort()
: void
-
get_courses()
: array<int, object>
-
has_access()
: bool
-
is_compatibility()
: bool
-
migrate()
: void
-
viewurl()
: moodle_url
check_access()
public
static check_access() : void
check_cohorts()
public
static check_cohorts() : void
course_completion()
public
static course_completion(mixed $contextid[, mixed $userid = false ]) : bool
Parameters
-
$contextid
: mixed
-
-
$userid
: mixed
= false
-
create_cohort()
public
static create_cohort(mixed $name, mixed $idnumber) : void
Parameters
-
$name
: mixed
-
-
$idnumber
: mixed
-
get_courses()
public
static get_courses(mixed $idnumber[, mixed $onlyvisible = true ][, mixed $enrolavailable = false ]) : array<int, object>
Parameters
-
$idnumber
: mixed
-
-
$onlyvisible
: mixed
= true
-
-
$enrolavailable
: mixed
= false
-
Return values
array<int, object>
has_access()
public
static has_access(mixed $trilhaid, mixed $userid) : bool
Parameters
-
$trilhaid
: mixed
-
-
$userid
: mixed
-
is_compatibility()
public
static is_compatibility(mixed $itemidnumber, mixed $courseidnumber) : bool
Parameters
-
$itemidnumber
: mixed
-
-
$courseidnumber
: mixed
-
migrate()
public
static migrate() : void
viewurl()
public
static viewurl() : moodle_url