ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
ilAICCCourse Class Reference
+ Inheritance diagram for ilAICCCourse:
+ Collaboration diagram for ilAICCCourse:

Public Member Functions

 __construct ($a_id=0)
 Constructor. More...
 
 getCourseCreator ()
 
 setCourseCreator ($a_course_creator)
 
 getCourseId ()
 
 setCourseId ($a_course_id)
 
 getCourseSystem ()
 
 setCourseSystem ($a_course_system)
 
 getCourseTitle ()
 
 setCourseTitle ($a_course_title)
 
 getLevel ()
 
 setLevel ($a_level)
 
 getMaxFieldsCst ()
 
 setMaxFieldsCst ($a_max_fields_cst)
 
 getMaxFieldsOrt ()
 
 setMaxFieldsOrt ($a_max_fields_ort)
 
 getTotalAUs ()
 
 setTotalAUs ($a_total_aus)
 
 getTotalBlocks ()
 
 setTotalBlocks ($a_total_blocks)
 
 getTotalComplexObj ()
 
 setTotalComplexObj ($a_total_complex_obj)
 
 getTotalObjectives ()
 
 setTotalObjectives ($a_total_objectives)
 
 getVersion ()
 
 setVersion ($a_version)
 
 getMaxNormal ()
 
 setMaxNormal ($a_max_normal)
 
 getDescription ()
 
 setDescription ($a_description)
 
 read ()
 
 create ()
 
 update ()
 
 delete ()
 
 getTrackingDataOfUser ($a_user_id=0)
 get tracking data of specified or current user More...
 
 insertTrackData ($a_lval, $a_rval, $a_obj_id)
 
- Public Member Functions inherited from ilAICCObject
 __construct ($a_id=0)
 Constructor. More...
 
 getId ()
 
 setId ($a_id)
 
 getType ()
 
 setType ($a_objType)
 
 getTitle ()
 
 setTitle ($a_title)
 
 getDescription ()
 
 setDescription ($a_description)
 
 getDeveloperId ()
 
 setDeveloperId ($a_developer_id)
 
 getSystemId ()
 
 setSystemId ($a_system_id)
 
 getALMId ()
 
 setALMId ($a_alm_id)
 
 prepForStore ($string)
 
 read ()
 
 create ()
 
 update ()
 
 delete ()
 
_getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class More...
 

Data Fields

 $course_creator
 AICC Item. More...
 
 $course_id
 
 $course_system
 
 $course_title
 
 $level
 
 $max_fields_cst
 
 $max_fields_ort
 
 $total_aus
 
 $total_blocks
 
 $total_complex_obj
 
 $total_objectives
 
 $version
 
 $max_normal
 
 $description
 
- Data Fields inherited from ilAICCObject
 $id
 
 $title
 
 $objType
 
 $alm_id
 
 $description
 
 $developer_id
 
 $system_id
 

Detailed Description

Definition at line 7 of file class.ilAICCCourse.php.

Constructor & Destructor Documentation

◆ __construct()

