| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
class ilCourseObjectiveMaterials More...
 Collaboration diagram for ilCourseObjectiveMaterials:
 Collaboration diagram for ilCourseObjectiveMaterials:| Public Member Functions | |
| __construct ($a_objective_id) | |
| cloneDependencies ($a_new_objective, $a_copy_id) | |
| clone objective materials | |
| getMaterials () | |
| getChapters () | |
| getLM ($lm_id) | |
| getObjectiveId () | |
| setLMRefId ($a_ref_id) | |
| getLMRefId () | |
| setLMObjId ($a_obj_id) | |
| getLMObjId () | |
| setType ($a_type) | |
| getType () | |
| isAssigned ($a_ref_id) | |
| Check if material is assigned. | |
| isChapterAssigned ($a_ref_id, $a_obj_id) | |
| Check if chapter is assigned. | |
| checkExists () | |
| add () | |
| delete ($lm_id) | |
| deleteAll () | |
| __read () | |
| Static Public Member Functions | |
| static | _getAssignedMaterials ($a_objective_id) | 
| get assigned materials | |
| static | _getAssignableMaterials ($a_container_id) | 
| Get an array of course material ids that can be assigned to learning objectives No tst, fold and grp. | |
| static | _getAllAssignedMaterials ($a_container_id) | 
| Get all assigned materials. | |
| Data Fields | |
| $db = null | |
| $objective_id = null | |
| $lms | |
class ilCourseObjectiveMaterials
Definition at line 33 of file class.ilCourseObjectiveMaterials.php.
| ilCourseObjectiveMaterials::__construct | ( | $a_objective_id | ) | 
Definition at line 40 of file class.ilCourseObjectiveMaterials.php.
References __read().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCourseObjectiveMaterials::__read | ( | ) | 
Definition at line 382 of file class.ilCourseObjectiveMaterials.php.
References $query, $res, $row, ilObject\_getAllReferences(), ilCourseObjective\_lookupContainerIdByObjectiveId(), DB_FETCHMODE_OBJECT, and getObjectiveId().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get all assigned materials.
public
| in | 
Definition at line 200 of file class.ilCourseObjectiveMaterials.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilCourseObjectivePresentationGUI\__getOtherResources(), and ilCourseObjectivePresentationGUI\__showLearningMaterials().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get an array of course material ids that can be assigned to learning objectives No tst, fold and grp.
public
| int | obj id of course | 
Definition at line 163 of file class.ilCourseObjectiveMaterials.php.
References ilUtil\sortArray().
Referenced by ilCourseObjectivesGUI\materialAssignment().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
get assigned materials
public
| int | objective_id | 
Definition at line 137 of file class.ilCourseObjectiveMaterials.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilObjectActivation\getItemsByObjective().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCourseObjectiveMaterials::add | ( | ) | 
Definition at line 338 of file class.ilCourseObjectiveMaterials.php.
References $query, $res, getLMObjId(), getLMRefId(), getObjectiveId(), and getType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCourseObjectiveMaterials::checkExists | ( | ) | 
Definition at line 315 of file class.ilCourseObjectiveMaterials.php.
References $query, $res, getLMObjId(), getLMRefId(), and getObjectiveId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCourseObjectiveMaterials::cloneDependencies | ( | $a_new_objective, | |
| $a_copy_id | |||
| ) | 
clone objective materials
public
| int | source objective | 
| int | target objective | 
| int | copy id | 
Definition at line 60 of file class.ilCourseObjectiveMaterials.php.
References $ilLog, ilCopyWizardOptions\_getInstance(), and getMaterials().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCourseObjectiveMaterials::delete | ( | $lm_id | ) | 
| ilCourseObjectiveMaterials::deleteAll | ( | ) | 
Definition at line 371 of file class.ilCourseObjectiveMaterials.php.
References $query, $res, and getObjectiveId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCourseObjectiveMaterials::getChapters | ( | ) | 
Definition at line 224 of file class.ilCourseObjectiveMaterials.php.
| ilCourseObjectiveMaterials::getLM | ( | $lm_id | ) | 
Definition at line 240 of file class.ilCourseObjectiveMaterials.php.
| ilCourseObjectiveMaterials::getLMObjId | ( | ) | 
Definition at line 262 of file class.ilCourseObjectiveMaterials.php.
Referenced by add(), and checkExists().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCourseObjectiveMaterials::getLMRefId | ( | ) | 
Definition at line 254 of file class.ilCourseObjectiveMaterials.php.
Referenced by add(), and checkExists().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCourseObjectiveMaterials::getMaterials | ( | ) | 
Definition at line 219 of file class.ilCourseObjectiveMaterials.php.
Referenced by cloneDependencies().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCourseObjectiveMaterials::getObjectiveId | ( | ) | 
Definition at line 245 of file class.ilCourseObjectiveMaterials.php.
References $objective_id.
Referenced by __read(), add(), checkExists(), deleteAll(), isAssigned(), and isChapterAssigned().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCourseObjectiveMaterials::getType | ( | ) | 
Definition at line 270 of file class.ilCourseObjectiveMaterials.php.
Referenced by add().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCourseObjectiveMaterials::isAssigned | ( | $a_ref_id | ) | 
Check if material is assigned.
public
| int | ref id | 
Definition at line 283 of file class.ilCourseObjectiveMaterials.php.
References $query, $res, and getObjectiveId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCourseObjectiveMaterials::isChapterAssigned | ( | $a_ref_id, | |
| $a_obj_id | |||
| ) | 
Check if chapter is assigned.
public
| int | ref id | 
Definition at line 303 of file class.ilCourseObjectiveMaterials.php.
References $query, $res, and getObjectiveId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCourseObjectiveMaterials::setLMObjId | ( | $a_obj_id | ) | 
Definition at line 258 of file class.ilCourseObjectiveMaterials.php.
| ilCourseObjectiveMaterials::setLMRefId | ( | $a_ref_id | ) | 
Definition at line 250 of file class.ilCourseObjectiveMaterials.php.
| ilCourseObjectiveMaterials::setType | ( | $a_type | ) | 
Definition at line 266 of file class.ilCourseObjectiveMaterials.php.
| ilCourseObjectiveMaterials::$db = null | 
Definition at line 35 of file class.ilCourseObjectiveMaterials.php.
| ilCourseObjectiveMaterials::$lms | 
Definition at line 38 of file class.ilCourseObjectiveMaterials.php.
| ilCourseObjectiveMaterials::$objective_id = null | 
Definition at line 37 of file class.ilCourseObjectiveMaterials.php.
Referenced by getObjectiveId().