ILIAS
Release_5_0_x_branch Revision 61816
|
class ilcourseobjective More...
Public Member Functions | |
ilCourseObjective (&$course_obj, $a_objective_id=0) | |
ilClone ($a_target_id, $a_copy_id) | |
clone objectives | |
setActive ($a_stat) | |
isActive () | |
setPasses ($a_passes) | |
getPasses () | |
arePassesLimited () | |
setTitle ($a_title) | |
getTitle () | |
setDescription ($a_description) | |
getDescription () | |
setObjectiveId ($a_objective_id) | |
getObjectiveId () | |
add () | |
update () | |
writePosition ($a_position) | |
write position | |
validate () | |
validate | |
delete () | |
moveUp () | |
moveDown () | |
__setPosition ($a_position) | |
__getPosition () | |
__setCreated ($a_created) | |
__getCreated () | |
__read () | |
__getOrderColumn () | |
__updateTop () | |
__getLastPosition () | |
_deleteAll ($course_id) |
Static Public Member Functions | |
static | _lookupContainerIdByObjectiveId ($a_objective_id) |
Get container of object. | |
static | _getCountObjectives ($a_obj_id, $a_activated_only=false) |
get count objectives | |
static | lookupMaxPasses ($a_objective_id) |
static | lookupObjectiveTitle ($a_objective_id) |
static | _getObjectiveIds ($course_id, $a_activated_only=false) |
Data Fields | |
$db = null | |
$course_obj = null | |
$objective_id = null |
Protected Attributes | |
$active = true | |
$passes = 0 |
class ilcourseobjective
Definition at line 13 of file class.ilCourseObjective.php.
ilCourseObjective::__getCreated | ( | ) |
Definition at line 387 of file class.ilCourseObjective.php.
ilCourseObjective::__getLastPosition | ( | ) |
Definition at line 451 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by add(), and moveDown().
ilCourseObjective::__getOrderColumn | ( | ) |
Definition at line 422 of file class.ilCourseObjective.php.
References ilContainer\SORT_ACTIVATION, ilContainer\SORT_MANUAL, and ilContainer\SORT_TITLE.
ilCourseObjective::__getPosition | ( | ) |
Definition at line 379 of file class.ilCourseObjective.php.
Referenced by __updateTop(), moveDown(), and moveUp().
ilCourseObjective::__read | ( | ) |
Definition at line 393 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, $row, __setCreated(), __setPosition(), DB_FETCHMODE_OBJECT, getObjectiveId(), setActive(), setDescription(), setObjectiveId(), setPasses(), and setTitle().
Referenced by ilCourseObjective(), moveDown(), and moveUp().
ilCourseObjective::__setCreated | ( | $a_created | ) |
Definition at line 383 of file class.ilCourseObjective.php.
Referenced by __read().
ilCourseObjective::__setPosition | ( | $a_position | ) |
Definition at line 375 of file class.ilCourseObjective.php.
Referenced by __read().
ilCourseObjective::__updateTop | ( | ) |
Definition at line 438 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, and __getPosition().
ilCourseObjective::_deleteAll | ( | $course_id | ) |
Definition at line 496 of file class.ilCourseObjective.php.
References $ilDB, $in, $query, $res, _getObjectiveIds(), and ilLPStatusWrapper\_refreshStatus().
Referenced by ilObjCourse\delete().
|
static |
get count objectives
public
int | obj_id |
Definition at line 70 of file class.ilCourseObjective.php.
References _getObjectiveIds().
Referenced by ilLOEditorStatus\getObjectivesStatus(), and ilObjCourseGUI\getTabs().
|
static |
Definition at line 468 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLOEditorStatus\__construct(), _deleteAll(), ilCourseObjectiveResult\_getAccomplished(), _getCountObjectives(), ilLPStatusObjectives\_getStatusInfo(), ilCourseObjectiveResult\_getSuggested(), ilLOEditorGUI\activateObjectives(), ilContainerObjectiveGUI\buildObjectiveMap(), ilLOEditorGUI\deactivateObjectives(), ilLPStatusObjectives\determineStatus(), ilLOEditorStatus\getObjectivesStatus(), ilCourseObjectiveResult\getStatus(), ilTrQuery\getUserObjectiveMatrix(), ilCourseObjectivesGUI\listObjectives(), ilLOEditorGUI\listObjectives(), ilCourseObjectivesGUI\questionOverview(), ilLPCollectionOfObjectives\read(), ilCourseObjectiveResult\readStatus(), ilObjCourseGUI\redirectLocToTestObject(), ilCourseObjectiveResult\reset(), and ilContainerObjectiveGUI\showObjectives().
|
static |
Get container of object.
public
int | objective id |
Definition at line 47 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilCourseObjectiveMaterials\__read(), ilCourseObjectiveQuestion\__read(), and ilWebAccessChecker\checkAccessLearningObjectivePage().
ilCourseObjective::add | ( | ) |
Definition at line 211 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, __getLastPosition(), ilLPStatusWrapper\_refreshStatus(), getDescription(), getPasses(), getTitle(), and isActive().
ilCourseObjective::arePassesLimited | ( | ) |
Definition at line 180 of file class.ilCourseObjective.php.
ilCourseObjective::delete | ( | ) |
Definition at line 285 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, ilLPStatusWrapper\_refreshStatus(), and getObjectiveId().
ilCourseObjective::getDescription | ( | ) |
Definition at line 198 of file class.ilCourseObjective.php.
Referenced by add(), ilContainerObjectiveGUI\buildAccordionTitle(), and update().
ilCourseObjective::getObjectiveId | ( | ) |
Definition at line 206 of file class.ilCourseObjective.php.
References $objective_id.
Referenced by __read(), ilContainerObjectiveGUI\buildAccordionTitle(), delete(), moveDown(), moveUp(), update(), and writePosition().
ilCourseObjective::getPasses | ( | ) |
Definition at line 175 of file class.ilCourseObjective.php.
References $passes.
Referenced by add(), and update().
ilCourseObjective::getTitle | ( | ) |
Definition at line 190 of file class.ilCourseObjective.php.
Referenced by add(), ilContainerObjectiveGUI\buildAccordionTitle(), update(), and validate().
ilCourseObjective::ilClone | ( | $a_target_id, | |
$a_copy_id | |||
) |
clone objectives
public
int | target id |
int | copy id |
Definition at line 113 of file class.ilCourseObjective.php.
References $ilLog, $objective_id, $query, $res, $row, DB_FETCHMODE_OBJECT, ilObjectFactory\getInstanceByRefId(), and ilCourseObjective().
ilCourseObjective::ilCourseObjective | ( | & | $course_obj, |
$a_objective_id = 0 |
|||
) |
Definition at line 25 of file class.ilCourseObjective.php.
References $course_obj, $ilDB, and __read().
Referenced by ilClone().
ilCourseObjective::isActive | ( | ) |
Definition at line 165 of file class.ilCourseObjective.php.
References $active.
Referenced by add(), and update().
|
static |
Definition at line 75 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilContainerObjectiveGUI\addItemDetails(), ilLOEditorStatus\checkNumberOfTries(), and ilLOUtils\lookupMaxAttempts().
|
static |
Definition at line 89 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLOEditorGUI\executeCommand(), ilPortfolioPageGUI\getCoursesOfUser(), ilTrMatrixTableGUI\getItems(), and ilContainerObjectiveGUI\renderTest().
ilCourseObjective::moveDown | ( | ) |
Definition at line 343 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, __getLastPosition(), __getPosition(), __read(), and getObjectiveId().
ilCourseObjective::moveUp | ( | ) |
Definition at line 312 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, __getPosition(), __read(), and getObjectiveId().
ilCourseObjective::setActive | ( | $a_stat | ) |
Definition at line 160 of file class.ilCourseObjective.php.
Referenced by __read().
ilCourseObjective::setDescription | ( | $a_description | ) |
Definition at line 194 of file class.ilCourseObjective.php.
Referenced by __read().
ilCourseObjective::setObjectiveId | ( | $a_objective_id | ) |
Definition at line 202 of file class.ilCourseObjective.php.
Referenced by __read().
ilCourseObjective::setPasses | ( | $a_passes | ) |
Definition at line 170 of file class.ilCourseObjective.php.
Referenced by __read().
ilCourseObjective::setTitle | ( | $a_title | ) |
Definition at line 186 of file class.ilCourseObjective.php.
Referenced by __read().
ilCourseObjective::update | ( | ) |
Definition at line 238 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, getDescription(), getObjectiveId(), getPasses(), getTitle(), and isActive().
ilCourseObjective::validate | ( | ) |
validate
public
@return |
Definition at line 280 of file class.ilCourseObjective.php.
References getTitle().
ilCourseObjective::writePosition | ( | $a_position | ) |
write position
public
int | new position |
Definition at line 263 of file class.ilCourseObjective.php.
References $ilDB, $query, $res, and getObjectiveId().
|
protected |
Definition at line 21 of file class.ilCourseObjective.php.
Referenced by isActive().
ilCourseObjective::$course_obj = null |
Definition at line 17 of file class.ilCourseObjective.php.
Referenced by ilCourseObjective().
ilCourseObjective::$db = null |
Definition at line 15 of file class.ilCourseObjective.php.
ilCourseObjective::$objective_id = null |
Definition at line 18 of file class.ilCourseObjective.php.
Referenced by getObjectiveId(), and ilClone().
|
protected |
Definition at line 22 of file class.ilCourseObjective.php.
Referenced by getPasses().