cohort_support extends facade
Facade for local_middag\framework\support\moodle\cohort_support.
Tags
Table of Contents
Methods
- create_cohort() : void
- get_all() : array<string|int, mixed>
- get_cohorts() : array<string|int, mixed>
- get_cohorts_with_total() : array<string|int, mixed>
- get_facade_accessor() : string
- Return the service accessor key for this facade.
Methods
create_cohort()
public
static create_cohort(string $name, string $idnumber) : void
Parameters
- $name : string
- $idnumber : string
get_all()
public
static get_all() : array<string|int, mixed>
Return values
array<string|int, mixed>get_cohorts()
public
static get_cohorts(int $contextid[, int $page = = '0' ][, int $perpage = = '25' ][, string $search = = '\'\'' ]) : array<string|int, mixed>
Parameters
- $contextid : int
- $page : int = = '0'
- $perpage : int = = '25'
- $search : string = = '\'\''
Return values
array<string|int, mixed>get_cohorts_with_total()
public
static get_cohorts_with_total(int $contextid[, int $page = = '0' ][, int $perpage = = '25' ][, string $search = = '\'\'' ]) : array<string|int, mixed>
Parameters
- $contextid : int
- $page : int = = '0'
- $perpage : int = = '25'
- $search : string = = '\'\''
Return values
array<string|int, mixed>get_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string