ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Assignment types. More...
Public Member Functions | |
getAllIds () | |
Get all ids. More... | |
isValidId ($a_id) | |
Is valid id. More... | |
getAll () | |
Get all. More... | |
getAllActivated () | |
Get all activated. More... | |
getAllAllowed (ilObjExercise $exc) | |
Get all allowed types for an exercise for an exercise. More... | |
getById ($a_id) | |
Get type object by id. More... | |
getIdsForSubmissionType ($a_submission_type) | |
Get assignment type IDs for given submission type. More... | |
Static Public Member Functions | |
static | getInstance () |
Get instance. More... | |
Data Fields | |
const | STR_IDENTIFIER_PORTFOLIO = "prtf" |
Protected Member Functions | |
__construct (ilExerciseInternalService $service=null) | |
Constructor. More... | |
Protected Attributes | |
$service | |
Assignment types.
Gives information on available types and acts as factory to get assignment type objects.
Definition at line 12 of file class.ilExAssignmentTypes.php.
|
protected |
Constructor.
Definition at line 25 of file class.ilExAssignmentTypes.php.
References $DIC, and $service.
ilExAssignmentTypes::getAll | ( | ) |
Get all.
Definition at line 81 of file class.ilExAssignmentTypes.php.
References getAllIds(), and getById().
Referenced by getAllActivated().
ilExAssignmentTypes::getAllActivated | ( | ) |
Get all activated.
Definition at line 101 of file class.ilExAssignmentTypes.php.
References getAll(), and ilExAssignmentTypeInterface\isActive().
Referenced by getAllAllowed().
ilExAssignmentTypes::getAllAllowed | ( | ilObjExercise | $exc | ) |
Get all allowed types for an exercise for an exercise.
ilObjExercise | $exc |
Definition at line 114 of file class.ilExAssignmentTypes.php.
References getAllActivated(), and ilExAssignmentTypeInterface\usesTeams().
ilExAssignmentTypes::getAllIds | ( | ) |
Get all ids.
Definition at line 50 of file class.ilExAssignmentTypes.php.
References ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, ilExAssignment\TYPE_UPLOAD_TEAM, and ilExAssignment\TYPE_WIKI_TEAM.
Referenced by getAll(), getIdsForSubmissionType(), and isValidId().
ilExAssignmentTypes::getById | ( | $a_id | ) |
Get type object by id.
Centralized ID management is still an issue to be tackled in the future and caused by initial consts definition.
int | $a_id | type id |
Definition at line 137 of file class.ilExAssignmentTypes.php.
References ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, ilExAssignment\TYPE_UPLOAD_TEAM, and ilExAssignment\TYPE_WIKI_TEAM.
Referenced by getAll(), and getIdsForSubmissionType().
ilExAssignmentTypes::getIdsForSubmissionType | ( | $a_submission_type | ) |
Get assignment type IDs for given submission type.
int | $a_submission_type |
Definition at line 174 of file class.ilExAssignmentTypes.php.
References getAllIds(), and getById().
|
static |
Get instance.
Definition at line 39 of file class.ilExAssignmentTypes.php.
Referenced by ilAssignmentsTableGUI\__construct(), ilExcRepoObjAssignmentInfo\__construct(), ilExSubmission\__construct(), ilExerciseSubmissionTableGUI\__construct(), ilExAssignmentEditorGUI\__construct(), ilExAssignment\__construct(), ilWikiPageGUI\finalizeAssignment(), ilExSubmission\getAllAssignmentFiles(), ilExSubmission\getAssignmentFilesByUsers(), and ilExcRepoObjAssignmentInfo\getInfo().
ilExAssignmentTypes::isValidId | ( | $a_id | ) |
Is valid id.
int | $a_id |
Definition at line 68 of file class.ilExAssignmentTypes.php.
References getAllIds().
|
protected |
Definition at line 19 of file class.ilExAssignmentTypes.php.
Referenced by __construct().
const ilExAssignmentTypes::STR_IDENTIFIER_PORTFOLIO = "prtf" |
Definition at line 14 of file class.ilExAssignmentTypes.php.
Referenced by ilExAssTypePortfolio\getStringIdentifier().