NAME

WeBWorK::ContentGenerator::Instructor - Abstract superclass for the Instructor tools, providing useful utility functions.

METHODS

Primary assignment methods

assignSetToUser($userID, $GlobalSet)

Assigns the given set and all problems contained therein to the given user. If the set (or any problems in the set) are already assigned to the user, a list of failure messages is returned.

unassignSetFromUser($userID, $setID, $problemID)

Unassigns the given set and all problems therein from the given user.

assignProblemToUser($userID, $GlobalProblem)

Assigns the given problem to the given user. If the problem is already assigned to the user, an error string is returned.

unassignProblemFromUser($userID, $setID, $problemID)

Unassigns the given problem from the given user.

Secondary assignment methods

assignSetToAllUsers($setID)

Assigns the set specified and all problems contained therein to all users in the course. This is more efficient than repeatedly calling assignSetToUser(). If any assignments fail, a list of failure messages is returned.

unassignSetFromAllUsers($setID)

Unassigns the specified sets and all problems contained therein from all users.

assignAllSetsToUser($userID)

Assigns all sets in the course and all problems contained therein to the specified user. This is more efficient than repeatedly calling assignSetToUser(). If any assignments fail, a list of failure messages is returned.

unassignAllSetsFromUser($userID)

Unassigns all sets and all problems contained therein from the specified user.

Utility assignment methods

assignSetsToUsers($setIDsRef, $userIDsRef)

Assign each of the given sets to each of the given users. If any assignments fail, a list of failure messages is returned.

unassignSetsFromUsers($setIDsRef, $userIDsRef)

Unassign each of the given sets from each of the given users.

assignProblemToAllSetUsers($GlobalProblem)

Assigns the problem specified to all users to whom the problem's set is assigned. If any assignments fail, a list of failure messages is returned.

Utility method for adding problems to a set

Utility methods

Methods for listing various types of files