Inheritance diagram for ilAICCObject:Public Member Functions | |
| ilAICCObject ($a_id=0) | |
| Constructor. | |
| 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) |
| get instance of specialized GUI class | |
Data Fields | |
| $id | |
| $title | |
| $objType | |
| $alm_id | |
| $description | |
| $developer_id | |
| $system_id | |
Definition at line 34 of file class.ilAICCObject.php.
| & ilAICCObject::_getInstance | ( | $ | a_id | ) |
get instance of specialized GUI class
static
Definition at line 193 of file class.ilAICCObject.php.
{
global $ilDB;
$sc_set = $ilDB->query("SELECT type FROM aicc_object WHERE obj_id =".$ilDB->quote($a_id));
$sc_rec = $sc_set->fetchRow(DB_FETCHMODE_ASSOC);
switch($sc_rec["type"])
{
case "sbl": // Block
include_once("content/classes/AICC/class.ilAICCBlock.php");
$block =& new ilAICCBlock($a_id);
return $block;
break;
case "sau": // assignable unit
include_once("content/classes/AICC/class.ilAICCUnit.php");
$sau =& new ilAICCUnit($a_id);
return $sau;
break;
case "shd": // course
include_once("content/classes/AICC/class.ilAICCCourse.php");
$shd =& new ilAICCCourse($a_id);
return $shd;
break;
}
}
| ilAICCObject::create | ( | ) |
Reimplemented in ilAICCCourse, and ilAICCUnit.
Definition at line 154 of file class.ilAICCObject.php.
References $q, getDescription(), getTitle(), getType(), and setId().
{
$q = "INSERT INTO aicc_object (title, type, slm_id, description, developer_id, system_id) VALUES (";
$q.="'".$this->prepForStore($this->getTitle())."', ";
$q.="'".$this->prepForStore($this->getType())."', ";
$q.="'".$this->getALMId()."', ";
$q.="'".$this->prepForStore($this->getDescription())."', ";
$q.="'".$this->getDeveloperId()."', ";
$q.="'".$this->getSystemId()."') ";
$this->ilias->db->query($q);
$this->setId($this->ilias->db->getLastInsertId());
}
Here is the call graph for this function:| ilAICCObject::delete | ( | ) |
Reimplemented in ilAICCCourse, and ilAICCUnit.
Definition at line 180 of file class.ilAICCObject.php.
{
global $ilDB;
$q = "DELETE FROM aicc_object WHERE obj_id =".$ilDB->quote($this->getId());
$ilDB->query($q);
}
Here is the call graph for this function:| ilAICCObject::getALMId | ( | ) |
Definition at line 123 of file class.ilAICCObject.php.
{
return $this->alm_id;
}
| ilAICCObject::getDescription | ( | ) |
Reimplemented in ilAICCCourse.
Definition at line 93 of file class.ilAICCObject.php.
Referenced by create(), and update().
{
return $this->description;
}
Here is the caller graph for this function:| ilAICCObject::getDeveloperId | ( | ) |
Definition at line 103 of file class.ilAICCObject.php.
{
return $this->developer_id;
}
| ilAICCObject::getId | ( | ) |
Definition at line 63 of file class.ilAICCObject.php.
Referenced by ilAICCUnit::delete(), delete(), ilAICCCourse::delete(), ilAICCUnit::insertTrackData(), and ilAICCCourse::insertTrackData().
{
return $this->id;
}
Here is the caller graph for this function:| ilAICCObject::getSystemId | ( | ) |
Definition at line 113 of file class.ilAICCObject.php.
{
return $this->system_id;
}
| ilAICCObject::getTitle | ( | ) |
Definition at line 83 of file class.ilAICCObject.php.
Referenced by create(), and update().
{
return $this->title;
}
Here is the caller graph for this function:| ilAICCObject::getType | ( | ) |
Definition at line 73 of file class.ilAICCObject.php.
Referenced by create(), and update().
{
return $this->objType;
}
Here is the caller graph for this function:| ilAICCObject::ilAICCObject | ( | $ | a_id = 0 |
) |
Constructor.
| int | $a_id Object ID public |
Definition at line 51 of file class.ilAICCObject.php.
References $ilias, and read().
Referenced by ilAICCBlock::ilAICCBlock(), ilAICCCourse::ilAICCCourse(), and ilAICCUnit::ilAICCUnit().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAICCObject::prepForStore | ( | $ | string | ) |
Definition at line 133 of file class.ilAICCObject.php.
{
if (!get_magic_quotes_runtime()) {
$string = addslashes($string);
}
return $string;
}
| ilAICCObject::read | ( | ) |
Reimplemented in ilAICCCourse, and ilAICCUnit.
Definition at line 140 of file class.ilAICCObject.php.
References $q, setALMId(), setDescription(), setDeveloperId(), setSystemId(), setTitle(), and setType().
Referenced by ilAICCObject().
{
$q = "SELECT * FROM aicc_object WHERE obj_id = '".$this->getId()."'";
$obj_set = $this->ilias->db->query($q);
$obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
$this->setTitle($obj_rec["title"]);
$this->setType($obj_rec["type"]);
$this->setALMId($obj_rec["alm_id"]);
$this->setDescription($obj_rec["description"]);
$this->setDeveloperId($obj_rec["developer_id"]);
$this->setSystemId($obj_rec["system_id"]);
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilAICCObject::setALMId | ( | $ | a_alm_id | ) |
Definition at line 128 of file class.ilAICCObject.php.
Referenced by read().
{
$this->alm_id = $a_alm_id;
}
Here is the caller graph for this function:| ilAICCObject::setDescription | ( | $ | a_description | ) |
Reimplemented in ilAICCCourse.
Definition at line 98 of file class.ilAICCObject.php.
Referenced by read().
{
$this->description = $a_description;
}
Here is the caller graph for this function:| ilAICCObject::setDeveloperId | ( | $ | a_developer_id | ) |
Definition at line 108 of file class.ilAICCObject.php.
Referenced by read().
{
$this->developer_id = $a_developer_id;
}
Here is the caller graph for this function:| ilAICCObject::setId | ( | $ | a_id | ) |
Definition at line 68 of file class.ilAICCObject.php.
Referenced by create().
{
$this->id = $a_id;
}
Here is the caller graph for this function:| ilAICCObject::setSystemId | ( | $ | a_system_id | ) |
Definition at line 118 of file class.ilAICCObject.php.
Referenced by read().
{
$this->system_id = $a_system_id;
}
Here is the caller graph for this function:| ilAICCObject::setTitle | ( | $ | a_title | ) |
Definition at line 88 of file class.ilAICCObject.php.
Referenced by read().
{
$this->title = $a_title;
}
Here is the caller graph for this function:| ilAICCObject::setType | ( | $ | a_objType | ) |
Definition at line 78 of file class.ilAICCObject.php.
Referenced by ilAICCCourse::ilAICCCourse(), ilAICCUnit::ilAICCUnit(), and read().
{
$this->objType = $a_objType;
}
Here is the caller graph for this function:| ilAICCObject::update | ( | ) |
Reimplemented in ilAICCCourse, and ilAICCUnit.
Definition at line 167 of file class.ilAICCObject.php.
References $q, getDescription(), getTitle(), and getType().
{
$q = "UPDATE aicc_object SET ";
$q.="title = '".$this->prepForStore($this->getTitle())."', ";
$q.="type = '".$this->prepForStore($this->getType())."', ";
$q.="slm_id = '".$this->getALMId()."', ";
$q.="description = '".$this->prepForStore($this->getDescription())."', ";
$q.="developer_id = '".$this->getDeveloperId()."', ";
$q.="system_id = '".$this->getSystemId()."' ";
$q.="WHERE obj_id = '".$this->getId()."'";
$this->ilias->db->query($q);
}
Here is the call graph for this function:| ilAICCObject::$alm_id |
Definition at line 39 of file class.ilAICCObject.php.
| ilAICCObject::$description |
Reimplemented in ilAICCCourse.
Definition at line 40 of file class.ilAICCObject.php.
| ilAICCObject::$developer_id |
Definition at line 41 of file class.ilAICCObject.php.
| ilAICCObject::$id |
Definition at line 36 of file class.ilAICCObject.php.
| ilAICCObject::$objType |
Definition at line 38 of file class.ilAICCObject.php.
| ilAICCObject::$system_id |
Definition at line 42 of file class.ilAICCObject.php.
| ilAICCObject::$title |
Definition at line 37 of file class.ilAICCObject.php.
1.7.1