Public Member Functions | |
| ilEventItems ($a_event_id) | |
| getEventId () | |
| setEventId ($a_event_id) | |
| getItems () | |
| setItems ($a_items) | |
| delete () | |
| _delete ($a_event_id) | |
| update () | |
| _getItemsOfContainer ($a_obj_id) | |
| _isAssigned ($a_item_id) | |
| __read () | |
Data Fields | |
| $ilErr | |
| $ilDB | |
| $tree | |
| $lng | |
| $event_id = null | |
| $items = array() | |
Definition at line 36 of file class.ilEventItems.php.
| ilEventItems::__read | ( | ) |
Definition at line 135 of file class.ilEventItems.php.
References $query, $res, and $row.
Referenced by ilEventItems().
{
$query = "SELECT * FROM event_items ".
"WHERE event_id = '".$this->getEventId()."'";
$res = $this->db->query($query);
$this->items = array();
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->items[] = (int) $row->item_id;
}
return true;
}
Here is the caller graph for this function:| ilEventItems::_delete | ( | $ | a_event_id | ) |
| ilEventItems::_getItemsOfContainer | ( | $ | a_obj_id | ) |
Definition at line 106 of file class.ilEventItems.php.
References $ilDB, $items, $query, $res, and $row.
Referenced by ilCourseItems::getFilteredItems().
{
global $ilDB;
$query = "SELECT * FROM event AS e ".
"JOIN event_items AS ei ON e.event_id = ei.event_id ".
"WHERE obj_id = '".$a_obj_id."'";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$items[] = $row->item_id;
}
return $items ? $items : array();
}
Here is the caller graph for this function:| ilEventItems::_isAssigned | ( | $ | a_item_id | ) |
Definition at line 122 of file class.ilEventItems.php.
References $ilDB, $query, and $res.
Referenced by ilCourseItems::__isMovable().
{
global $ilDB;
$query = "SELECT * FROM event_items ".
"WHERE item_id = '".$a_item_id."'";
$res = $ilDB->query($query);
return $res->numRows() ? true : false;
}
Here is the caller graph for this function:| ilEventItems::delete | ( | ) |
Definition at line 79 of file class.ilEventItems.php.
References _delete(), and getEventId().
{
return ilEventItems::_delete($this->getEventId());
}
Here is the call graph for this function:| ilEventItems::getEventId | ( | ) |
Definition at line 59 of file class.ilEventItems.php.
Referenced by delete().
{
return $this->event_id;
}
Here is the caller graph for this function:| ilEventItems::getItems | ( | ) |
Definition at line 67 of file class.ilEventItems.php.
{
return $this->items ? $this->items : array();
}
| ilEventItems::ilEventItems | ( | $ | a_event_id | ) |
| ilEventItems::setEventId | ( | $ | a_event_id | ) |
Definition at line 63 of file class.ilEventItems.php.
{
$this->event_id = $a_event_id;
}
| ilEventItems::setItems | ( | $ | a_items | ) |
Definition at line 71 of file class.ilEventItems.php.
{
$this->items = array();
foreach($a_items as $item_id)
{
$this->items[] = (int) $item_id;
}
}
| ilEventItems::update | ( | ) |
Definition at line 92 of file class.ilEventItems.php.
References $query.
| ilEventItems::$event_id = null |
Definition at line 43 of file class.ilEventItems.php.
| ilEventItems::$ilDB |
Definition at line 39 of file class.ilEventItems.php.
Referenced by _delete(), _getItemsOfContainer(), _isAssigned(), and ilEventItems().
| ilEventItems::$ilErr |
Definition at line 38 of file class.ilEventItems.php.
Referenced by ilEventItems().
| ilEventItems::$items = array() |
Definition at line 44 of file class.ilEventItems.php.
Referenced by _getItemsOfContainer().
| ilEventItems::$lng |
Definition at line 41 of file class.ilEventItems.php.
Referenced by ilEventItems().
| ilEventItems::$tree |
Definition at line 40 of file class.ilEventItems.php.
Referenced by ilEventItems().
1.7.1