ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORMResources Class Reference

SCORM Resources Element. More...

+ Inheritance diagram for ilSCORMResources:
+ Collaboration diagram for ilSCORMResources:

Public Member Functions

 ilSCORMResources ($a_id=0)
 Constructor.
 getXmlBase ()
 setXmlBase ($a_xml_base)
 read ()
 create ()
 Create database record for SCORM object.
 update ()
 Updates database record for SCORM object.
 delete ()
- Public Member Functions inherited from ilSCORMObject
 ilSCORMObject ($a_id=0)
 Constructor.
 getId ()
 setId ($a_id)
 getType ()
 setType ($a_type)
 getTitle ()
 setTitle ($a_title)
 getSLMId ()
 setSLMId ($a_slm_id)
 _lookupPresentableItems ($a_slm_id)
 Count number of presentable SCOs/Assets of SCORM learning module.
_getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class

Data Fields

 $xml_base
- Data Fields inherited from ilSCORMObject
 $id
 $title
 $type
 $slm_id

Detailed Description

SCORM Resources Element.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilSCORMResources.php 21316 2009-08-27 13:03:07Z mjansen

Definition at line 34 of file class.ilSCORMResources.php.

Member Function Documentation

ilSCORMResources::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

References $ilDB, ilSCORMObject\getId(), and getXmlBase().

{
global $ilDB;
$ilDB->manipulateF(
'INSERT INTO sc_resources (obj_id, xml_base) VALUES (%s, %s)',
array('integer', 'text'),
array($this->getId(), $this->getXmlBase())
);
}

+ Here is the call graph for this function:

ilSCORMResources::delete ( )

Reimplemented from ilSCORMObject.

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

References $ilDB, and ilSCORMObject\getId().

{
global $ilDB;
$ilDB->manipulateF(
'DELETE FROM sc_resources WHERE obj_id = %s',
array('integer'),
array($this->getId())
);
}

+ Here is the call graph for this function:

ilSCORMResources::getXmlBase ( )

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

References $xml_base.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilSCORMResources::ilSCORMResources (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID public

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

References $lng, ilSCORMObject\ilSCORMObject(), ilSCORMObject\setTitle(), and ilSCORMObject\setType().

{
global $lng;
$this->setType('srs');
$this->setTitle($lng->txt('cont_resources'));
}

+ Here is the call graph for this function:

ilSCORMResources::read ( )

Reimplemented from ilSCORMObject.

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

References $ilDB, ilSCORMObject\getId(), and setXmlBase().

{
global $ilDB;
$obj_set = $ilDB->queryF(
'SELECT xml_base FROM sc_resources WHERE obj_id = %s',
array('integer'),
array($this->getId())
);
$obj_rec = $ilDB->fetchAssoc($obj_set);
$this->setXmlBase($obj_rec['xml_base']);
}

+ Here is the call graph for this function:

ilSCORMResources::setXmlBase (   $a_xml_base)

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

Referenced by read().

{
$this->xml_base = $a_xml_base;
}

+ Here is the caller graph for this function:

ilSCORMResources::update ( )

Updates database record for SCORM object.

Reimplemented from ilSCORMObject.

Definition at line 93 of file class.ilSCORMResources.php.

References $ilDB, ilSCORMObject\getId(), and getXmlBase().

{
global $ilDB;
$ilDB->manipulateF('
UPDATE sc_resources SET xml_base = %s WHERE obj_id = %s',
array('text', 'integer'),
array($this->getXmlBase() ,$this->getId())
);
}

+ Here is the call graph for this function:

Field Documentation

ilSCORMResources::$xml_base

Definition at line 36 of file class.ilSCORMResources.php.

Referenced by getXmlBase().


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