Stud.IP  jlu_3.3 Revision
AdmissionPriority Class Reference
Collaboration diagram for AdmissionPriority:
Collaboration graph

Static Public Member Functions

static getPriorities ($courseSetId)
 
static getPrioritiesByCourse ($courseSetId, $courseId)
 
static getPrioritiesByUser ($courseSetId, $userId)
 
static setPriority ($courseSetId, $userId, $courseId, $priority)
 
static unsetPriority ($courseSetId, $userId, $courseId)
 
static unsetAllPriorities ($courseSetId)
 
static unsetAllPrioritiesForUser ($courseSetId, $userId)
 
static getPrioritiesStats ($courseSetId)
 
static getPrioritiesCount ($courseSetId)
 
static getPrioritiesMax ($courseSetId)
 
static unsetAllPrioritiesForCourse ($course_id)
 

Member Function Documentation

◆ 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
StringcourseSetId
Returns
A 2-dimensional array containing all priorities.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
StringcourseSetId
StringcourseId
Returns
An array containing all priorities.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
StringcourseSetId
StringuserId
Returns
An array containing all priorities.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPrioritiesCount()

static getPrioritiesCount (   $courseSetId)
static

returns number of users with priorities for a set

Parameters
StringcourseSetId
Returns
integer
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPrioritiesMax()

static getPrioritiesMax (   $courseSetId)
static

return max chosen priority in set

Parameters
StringcourseSetId
Returns
integer
Here is the call graph for this function:

◆ getPrioritiesStats()

static getPrioritiesStats (   $courseSetId)
static

returns statistics of priority selection for a set

Parameters
StringcourseSetId
Returns
array stats grouped by course id
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPriority()

static setPriority (   $courseSetId,
  $userId,
  $courseId,
  $priority 
)
static

The given user sets a course in the given course set to priority x.

Parameters
StringcourseSetId
StringuserId
StringcourseId
intpriority
Returns
int Number of affected rows, if any.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unsetAllPriorities()

static unsetAllPriorities (   $courseSetId)
static

delete all priorities for one set

Parameters
StringcourseSetId
Returns
int Number of affected rows, if any.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unsetAllPrioritiesForCourse()

static unsetAllPrioritiesForCourse (   $course_id)
static

delete all priorities for one course

Parameters
Stringcourse Id
Returns
int Number of affected rows, if any.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unsetAllPrioritiesForUser()

static unsetAllPrioritiesForUser (   $courseSetId,
  $userId 
)
static

delete all priorities for one set and one user

Parameters
StringcourseSetId
StringuserId
Returns
int Number of affected rows, if any.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unsetPriority()

static unsetPriority (   $courseSetId,
  $userId,
  $courseId 
)
static

unset priority for given user,set and course reorder remaining priorities

Parameters
StringcourseSetId
StringuserId
StringcourseId
Returns
int Number of affected rows, if any.
Here is the call graph for this function:
Here is the caller graph for this function:

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