ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Item group items. More...
Public Member Functions | |
__construct ($a_item_group_ref_id=0) | |
Constructor. More... | |
setItemGroupId ($a_val) | |
Set item group id. More... | |
getItemGroupId () | |
Get item group id. More... | |
setItemGroupRefId ($a_val) | |
Set item group ref id. More... | |
getItemGroupRefId () | |
Get item group ref id. More... | |
setItems ($a_val) | |
Set items. More... | |
getItems () | |
Get items. More... | |
addItem ($a_item_ref_id) | |
Add one item. More... | |
delete () | |
Delete items of item group. More... | |
update () | |
Update item group items. More... | |
read () | |
Read item group items. More... | |
getAssignableItems () | |
Get assignable items. More... | |
getValidItems () | |
Get valid items. More... | |
cloneItems ($a_source_id, $a_copy_id) | |
Clone items. More... | |
Static Public Member Functions | |
static | _getItemsOfContainer ($a_ref_id) |
Data Fields | |
$ilDB | |
$tree | |
$lng | |
$item_group_id = 0 | |
$item_group_ref_id = 0 | |
$items = array() | |
Protected Attributes | |
$db | |
$obj_def | |
$obj_data_cache | |
$log | |
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::__construct | ( | $a_item_group_ref_id = 0 | ) |
Constructor.
int | $a_item_group_ref_id | ref id of item group |
Definition at line 50 of file class.ilItemGroupItems.php.
References $DIC, $ilDB, $lng, $tree, ilObject\_lookupObjId(), getItemGroupId(), getItemGroupRefId(), read(), setItemGroupId(), and setItemGroupRefId().
|
static |
Definition at line 295 of file class.ilItemGroupItems.php.
References $DIC, $ilDB, $items, $query, $res, $row, $tree, array, and ilDBConstants\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 141 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 267 of file class.ilItemGroupItems.php.
References $ilLog, $log, $obj_data_cache, ilCopyWizardOptions\_getInstance(), array, setItems(), and update().
ilItemGroupItems::delete | ( | ) |
Delete items of item group.
Definition at line 151 of file class.ilItemGroupItems.php.
References $query, and getItemGroupId().
ilItemGroupItems::getAssignableItems | ( | ) |
Get assignable items.
Definition at line 196 of file class.ilItemGroupItems.php.
References $obj_def, ilObjFileAccess\_isFileHidden(), array, getItemGroupRefId(), and ilUtil\sortArray().
Referenced by getValidItems().
ilItemGroupItems::getItemGroupId | ( | ) |
Get item group id.
Definition at line 91 of file class.ilItemGroupItems.php.
References $item_group_id.
Referenced by __construct(), delete(), and update().
ilItemGroupItems::getItemGroupRefId | ( | ) |
Get item group ref id.
Definition at line 111 of file class.ilItemGroupItems.php.
References $item_group_ref_id.
Referenced by __construct(), and getAssignableItems().
ilItemGroupItems::getItems | ( | ) |
Get items.
Definition at line 131 of file class.ilItemGroupItems.php.
References $items.
Referenced by ilItemGroupItemsTableGUI\__construct(), and getValidItems().
ilItemGroupItems::getValidItems | ( | ) |
Get valid items.
Definition at line 246 of file class.ilItemGroupItems.php.
References $items, array, getAssignableItems(), and getItems().
ilItemGroupItems::read | ( | ) |
Read item group items.
Definition at line 178 of file class.ilItemGroupItems.php.
References array.
Referenced by __construct().
ilItemGroupItems::setItemGroupId | ( | $a_val | ) |
Set item group id.
int | $a_val | item group id |
Definition at line 81 of file class.ilItemGroupItems.php.
Referenced by __construct().
ilItemGroupItems::setItemGroupRefId | ( | $a_val | ) |
Set item group ref id.
int | $a_val | item group ref id |
Definition at line 101 of file class.ilItemGroupItems.php.
Referenced by __construct().
ilItemGroupItems::setItems | ( | $a_val | ) |
Set items.
array | $a_val | items (array of ref ids) |
Definition at line 121 of file class.ilItemGroupItems.php.
Referenced by cloneItems().
ilItemGroupItems::update | ( | ) |
Update item group items.
Definition at line 161 of file class.ilItemGroupItems.php.
References $query, and getItemGroupId().
Referenced by cloneItems().
|
protected |
Definition at line 20 of file class.ilItemGroupItems.php.
ilItemGroupItems::$ilDB |
Definition at line 37 of file class.ilItemGroupItems.php.
Referenced by __construct(), and _getItemsOfContainer().
ilItemGroupItems::$item_group_id = 0 |
Definition at line 41 of file class.ilItemGroupItems.php.
Referenced by getItemGroupId().
ilItemGroupItems::$item_group_ref_id = 0 |
Definition at line 42 of file class.ilItemGroupItems.php.
Referenced by getItemGroupRefId().
ilItemGroupItems::$items = array() |
Definition at line 43 of file class.ilItemGroupItems.php.
Referenced by _getItemsOfContainer(), getItems(), and getValidItems().
ilItemGroupItems::$lng |
Definition at line 39 of file class.ilItemGroupItems.php.
Referenced by __construct().
|
protected |
Definition at line 35 of file class.ilItemGroupItems.php.
Referenced by cloneItems().
|
protected |
Definition at line 30 of file class.ilItemGroupItems.php.
Referenced by cloneItems().
|
protected |
Definition at line 25 of file class.ilItemGroupItems.php.
Referenced by getAssignableItems().
ilItemGroupItems::$tree |
Definition at line 38 of file class.ilItemGroupItems.php.
Referenced by __construct(), and _getItemsOfContainer().