ILIAS
Release_5_0_x_branch Revision 61816
|
Item group items. More...
Public Member Functions | |
ilItemGroupItems ($a_item_group_ref_id=0) | |
Constructor. | |
setItemGroupId ($a_val) | |
Set item group id. | |
getItemGroupId () | |
Get item group id. | |
setItemGroupRefId ($a_val) | |
Set item group ref id. | |
getItemGroupRefId () | |
Get item group ref id. | |
setItems ($a_val) | |
Set items. | |
getItems () | |
Get items. | |
addItem ($a_item_ref_id) | |
Add one item. | |
delete () | |
Delete items of item group. | |
update () | |
Update item group items. | |
read () | |
Read item group items. | |
getAssignableItems () | |
Get assignable items. | |
getValidItems () | |
Get valid items. | |
cloneItems ($a_source_id, $a_copy_id) | |
Clone items. | |
_getItemsOfContainer ($a_ref_id) |
Data Fields | |
$ilDB | |
$tree | |
$lng | |
$item_group_id = 0 | |
$item_group_ref_id = 0 | |
$items = array() |
Item group items.
This class is used to store the materials (items) that are assigned to an item group. Main table used is item_group_item
Definition at line 15 of file class.ilItemGroupItems.php.
ilItemGroupItems::_getItemsOfContainer | ( | $a_ref_id | ) |
Definition at line 281 of file class.ilItemGroupItems.php.
References $ilDB, $items, $query, $res, $row, $tree, and DB_FETCHMODE_OBJECT.
Referenced by ilRepositoryExplorer\isVisible().
ilItemGroupItems::addItem | ( | $a_item_ref_id | ) |
Add one item.
int | $a_item_ref_id | item ref id |
Definition at line 116 of file class.ilItemGroupItems.php.
Referenced by ilObjItemGroupGUI\afterSaveCallback().
ilItemGroupItems::cloneItems | ( | $a_source_id, | |
$a_copy_id | |||
) |
Clone items.
public
int | source event id |
int | copy id |
Definition at line 250 of file class.ilItemGroupItems.php.
References $ilLog, ilCopyWizardOptions\_getInstance(), ilItemGroupItems(), setItems(), and update().
ilItemGroupItems::delete | ( | ) |
Delete items of item group.
Definition at line 127 of file class.ilItemGroupItems.php.
References $query, and getItemGroupId().
ilItemGroupItems::getAssignableItems | ( | ) |
Get assignable items.
@return |
Definition at line 173 of file class.ilItemGroupItems.php.
References ilObjFileAccess\_isFileHidden(), getItemGroupRefId(), and ilUtil\sortArray().
Referenced by getValidItems().
ilItemGroupItems::getItemGroupId | ( | ) |
Get item group id.
Definition at line 66 of file class.ilItemGroupItems.php.
References $item_group_id.
Referenced by delete(), ilItemGroupItems(), and update().
ilItemGroupItems::getItemGroupRefId | ( | ) |
Get item group ref id.
Definition at line 86 of file class.ilItemGroupItems.php.
References $item_group_ref_id.
Referenced by getAssignableItems(), and ilItemGroupItems().
ilItemGroupItems::getItems | ( | ) |
Get items.
Definition at line 106 of file class.ilItemGroupItems.php.
References $items.
Referenced by ilItemGroupItemsTableGUI\__construct(), and getValidItems().
ilItemGroupItems::getValidItems | ( | ) |
Get valid items.
@return |
Definition at line 227 of file class.ilItemGroupItems.php.
References $items, getAssignableItems(), and getItems().
ilItemGroupItems::ilItemGroupItems | ( | $a_item_group_ref_id = 0 | ) |
Constructor.
int | $a_item_group_ref_id | ref id of item group |
Definition at line 30 of file class.ilItemGroupItems.php.
References $ilDB, $lng, $tree, ilObject\_lookupObjId(), getItemGroupId(), getItemGroupRefId(), read(), setItemGroupId(), and setItemGroupRefId().
Referenced by cloneItems().
ilItemGroupItems::read | ( | ) |
Read item group items.
Definition at line 155 of file class.ilItemGroupItems.php.
Referenced by ilItemGroupItems().
ilItemGroupItems::setItemGroupId | ( | $a_val | ) |
Set item group id.
int | $a_val | item group id |
Definition at line 56 of file class.ilItemGroupItems.php.
Referenced by ilItemGroupItems().
ilItemGroupItems::setItemGroupRefId | ( | $a_val | ) |
Set item group ref id.
int | $a_val | item group ref id |
Definition at line 76 of file class.ilItemGroupItems.php.
Referenced by ilItemGroupItems().
ilItemGroupItems::setItems | ( | $a_val | ) |
Set items.
array | $a_val | items (array of ref ids) |
Definition at line 96 of file class.ilItemGroupItems.php.
Referenced by cloneItems().
ilItemGroupItems::update | ( | ) |
Update item group items.
Definition at line 137 of file class.ilItemGroupItems.php.
References $query, and getItemGroupId().
Referenced by cloneItems().
ilItemGroupItems::$ilDB |
Definition at line 17 of file class.ilItemGroupItems.php.
Referenced by _getItemsOfContainer(), and ilItemGroupItems().
ilItemGroupItems::$item_group_id = 0 |
Definition at line 21 of file class.ilItemGroupItems.php.
Referenced by getItemGroupId().
ilItemGroupItems::$item_group_ref_id = 0 |
Definition at line 22 of file class.ilItemGroupItems.php.
Referenced by getItemGroupRefId().
ilItemGroupItems::$items = array() |
Definition at line 23 of file class.ilItemGroupItems.php.
Referenced by _getItemsOfContainer(), getItems(), and getValidItems().
ilItemGroupItems::$lng |
Definition at line 19 of file class.ilItemGroupItems.php.
Referenced by ilItemGroupItems().
ilItemGroupItems::$tree |
Definition at line 18 of file class.ilItemGroupItems.php.
Referenced by _getItemsOfContainer(), and ilItemGroupItems().