ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
5 include_once "Services/Object/classes/class.ilObjectLP.php";
6 
14 class ilCourseLP extends ilObjectLP
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 ?>