ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilAICCCourse Class Reference
+ Inheritance diagram for ilAICCCourse:
+ Collaboration diagram for ilAICCCourse:

Public Member Functions

 ilAICCCourse ($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
 ilAICCObject ($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.

Member Function Documentation

◆ create()

ilAICCCourse::create ( )

Reimplemented from ilAICCObject.

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

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 }
global $ilDB

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

+ Here is the call graph for this function:

◆ delete()

ilAICCCourse::delete ( )

Reimplemented from ilAICCObject.

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

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 }
_refreshStatus($a_obj_id, $a_users=null)
Set dirty.

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

+ Here is the call graph for this function:

◆ getCourseCreator()

ilAICCCourse::getCourseCreator ( )

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

46 {
48 }
$course_creator
AICC Item.

References $course_creator.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getCourseId()

ilAICCCourse::getCourseId ( )

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

56 {
57 return $this->course_id;
58 }

References $course_id.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getCourseSystem()

ilAICCCourse::getCourseSystem ( )

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

66 {
68 }

References $course_system.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getCourseTitle()

ilAICCCourse::getCourseTitle ( )

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

76 {
78 }

References $course_title.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getDescription()

ilAICCCourse::getDescription ( )

Reimplemented from ilAICCObject.

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

180 {
181 return $this->description;
182 }

References $description.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getLevel()

ilAICCCourse::getLevel ( )

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

86 {
87 return $this->level;
88 }

References $level.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getMaxFieldsCst()

ilAICCCourse::getMaxFieldsCst ( )

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

96 {
98 }

References $max_fields_cst.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getMaxFieldsOrt()

ilAICCCourse::getMaxFieldsOrt ( )

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

107 {
109 }

References $max_fields_ort.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getMaxNormal()

ilAICCCourse::getMaxNormal ( )

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

170 {
171 return $this->max_normal;
172 }

References $max_normal.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getTotalAUs()

ilAICCCourse::getTotalAUs ( )

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

118 {
119 return $this->total_aus;
120 }

References $total_aus.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getTotalBlocks()

ilAICCCourse::getTotalBlocks ( )

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

128 {
129 return $this->total_blocks;
130 }

References $total_blocks.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getTotalComplexObj()

ilAICCCourse::getTotalComplexObj ( )

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

139 {
141 }

References $total_complex_obj.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getTotalObjectives()

ilAICCCourse::getTotalObjectives ( )

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

150 {
152 }

References $total_objectives.

Referenced by create(), and update().

+ 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.

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 }
global $ilUser
Definition: imgupload.php:15

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

+ Here is the call graph for this function:

◆ getVersion()

ilAICCCourse::getVersion ( )

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

160 {
161 return $this->version;
162 }

References $version.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ ilAICCCourse()

ilAICCCourse::ilAICCCourse (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID @access public

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

40 {
41 parent::ilAICCObject($a_id);
42 $this->setType("shd");
43 }
setType($a_objType)

References ilAICCObject\setType().

+ Here is the call graph for this function:

◆ insertTrackData()

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

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

329 {
330 require_once("./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php");
331 ilObjSCORMTracking::_insertTrackData($this->getId(), $a_lval, $a_rval, $a_obj_id);
332 }
_insertTrackData($a_sahs_id, $a_lval, $a_rval, $a_obj_id)

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

+ Here is the call graph for this function:

◆ read()

ilAICCCourse::read ( )

Reimplemented from ilAICCObject.

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

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 }
setCourseId($a_course_id)
setTotalBlocks($a_total_blocks)
setTotalObjectives($a_total_objectives)
setTotalComplexObj($a_total_complex_obj)
setCourseSystem($a_course_system)
setMaxFieldsOrt($a_max_fields_ort)
setCourseTitle($a_course_title)
setTotalAUs($a_total_aus)
setVersion($a_version)
setMaxNormal($a_max_normal)
setCourseCreator($a_course_creator)
setDescription($a_description)
setMaxFieldsCst($a_max_fields_cst)

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

+ Here is the call graph for this function:

◆ setCourseCreator()

ilAICCCourse::setCourseCreator (   $a_course_creator)

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

51 {
52 $this->course_creator = $a_course_creator;
53 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setCourseId()

ilAICCCourse::setCourseId (   $a_course_id)

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

61 {
62 $this->course_id = $a_course_id;
63 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setCourseSystem()

ilAICCCourse::setCourseSystem (   $a_course_system)

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

71 {
72 $this->course_system = $a_course_system;
73 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setCourseTitle()

ilAICCCourse::setCourseTitle (   $a_course_title)

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

81 {
82 $this->course_title = $a_course_title;
83 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDescription()

ilAICCCourse::setDescription (   $a_description)

Reimplemented from ilAICCObject.

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

185 {
186 $this->description = $a_description;
187 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setLevel()

ilAICCCourse::setLevel (   $a_level)

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

91 {
92 $this->level = $a_level;
93 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setMaxFieldsCst()

ilAICCCourse::setMaxFieldsCst (   $a_max_fields_cst)

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

101 {
102 if($a_max_fields_cst == NULL) $a_max_fields_cst=0;
103 $this->max_fields_cst = $a_max_fields_cst;
104 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setMaxFieldsOrt()

ilAICCCourse::setMaxFieldsOrt (   $a_max_fields_ort)

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

112 {
113 if($a_max_fields_ort == NULL) $a_max_fields_ort=0;
114 $this->max_fields_ort = $a_max_fields_ort;
115 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setMaxNormal()

ilAICCCourse::setMaxNormal (   $a_max_normal)

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

175 {
176 $this->max_normal = $a_max_normal;
177 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setTotalAUs()

ilAICCCourse::setTotalAUs (   $a_total_aus)

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

123 {
124 $this->total_aus = $a_total_aus;
125 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setTotalBlocks()

ilAICCCourse::setTotalBlocks (   $a_total_blocks)

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

133 {
134
135 $this->total_blocks = $a_total_blocks;
136 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setTotalComplexObj()

ilAICCCourse::setTotalComplexObj (   $a_total_complex_obj)

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

144 {
145 if($a_total_complex_obj == NULL) $a_total_complex_obj=0;
146 $this->total_complex_obj = $a_total_complex_obj;
147 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setTotalObjectives()

ilAICCCourse::setTotalObjectives (   $a_total_objectives)

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

155 {
156 $this->total_objectives = $a_total_objectives;
157 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setVersion()

ilAICCCourse::setVersion (   $a_version)

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

165 {
166 $this->version = $a_version;
167 }

Referenced by read().

+ Here is the caller graph for this function:

◆ update()

ilAICCCourse::update ( )

Reimplemented from ilAICCObject.

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

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 }

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

+ 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: