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 () | |
Data Fields | |
| $import_id | |
| $structure | |
Definition at line 35 of file class.ilSCORMOrganization.php.
| ilSCORMOrganization::create | ( | ) |
Create database record for SCORM object.
Reimplemented from ilSCORMObject.
Definition at line 85 of file class.ilSCORMOrganization.php.
References $q, getImportId(), and getStructure().
{
parent::create();
$q = "INSERT INTO sc_organization (obj_id, import_id, structure) VALUES ".
"('".$this->getId()."', '".$this->getImportId()."','".$this->getStructure()."')";
$this->ilias->db->query($q);
}
Here is the call graph for this function:| ilSCORMOrganization::delete | ( | ) |
Reimplemented from ilSCORMObject.
Definition at line 105 of file class.ilSCORMOrganization.php.
References $q, and ilSCORMObject::getId().
{
global $ilDB;
parent::delete();
$q = "DELETE FROM sc_organization WHERE obj_id =".$ilDB->quote($this->getId());
$ilDB->query($q);
}
Here is the call graph for this function:| ilSCORMOrganization::getImportId | ( | ) |
Definition at line 53 of file class.ilSCORMOrganization.php.
Referenced by create().
{
return $this->import_id;
}
Here is the caller graph for this function:| ilSCORMOrganization::getStructure | ( | ) |
Definition at line 63 of file class.ilSCORMOrganization.php.
Referenced by create().
{
return $this->structure;
}
Here is the caller graph for this function:| ilSCORMOrganization::ilSCORMOrganization | ( | $ | a_id = 0 |
) |
Constructor.
| int | $a_id Object ID public |
Definition at line 47 of file class.ilSCORMOrganization.php.
References ilSCORMObject::ilSCORMObject(), and ilSCORMObject::setType().
{
parent::ilSCORMObject($a_id);
$this->setType("sor");
}
Here is the call graph for this function:| ilSCORMOrganization::read | ( | ) |
Reimplemented from ilSCORMObject.
Definition at line 73 of file class.ilSCORMOrganization.php.
References $q, setImportId(), and setStructure().
{
parent::read();
$q = "SELECT * FROM sc_organization WHERE obj_id = '".$this->getId()."'";
$obj_set = $this->ilias->db->query($q);
$obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
$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 58 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 68 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 94 of file class.ilSCORMOrganization.php.
References $q.
{
parent::update();
$q = "UPDATE sc_organization SET ".
"import_id = '".$this->getImportId()."', ".
"structure = '".$this->getStructure()."' ".
"WHERE obj_id = '".$this->getId()."'";
$this->ilias->db->query($q);
}
| ilSCORMOrganization::$import_id |
Definition at line 37 of file class.ilSCORMOrganization.php.
| ilSCORMOrganization::$structure |
Definition at line 38 of file class.ilSCORMOrganization.php.
1.7.1