ilAICCCourse::__construct (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID public

Definition at line 39 of file class.ilAICCCourse.php.

References ilAICCObject\setType().

40  {
41  parent::__construct($a_id);
42  $this->setType("shd");
43  }
setType($a_objType)
+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilAICCCourse::create ( )

Definition at line 217 of file class.ilAICCCourse.php.

References $ilDB, array, getCourseCreator(), getCourseId(), getCourseSystem(), getCourseTitle(), getDescription(), ilAICCObject\getId(), getLevel(), getMaxFieldsCst(), getMaxFieldsOrt(), getMaxNormal(), getTotalAUs(), getTotalBlocks(), getTotalComplexObj(), getTotalObjectives(), and getVersion().

218  {
219  global $ilDB;
220 
221  parent::create();
222 
223  $ilDB->insert('aicc_course', array(
224  'obj_id' => array('integer', $this->getId()),
225  'course_creator' => array('text', $this->getCourseCreator()),
226  'course_id' => array('text', $this->getCourseId()),
227  'course_system' => array('text', $this->getCourseSystem()),
228  'course_title' => array('text', $this->getCourseTitle()),
229  'c_level' => array('text', $this->getLevel()),
230  'max_fields_cst' => array('integer', $this->getMaxFieldsCst()),
231  'max_fields_ort' => array('integer', $this->getMaxFieldsOrt()),
232  'total_aus' => array('integer', $this->getTotalAUs()),
233  'total_blocks' => array('integer', $this->getTotalBlocks()),
234  'total_complex_obj' => array('integer', $this->getTotalComplexObj()),
235  'total_objectives' => array('integer', $this->getTotalObjectives()),
236  'version' => array('text', $this->getVersion()),
237  'max_normal' => array('integer', $this->getMaxNormal()),
238  'description' => array('clob', $this->getDescription())
239  ));
240  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ delete()

ilAICCCourse::delete ( )

Definition at line 271 of file class.ilAICCCourse.php.

References $ilDB, $ilLog, ilLPStatusWrapper\_refreshStatus(), array, ilAICCObject\getALMId(), and ilAICCObject\getId().

272  {
273  global $ilDB, $ilLog;
274 
275  parent::delete();
276 
277  $statement = $ilDB->manipulateF(
278  'DELETE FROM aicc_course WHERE obj_id = %s',
279  array('integer'),
280  array($this->getId())
281  );
282 
283  $statement = $ilDB->manipulateF('
284  DELETE FROM scorm_tracking
285  WHERE sco_id = %s
286  AND obj_id = %s',
287  array('integer', 'integer'),
288  array($this->getId(),$this->getALMId())
289  );
290 
291  // update learning progress status
292  include_once("./Services/Tracking/classes/class.ilLPStatusWrapper.php");
294 
295  }
static _refreshStatus($a_obj_id, $a_users=null)
Set dirty.
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ getCourseCreator()

ilAICCCourse::getCourseCreator ( )

Definition at line 45 of file class.ilAICCCourse.php.

References $course_creator.

Referenced by create(), and update().

46  {
47  return $this->course_creator;
48  }
$course_creator
AICC Item.
+ Here is the caller graph for this function:

◆ getCourseId()

ilAICCCourse::getCourseId ( )

Definition at line 55 of file class.ilAICCCourse.php.

References $course_id.

Referenced by create(), and update().

56  {
57  return $this->course_id;
58  }
+ Here is the caller graph for this function:

◆ getCourseSystem()

ilAICCCourse::getCourseSystem ( )

Definition at line 65 of file class.ilAICCCourse.php.

References $course_system.

Referenced by create(), and update().

66  {
67  return $this->course_system;
68  }
+ Here is the caller graph for this function:

◆ getCourseTitle()

ilAICCCourse::getCourseTitle ( )

Definition at line 75 of file class.ilAICCCourse.php.

References $course_title.

Referenced by create(), and update().

76  {
77  return $this->course_title;
78  }
+ Here is the caller graph for this function:

◆ getDescription()

ilAICCCourse::getDescription ( )

Definition at line 179 of file class.ilAICCCourse.php.

References $description.

Referenced by create(), and update().

180  {
181  return $this->description;
182  }
+ Here is the caller graph for this function:

◆ getLevel()

ilAICCCourse::getLevel ( )

Definition at line 85 of file class.ilAICCCourse.php.

References $level.

Referenced by create(), and update().

86  {
87  return $this->level;
88  }
+ Here is the caller graph for this function:

◆ getMaxFieldsCst()

ilAICCCourse::getMaxFieldsCst ( )

Definition at line 95 of file class.ilAICCCourse.php.

References $max_fields_cst.

Referenced by create(), and update().

96  {
97  return $this->max_fields_cst;
98  }
+ Here is the caller graph for this function:

◆ getMaxFieldsOrt()

ilAICCCourse::getMaxFieldsOrt ( )

Definition at line 106 of file class.ilAICCCourse.php.

References $max_fields_ort.

Referenced by create(), and update().

107  {
108  return $this->max_fields_ort;
109  }
+ Here is the caller graph for this function:

◆ getMaxNormal()

ilAICCCourse::getMaxNormal ( )

Definition at line 169 of file class.ilAICCCourse.php.

References $max_normal.

Referenced by create(), and update().

170  {
171  return $this->max_normal;
172  }
+ Here is the caller graph for this function:

◆ getTotalAUs()

ilAICCCourse::getTotalAUs ( )

Definition at line 117 of file class.ilAICCCourse.php.

References $total_aus.

Referenced by create(), and update().

118  {
119  return $this->total_aus;
120  }
+ Here is the caller graph for this function:

◆ getTotalBlocks()

ilAICCCourse::getTotalBlocks ( )

Definition at line 127 of file class.ilAICCCourse.php.

References $total_blocks.

Referenced by create(), and update().

128  {
129  return $this->total_blocks;
130  }
+ Here is the caller graph for this function:

◆ getTotalComplexObj()

ilAICCCourse::getTotalComplexObj ( )

Definition at line 138 of file class.ilAICCCourse.php.

References $total_complex_obj.

Referenced by create(), and update().

139  {
141  }
+ Here is the caller graph for this function:

◆ getTotalObjectives()

ilAICCCourse::getTotalObjectives ( )

Definition at line 149 of file class.ilAICCCourse.php.

References $total_objectives.

Referenced by create(), and update().

150  {
152  }
+ Here is the caller graph for this function:

◆ getTrackingDataOfUser()

ilAICCCourse::getTrackingDataOfUser (   $a_user_id = 0)

get tracking data of specified or current user

Definition at line 302 of file class.ilAICCCourse.php.

References $ilDB, $ilUser, array, ilAICCObject\getALMId(), and ilAICCObject\getId().

303  {
304  global $ilDB, $ilUser;
305 
306  if ($a_user_id == 0)
307  {
308  $a_user_id = $ilUser->getId();
309  }
310 
311  $track_set = $ilDB->queryF('
312  SELECT lvalue, rvalue FROM scorm_tracking
313  WHERE sco_id = %s
314  AND user_id = %s
315  AND obj_id = %s',
316  array('integer', 'integer', 'integer'),
317  array($this->getId(), $a_user_id, $this->getALMId())
318  );
319  $trdata = array();
320  while ($track_rec = $ilDB->fetchAssoc($track_set))
321  {
322  $trdata[$track_rec["lvalue"]] = $track_rec["rvalue"];
323  }
324 
325  return $trdata;
326  }
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ getVersion()

ilAICCCourse::getVersion ( )

Definition at line 159 of file class.ilAICCCourse.php.

References $version.

Referenced by create(), and update().

160  {
161  return $this->version;
162  }
+ Here is the caller graph for this function:

◆ insertTrackData()

ilAICCCourse::insertTrackData (   $a_lval,
  $a_rval,
  $a_obj_id 
)

Definition at line 328 of file class.ilAICCCourse.php.

References ilObjSCORMTracking\_insertTrackData(), and ilAICCObject\getId().

329  {
330  require_once("./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php");
331  ilObjSCORMTracking::_insertTrackData($this->getId(), $a_lval, $a_rval, $a_obj_id);
332  }
static _insertTrackData($a_sahs_id, $a_lval, $a_rval, $a_obj_id)
+ Here is the call graph for this function:

◆ read()

ilAICCCourse::read ( )

Definition at line 189 of file class.ilAICCCourse.php.

References $ilDB, array, setCourseCreator(), setCourseId(), setCourseSystem(), setCourseTitle(), setDescription(), setLevel(), setMaxFieldsCst(), setMaxFieldsOrt(), setMaxNormal(), setTotalAUs(), setTotalBlocks(), setTotalComplexObj(), setTotalObjectives(), and setVersion().

190  {
191  global $ilDB;
192 
193  parent::read();
194 
195  $obj_set = $ilDB->queryF('SELECT * FROM aicc_course WHERE obj_id = %s',
196  array('integer'), array($this->id));
197 
198  while($obj_rec = $ilDB->fetchAssoc($obj_set))
199  {
200  $this->setCourseCreator($obj_rec["course_creator"]);
201  $this->setCourseId($obj_rec["course_id"]);
202  $this->setCourseSystem($obj_rec["course_system"]);
203  $this->setCourseTitle($obj_rec["course_title"]);
204  $this->setLevel($obj_rec["c_level"]);
205  $this->setMaxFieldsCst($obj_rec["max_fields_cst"]);
206  $this->setMaxFieldsOrt($obj_rec["max_fields_ort"]);
207  $this->setTotalAUs($obj_rec["total_aus"]);
208  $this->setTotalBlocks($obj_rec["total_blocks"]);
209  $this->setTotalComplexObj($obj_rec["total_complex_obj"]);
210  $this->setTotalObjectives($obj_rec["total_objectives"]);
211  $this->setVersion($obj_rec["version"]);
212  $this->setMaxNormal($obj_rec["max_normal"]);
213  $this->setDescription($obj_rec["description"]);
214  }
215  }
setTotalObjectives($a_total_objectives)
setCourseSystem($a_course_system)
setCourseId($a_course_id)
setTotalBlocks($a_total_blocks)
setTotalAUs($a_total_aus)
setCourseTitle($a_course_title)
setMaxNormal($a_max_normal)
setMaxFieldsOrt($a_max_fields_ort)
setDescription($a_description)
setTotalComplexObj($a_total_complex_obj)
Create styles array
The data for the language used.
setMaxFieldsCst($a_max_fields_cst)
global $ilDB
setCourseCreator($a_course_creator)
setVersion($a_version)
+ Here is the call graph for this function:

◆ setCourseCreator()

ilAICCCourse::setCourseCreator (   $a_course_creator)

Definition at line 50 of file class.ilAICCCourse.php.

Referenced by read().

51  {
52  $this->course_creator = $a_course_creator;
53  }
+ Here is the caller graph for this function:

◆ setCourseId()

ilAICCCourse::setCourseId (   $a_course_id)

Definition at line 60 of file class.ilAICCCourse.php.

Referenced by read().

61  {
62  $this->course_id = $a_course_id;
63  }
+ Here is the caller graph for this function:

◆ setCourseSystem()

ilAICCCourse::setCourseSystem (   $a_course_system)

Definition at line 70 of file class.ilAICCCourse.php.

Referenced by read().

71  {
72  $this->course_system = $a_course_system;
73  }
+ Here is the caller graph for this function:

◆ setCourseTitle()

ilAICCCourse::setCourseTitle (   $a_course_title)

Definition at line 80 of file class.ilAICCCourse.php.

Referenced by read().

81  {
82  $this->course_title = $a_course_title;
83  }
+ Here is the caller graph for this function:

◆ setDescription()

ilAICCCourse::setDescription (   $a_description)

Definition at line 184 of file class.ilAICCCourse.php.

Referenced by read().

185  {
186  $this->description = $a_description;
187  }
+ Here is the caller graph for this function:

◆ setLevel()

ilAICCCourse::setLevel (   $a_level)

Definition at line 90 of file class.ilAICCCourse.php.

Referenced by read().

91  {
92  $this->level = $a_level;
93  }
+ Here is the caller graph for this function:

◆ setMaxFieldsCst()

ilAICCCourse::setMaxFieldsCst (   $a_max_fields_cst)

Definition at line 100 of file class.ilAICCCourse.php.

Referenced by read().

101  {
102  if($a_max_fields_cst == NULL) $a_max_fields_cst=0;
103  $this->max_fields_cst = $a_max_fields_cst;
104  }
+ Here is the caller graph for this function:

◆ setMaxFieldsOrt()

ilAICCCourse::setMaxFieldsOrt (   $a_max_fields_ort)

Definition at line 111 of file class.ilAICCCourse.php.

Referenced by read().

112  {
113  if($a_max_fields_ort == NULL) $a_max_fields_ort=0;
114  $this->max_fields_ort = $a_max_fields_ort;
115  }
+ Here is the caller graph for this function:

◆ setMaxNormal()

ilAICCCourse::setMaxNormal (   $a_max_normal)

Definition at line 174 of file class.ilAICCCourse.php.

Referenced by read().

175  {
176  $this->max_normal = $a_max_normal;
177  }
+ Here is the caller graph for this function:

◆ setTotalAUs()

ilAICCCourse::setTotalAUs (   $a_total_aus)

Definition at line 122 of file class.ilAICCCourse.php.

Referenced by read().

123  {
124  $this->total_aus = $a_total_aus;
125  }
+ Here is the caller graph for this function:

◆ setTotalBlocks()

ilAICCCourse::setTotalBlocks (   $a_total_blocks)

Definition at line 132 of file class.ilAICCCourse.php.

Referenced by read().

133  {
134 
135  $this->total_blocks = $a_total_blocks;
136  }
+ Here is the caller graph for this function:

◆ setTotalComplexObj()

ilAICCCourse::setTotalComplexObj (   $a_total_complex_obj)

Definition at line 143 of file class.ilAICCCourse.php.

Referenced by read().

144  {
145  if($a_total_complex_obj == NULL) $a_total_complex_obj=0;
146  $this->total_complex_obj = $a_total_complex_obj;
147  }
+ Here is the caller graph for this function:

◆ setTotalObjectives()

ilAICCCourse::setTotalObjectives (   $a_total_objectives)

Definition at line 154 of file class.ilAICCCourse.php.

Referenced by read().

155  {
156  $this->total_objectives = $a_total_objectives;
157  }
+ Here is the caller graph for this function:

◆ setVersion()

ilAICCCourse::setVersion (   $a_version)

Definition at line 164 of file class.ilAICCCourse.php.

Referenced by read().

165  {
166  $this->version = $a_version;
167  }
+ Here is the caller graph for this function:

◆ update()

ilAICCCourse::update ( )

Definition at line 242 of file class.ilAICCCourse.php.

References $ilDB, array, getCourseCreator(), getCourseId(), getCourseSystem(), getCourseTitle(), getDescription(), ilAICCObject\getId(), getLevel(), getMaxFieldsCst(), getMaxFieldsOrt(), getMaxNormal(), getTotalAUs(), getTotalBlocks(), getTotalComplexObj(), getTotalObjectives(), and getVersion().

243  {
244  global $ilDB;
245 
246  parent::update();
247 
248  $ilDB->update('aicc_course',
249  array(
250  'course_creator' => array('text', $this->getCourseCreator()),
251  'course_id' => array('text', $this->getCourseId()),
252  'course_system' => array('text', $this->getCourseSystem()),
253  'course_title' => array('text', $this->getCourseTitle()),
254  'c_level' => array('text', $this->getLevel()),
255  'max_fields_cst' => array('integer', $this->getMaxFieldsCst()),
256  'max_fields_ort' => array('integer', $this->getMaxFieldsOrt()),
257  'total_aus' => array('integer', $this->getTotalAUs()),
258  'total_blocks' => array('integer', $this->getTotalBlocks()),
259  'total_complex_obj' => array('integer', $this->getTotalComplexObj()),
260  'total_objectives' => array('integer', $this->getTotalObjectives()),
261  'version' => array('text', $this->getVersion()),
262  'max_normal' => array('integer', $this->getMaxNormal()),
263  'description' => array('clob', $this->getDescription())
264  ),
265  array(
266  'obj_id' => array('integer', $this->getId())
267  )
268  );
269  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

Field Documentation

◆ $course_id

ilAICCCourse::$course_id

Definition at line 19 of file class.ilAICCCourse.php.

Referenced by getCourseId().

◆ $course_system

ilAICCCourse::$course_system

Definition at line 20 of file class.ilAICCCourse.php.

Referenced by getCourseSystem().

◆ $course_title

ilAICCCourse::$course_title

Definition at line 21 of file class.ilAICCCourse.php.

Referenced by getCourseTitle().

◆ $description

ilAICCCourse::$description

Definition at line 31 of file class.ilAICCCourse.php.

Referenced by getDescription().

◆ $level

ilAICCCourse::$level

Definition at line 22 of file class.ilAICCCourse.php.

Referenced by getLevel().

◆ $max_fields_cst

ilAICCCourse::$max_fields_cst

Definition at line 23 of file class.ilAICCCourse.php.

Referenced by getMaxFieldsCst().

◆ $max_fields_ort

ilAICCCourse::$max_fields_ort

Definition at line 24 of file class.ilAICCCourse.php.

Referenced by getMaxFieldsOrt().

◆ $max_normal

ilAICCCourse::$max_normal

Definition at line 30 of file class.ilAICCCourse.php.

Referenced by getMaxNormal().

◆ $total_aus

ilAICCCourse::$total_aus

Definition at line 25 of file class.ilAICCCourse.php.

Referenced by getTotalAUs().

◆ $total_blocks

ilAICCCourse::$total_blocks

Definition at line 26 of file class.ilAICCCourse.php.

Referenced by getTotalBlocks().

◆ $total_complex_obj

ilAICCCourse::$total_complex_obj

Definition at line 27 of file class.ilAICCCourse.php.

Referenced by getTotalComplexObj().

◆ $total_objectives

ilAICCCourse::$total_objectives

Definition at line 28 of file class.ilAICCCourse.php.

Referenced by getTotalObjectives().

◆ $version

ilAICCCourse::$version

Definition at line 29 of file class.ilAICCCourse.php.

Referenced by getVersion().


The documentation for this class was generated from the following file: