ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilStudyProgramme. More...
Public Member Functions | |
getObjId () | |
Get the id of the study program. More... | |
getSubtypeId () | |
Return the meta-data subtype id. More... | |
setSubtypeId ($subtype_id) | |
Sets the meta-data type id. More... | |
getLastChange () | |
Get the timestamp of the last change on this program or a sub program. More... | |
updateLastChange () | |
Update the last change timestamp to the current time. More... | |
setLastChange (ilDateTime $a_timestamp) | |
Set the last change timestamp to the given time. More... | |
setPoints ($a_points) | |
Set the amount of points. More... | |
getPoints () | |
Get the amount of points. More... | |
setLPMode ($a_mode) | |
Set the lp mode. More... | |
getLPMode () | |
Get the lp mode. More... | |
setStatus ($a_status) | |
Set the status of the node. More... | |
getStatus () | |
Get the status. More... | |
Public Member Functions inherited from ActiveRecord | |
getArConnector () | |
getArFieldList () | |
getConnectorContainerName () | |
setConnectorContainerName ($connector_container_name) | |
getPrimaryFieldValue () | |
setPrimaryFieldValue ($value) | |
__construct ($primary_key=0, arConnector $connector=null) | |
storeObjectToCache () | |
__getConvertedDateFieldsAsArray ($format=null) | |
__asCsv ($separator=';', $header=false) | |
__asArray () | |
__asStdClass () | |
__asSerializedObject () | |
buildFromArray (array $array) | |
fixDateField ($field_name, $value) | |
sleep ($field_name) | |
wakeUp ($field_name, $field_value) | |
getArrayForDb () | |
getArrayForConnector () | |
installConnector () | |
store () | |
save () | |
create () | |
copy ($new_id=0) | |
afterObjectLoad () | |
read () | |
update () | |
delete () | |
__call ($name, $arguments) | |
Static Public Member Functions | |
static | returnDbTableName () |
static | createForObject (ilObject $a_object) |
Create new study program settings for an object. More... | |
Static Public Member Functions inherited from ActiveRecord | |
static | returnDbTableName () |
static | installDB () |
static | renameDBField ($old_name, $new_name) |
static | tableExists () |
static | fieldExists ($field_name) |
static | removeDBField ($field_name) |
static | updateDB () |
static | resetDB () |
static | truncateDB () |
static | flushDB () |
static | preloadObjects () |
static | additionalParams (array $additional_params) |
static | findOrFail ($primary_key, array $add_constructor_args=array()) |
Tries to find the object and throws an Exception if object is not found, instead of returning null. More... | |
static | findOrGetInstance ($primary_key, array $add_constructor_args=array()) |
static | where ($where, $operator=null) |
static | innerjoinAR (ActiveRecord $ar, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
static | innerjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
static | leftjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
static | orderBy ($orderBy, $orderDirection='ASC') |
static | dateFormat ($date_format='d.m.Y - H:i:s') |
static | limit ($start, $end) |
static | affectedRows () |
static | count () |
static | get () |
static | debug () |
static | first () |
static | getCollection () |
static | last () |
static | getFirstFromLastQuery () |
static | connector (arConnector $connector) |
static | raw ($set_raw=true) |
static | getArray ($key=null, $values=null) |
static | _toCamelCase ($str, $capitalise_first_char=false) |
Data Fields | |
const | MODE_UNDEFINED = 0 |
const | MODE_POINTS = 1 |
const | MODE_LP_COMPLETED = 2 |
const | STATUS_DRAFT = 10 |
const | STATUS_ACTIVE = 20 |
const | STATUS_OUTDATED = 30 |
const | DEFAULT_POINTS = 100 |
const | DEFAULT_SUBTYPE = 0 |
Data Fields inherited from ActiveRecord | |
const | ACTIVE_RECORD_VERSION = '2.0.7' |
Static Public Attributes | |
static | $MODES |
static | $STATUS |
Protected Member Functions | |
setObjId ($a_id) | |
Protected Member Functions inherited from ActiveRecord | |
serializeToCSV ($field) | |
This method is called for every field of your instance if you use __asCsv. More... | |
installDatabase () | |
Protected Attributes | |
$obj_id | |
$last_change | |
$subtype_id | |
$points | |
$lp_mode | |
$status | |
Protected Attributes inherited from ActiveRecord | |
$ar_safe_read = true | |
$connector_container_name = '' | |
Additional Inherited Members | |
Static Protected Member Functions inherited from ActiveRecord | |
static | getCalledClass () |
static | fromCamelCase ($str) |
|
static |
Create new study program settings for an object.
Throws when object is no program object.
ilException |
Definition at line 148 of file class.ilStudyProgramme.php.
References ilObject\getId(), ilObject\getType(), and setStatus().
Referenced by ilObjStudyProgramme\createSettings().
ilStudyProgramme::getLastChange | ( | ) |
Get the timestamp of the last change on this program or a sub program.
Definition at line 207 of file class.ilStudyProgramme.php.
References IL_CAL_DATETIME.
Referenced by setLastChange().
ilStudyProgramme::getLPMode | ( | ) |
Get the lp mode.
Definition at line 294 of file class.ilStudyProgramme.php.
References $lp_mode.
ilStudyProgramme::getObjId | ( | ) |
Get the id of the study program.
Definition at line 179 of file class.ilStudyProgramme.php.
References $obj_id.
Referenced by ilStudyProgrammeAssignment\createFor(), and ilStudyProgrammeProgress\createFor().
ilStudyProgramme::getPoints | ( | ) |
Get the amount of points.
Definition at line 266 of file class.ilStudyProgramme.php.
References $points.
Referenced by ilStudyProgrammeProgress\createFor().
ilStudyProgramme::getStatus | ( | ) |
Get the status.
Definition at line 323 of file class.ilStudyProgramme.php.
References $status.
ilStudyProgramme::getSubtypeId | ( | ) |
Return the meta-data subtype id.
Definition at line 188 of file class.ilStudyProgramme.php.
References $subtype_id.
|
static |
Definition at line 58 of file class.ilStudyProgramme.php.
Referenced by ilObjStudyProgrammeTest\testDeleteRemovesEntriesInPrgSettings().
ilStudyProgramme::setLastChange | ( | ilDateTime | $a_timestamp | ) |
Set the last change timestamp to the given time.
Throws when given time is smaller then current timestamp since that is logically impossible.
Definition at line 229 of file class.ilStudyProgramme.php.
References ilDateTime\_before(), ilDateTime\get(), getLastChange(), and IL_CAL_DATETIME.
Referenced by updateLastChange().
ilStudyProgramme::setLPMode | ( | $a_mode | ) |
Set the lp mode.
Throws when program is not in draft status.
integer | $a_mode | - one of self::$MODES |
Definition at line 278 of file class.ilStudyProgramme.php.
References updateLastChange().
|
protected |
Definition at line 169 of file class.ilStudyProgramme.php.
ilStudyProgramme::setPoints | ( | $a_points | ) |
Set the amount of points.
integer | $a_points | - larger than zero |
ilException |
Definition at line 249 of file class.ilStudyProgramme.php.
References updateLastChange().
ilStudyProgramme::setStatus | ( | $a_status | ) |
Set the status of the node.
TODO: Should this throw, when one wants to go back in lifecycle? Maybe getting back to draft needs to be forbidden only?
integer | $a_status | - one of self::$STATUS |
Definition at line 307 of file class.ilStudyProgramme.php.
References updateLastChange().
Referenced by createForObject().
ilStudyProgramme::setSubtypeId | ( | $subtype_id | ) |
Sets the meta-data type id.
int | $subtype_id |
Definition at line 198 of file class.ilStudyProgramme.php.
References $subtype_id.
ilStudyProgramme::updateLastChange | ( | ) |
Update the last change timestamp to the current time.
Definition at line 216 of file class.ilStudyProgramme.php.
References IL_CAL_DATETIME, ilUtil\now(), and setLastChange().
Referenced by setLPMode(), setPoints(), and setStatus().
|
protected |
Definition at line 85 of file class.ilStudyProgramme.php.
|
protected |
Definition at line 125 of file class.ilStudyProgramme.php.
Referenced by getLPMode().
|
static |
Definition at line 28 of file class.ilStudyProgramme.php.
|
protected |
Definition at line 73 of file class.ilStudyProgramme.php.
Referenced by getObjId().
|
protected |
Definition at line 113 of file class.ilStudyProgramme.php.
Referenced by getPoints().
|
static |
Definition at line 45 of file class.ilStudyProgramme.php.
|
protected |
Definition at line 137 of file class.ilStudyProgramme.php.
Referenced by getStatus().
|
protected |
Definition at line 99 of file class.ilStudyProgramme.php.
Referenced by getSubtypeId(), and setSubtypeId().
const ilStudyProgramme::DEFAULT_POINTS = 100 |
Definition at line 52 of file class.ilStudyProgramme.php.
Referenced by ilObjStudyProgrammeTest\testApplyToSubTreeNodes(), ilStudyProgrammeUserProgressTest\testCanBeCompleted2(), ilStudyProgrammeUserProgressTest\testCanBeCompleted3(), ilStudyProgrammeUserProgressTest\testCompletionOnDeeplyNestedProgresses(), ilStudyProgrammeUserProgressTest\testExplicitPointUpdate1(), ilStudyProgrammeUserProgressTest\testExplicitPointUpdate2(), ilStudyProgrammeUserProgressTest\testIndividualRequiredPoints(), ilStudyProgrammeUserProgressTest\testMarkAccredited(), ilStudyProgrammeUserProgressTest\testMaximimPossibleAmountOfPoints1(), ilStudyProgrammeUserProgressTest\testMaximimPossibleAmountOfPoints2(), ilStudyProgrammeUserProgressTest\testNoImplicitPointUpdate(), and ilStudyProgrammeUserProgressTest\testNoUpdateOnModifiedNodes().
const ilStudyProgramme::DEFAULT_SUBTYPE = 0 |
Definition at line 53 of file class.ilStudyProgramme.php.
const ilStudyProgramme::MODE_LP_COMPLETED = 2 |
Definition at line 26 of file class.ilStudyProgramme.php.
Referenced by ilObjStudyProgramme\addLeaf(), ilObjStudyProgramme\addNode(), ilObjStudyProgramme\adjustLPMode(), ilStudyProgrammeUserProgress\canBeCompleted(), ilStudyProgrammeUserProgress\getChildrenProgress(), ilObjStudyProgramme\getCreatableSubObjects(), ilStudyProgrammeUserProgress\getMaximumPossibleAmountOfPoints(), ilObjStudyProgramme\nodeInserted(), ilStudyProgrammeUserProgress\setLPCompleted(), ilObjStudyProgramme\setProgressesCompletedIfParentIsProgrammeInLPCompletedMode(), ilObjStudyProgrammeTest\testAddLeaf(), and ilStudyProgrammeUserProgress\updateStatus().
const ilStudyProgramme::MODE_POINTS = 1 |
Definition at line 23 of file class.ilStudyProgramme.php.
Referenced by ilObjStudyProgramme\adjustLPMode(), ilObjStudyProgramme\getCreatableSubObjects(), ilObjStudyProgramme\nodeInserted(), and ilObjStudyProgrammeTest\testAddNode().
const ilStudyProgramme::MODE_UNDEFINED = 0 |
Definition at line 19 of file class.ilStudyProgramme.php.
Referenced by ilObjStudyProgramme\adjustLPMode(), and ilObjStudyProgramme\getCreatableSubObjects().
const ilStudyProgramme::STATUS_ACTIVE = 20 |
Definition at line 40 of file class.ilStudyProgramme.php.
Referenced by ilObjStudyProgramme\assignUser(), ilObjStudyProgrammeSettingsGUI\getStatusOptions(), ilObjStudyProgramme\isActive(), ilStudyProgrammeLPTest\setAllNodesActive(), ilStudyProgrammeUserProgressTest\setAllNodesActive(), ilStudyProgrammeProgressCalculationTest\setUp(), ilStudyProgrammeEventsTest\setUp(), ilStudyProgrammeProgressCalculationTest\setUpNodes(), ilStudyProgrammeUserProgressTest\testCanBeCompleted3(), ilObjStudyProgrammeTest\testCanRemoveNodeWithNotRelevantProgress(), ilObjStudyProgrammeTest\testCantRemoveNodeWithRelevantProgress(), ilStudyProgrammeUserProgressTest\testCompletionOnDeeplyNestedProgresses(), ilStudyProgrammeUserAssignmentTest\testDeassignRemovesEntriesInPrgUsrAssignment(), ilStudyProgrammeUserAssignmentTest\testDeleteOfProgrammeRemovesEntriesInPrgUsrAssignment(), ilStudyProgrammeUserAssignmentTest\testGetAmountOfAssignments(), ilStudyProgrammeUserAssignmentTest\testGetAssignments(), ilStudyProgrammeUserAssignmentTest\testGetAssignmentsOf(), ilStudyProgrammeUserAssignmentTest\testHasAssignmentOf(), ilStudyProgrammeLPTest\testInitialLPDraft(), ilStudyProgrammeUserProgressTest\testInitialProgressDraft(), ilStudyProgrammeLPTest\testInitialProgressOutdated(), ilStudyProgrammeUserProgressTest\testInitialProgressOutdated(), ilStudyProgrammeUserAssignmentTest\testRemoveAssignment1(), ilStudyProgrammeUserAssignmentTest\testRemoveAssignment2(), ilStudyProgrammeUserAssignmentTest\testRemoveOnRootNodeOnly1(), ilStudyProgrammeUserAssignmentTest\testRemoveOnRootNodeOnly2(), ilObjStudyProgrammeTest\testSettings(), ilStudyProgrammeUserAssignmentTest\testUserId(), and ilStudyProgrammeUserProgress\updateFromProgramNode().
const ilStudyProgramme::STATUS_DRAFT = 10 |
Definition at line 38 of file class.ilStudyProgramme.php.
Referenced by ilStudyProgrammeIndividualPlanTableGUI\fillRow(), ilObjStudyProgrammeSettingsGUI\getStatusOptions(), ilObjStudyProgrammeTest\testDefaults(), ilStudyProgrammeLPTest\testInitialLPDraft(), ilStudyProgrammeUserProgressTest\testInitialProgressDraft(), and ilStudyProgrammeUserAssignmentTest\testNoAssignmentWhenDraft().
const ilStudyProgramme::STATUS_OUTDATED = 30 |
Definition at line 43 of file class.ilStudyProgramme.php.
Referenced by ilStudyProgrammeIndividualPlanTableGUI\fillRow(), ilObjStudyProgrammeSettingsGUI\getStatusOptions(), ilStudyProgrammeIndividualPlanProgressListGUI\getTitleForItem(), ilStudyProgrammeUserProgress\markAccredited(), ilObjStudyProgrammeTest\testCanRemoveNodeWithNotRelevantProgress(), ilStudyProgrammeLPTest\testInitialProgressOutdated(), ilStudyProgrammeUserProgressTest\testInitialProgressOutdated(), ilStudyProgrammeUserAssignmentTest\testNoAssignmentWhenOutdated(), and ilStudyProgrammeUserProgressTest\testOutdatedNodesCantBeSetToRelevant().