ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORMOrganization Class Reference

SCORM Organization. More...

+ Inheritance diagram for ilSCORMOrganization:
+ Collaboration diagram for ilSCORMOrganization:

Public Member Functions

 ilSCORMOrganization ($a_id=0)
 Constructor.
 getImportId ()
 setImportId ($a_import_id)
 getStructure ()
 setStructure ($a_structure)
 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

 $import_id
 $structure
- Data Fields inherited from ilSCORMObject
 $id
 $title
 $type
 $slm_id

Detailed Description

SCORM Organization.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilSCORMOrganization.php 21280 2009-08-26 08:36:27Z mjansen

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

Member Function Documentation

ilSCORMOrganization::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

References $ilDB, $query, ilSCORMObject\getId(), getImportId(), and getStructure().

{
global $ilDB;
$query = 'INSERT INTO sc_organization (obj_id, import_id, structure) VALUES(%s, %s, %s)';
$ilDB->manipulateF(
array('integer', 'text', 'text'),
array($this->getId(), $this->getImportId(), $this->getStructure())
);
}

+ Here is the call graph for this function:

ilSCORMOrganization::delete ( )

Reimplemented from ilSCORMObject.

Definition at line 118 of file class.ilSCORMOrganization.php.

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

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

+ Here is the call graph for this function:

ilSCORMOrganization::getImportId ( )

Definition at line 52 of file class.ilSCORMOrganization.php.

References $import_id.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilSCORMOrganization::getStructure ( )

Definition at line 62 of file class.ilSCORMOrganization.php.

References $structure.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilSCORMOrganization::ilSCORMOrganization (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID public

Definition at line 46 of file class.ilSCORMOrganization.php.

References ilSCORMObject\ilSCORMObject(), and ilSCORMObject\setType().

{
$this->setType('sor');
}

+ Here is the call graph for this function:

ilSCORMOrganization::read ( )

Reimplemented from ilSCORMObject.

Definition at line 72 of file class.ilSCORMOrganization.php.

References $ilDB, $query, ilSCORMObject\getId(), setImportId(), and setStructure().

{
global $ilDB;
$query = 'SELECT import_id, structure FROM sc_organization WHERE obj_id = %s';
$obj_set = $ilDB->queryF(
array('integer'),
array($this->getId())
);
$obj_rec = $ilDB->fetchAssoc($obj_set);
$this->setImportId($obj_rec['import_id']);
$this->setStructure($obj_rec['structure']);
}

+ Here is the call graph for this function:

ilSCORMOrganization::setImportId (   $a_import_id)

Definition at line 57 of file class.ilSCORMOrganization.php.

Referenced by read().

{
$this->import_id = $a_import_id;
}

+ Here is the caller graph for this function:

ilSCORMOrganization::setStructure (   $a_structure)

Definition at line 67 of file class.ilSCORMOrganization.php.

Referenced by read().

{
$this->structure = $a_structure;
}

+ Here is the caller graph for this function:

ilSCORMOrganization::update ( )

Updates database record for SCORM object.

Reimplemented from ilSCORMObject.

Definition at line 104 of file class.ilSCORMOrganization.php.

References $ilDB, $query, ilSCORMObject\getId(), getImportId(), and getStructure().

{
global $ilDB;
$query = 'UPDATE sc_organization SET import_id = %s, structure = %s WHERE obj_id = %s';
$ilDB->manipulateF(
array('text', 'text', 'integer'),
array($this->getImportId(), $this->getStructure(), $this->getId())
);
}

+ Here is the call graph for this function:

Field Documentation

ilSCORMOrganization::$import_id

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

Referenced by getImportId().

ilSCORMOrganization::$structure

Definition at line 37 of file class.ilSCORMOrganization.php.

Referenced by getStructure().


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