ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
class.ilCourseLP.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once "Services/Object/classes/class.ilObjectLP.php";
6
15{
16 public function getDefaultMode()
17 {
18 if($this->checkObjectives())
19 {
21 }
23 }
24
25 public function getValidModes()
26 {
27 if($this->checkObjectives())
28 {
30 }
31 return array(
35 );
36 }
37
38 public function getCurrentMode()
39 {
40 if($this->checkObjectives())
41 {
43 }
44 return parent::getCurrentMode();
45 }
46
47 protected function checkObjectives()
48 {
49 include_once "Modules/Course/classes/class.ilObjCourse.php";
51 {
52 return true;
53 }
54 return false;
55 }
56
57 public function getMembers($a_search = true)
58 {
59 include_once "Modules/Course/classes/class.ilCourseParticipants.php";
60 $member_obj = ilCourseParticipants::_getInstanceByObjId($this->obj_id);
61 return $member_obj->getMembers();
62 }
63}
64
65?>
const IL_CRS_VIEW_OBJECTIVE
getMembers($a_search=true)
static _getInstanceByObjId($a_obj_id)
Get singleton instance.