◆ getPriorities()
| static getPriorities |
( |
|
$courseSetId | ) |
|
|
static |
Get all priorities for the given course set. The priorities are stored in a 2-dimensional array in the form priority[user_id][course_id] = x.
- Parameters
-
- Returns
- A 2-dimensional array containing all priorities.
◆ getPrioritiesByCourse()
| static getPrioritiesByCourse |
( |
|
$courseSetId, |
|
|
|
$courseId |
|
) |
| |
|
static |
Get all priorities for the given course in the given course set. The priorities are stored in an array in the form priority[user_id] = x.
- Parameters
-
| String | courseSetId |
| String | courseId |
- Returns
- An array containing all priorities.
◆ getPrioritiesByUser()
| static getPrioritiesByUser |
( |
|
$courseSetId, |
|
|
|
$userId |
|
) |
| |
|
static |
Get all priorities the given user has set in the given course set. The priorities are stored in an array in the form priority[course_id] = x.
- Parameters
-
| String | courseSetId |
| String | userId |
- Returns
- An array containing all priorities.
◆ getPrioritiesCount()
| static getPrioritiesCount |
( |
|
$courseSetId | ) |
|
|
static |
returns number of users with priorities for a set
- Parameters
-
- Returns
- integer
◆ getPrioritiesMax()
| static getPrioritiesMax |
( |
|
$courseSetId | ) |
|
|
static |
return max chosen priority in set
- Parameters
-
- Returns
- integer
◆ getPrioritiesStats()
| static getPrioritiesStats |
( |
|
$courseSetId | ) |
|
|
static |
returns statistics of priority selection for a set
- Parameters
-
- Returns
- array stats grouped by course id
◆ setPriority()
| static setPriority |
( |
|
$courseSetId, |
|
|
|
$userId, |
|
|
|
$courseId, |
|
|
|
$priority |
|
) |
| |
|
static |
The given user sets a course in the given course set to priority x.
- Parameters
-
| String | courseSetId |
| String | userId |
| String | courseId |
| int | priority |
- Returns
- int Number of affected rows, if any.
◆ unsetAllPriorities()
| static unsetAllPriorities |
( |
|
$courseSetId | ) |
|
|
static |
delete all priorities for one set
- Parameters
-
- Returns
- int Number of affected rows, if any.
◆ unsetAllPrioritiesForCourse()
| static unsetAllPrioritiesForCourse |
( |
|
$course_id | ) |
|
|
static |
delete all priorities for one course
- Parameters
-
- Returns
- int Number of affected rows, if any.
◆ unsetAllPrioritiesForUser()
| static unsetAllPrioritiesForUser |
( |
|
$courseSetId, |
|
|
|
$userId |
|
) |
| |
|
static |
delete all priorities for one set and one user
- Parameters
-
| String | courseSetId |
| String | userId |
- Returns
- int Number of affected rows, if any.
◆ unsetPriority()
| static unsetPriority |
( |
|
$courseSetId, |
|
|
|
$userId, |
|
|
|
$courseId |
|
) |
| |
|
static |
unset priority for given user,set and course reorder remaining priorities
- Parameters
-
| String | courseSetId |
| String | userId |
| String | courseId |
- Returns
- int Number of affected rows, if any.
The documentation for this class was generated from the following file: