| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Item group items. More...
 Collaboration diagram for ilItemGroupItems:
 Collaboration diagram for ilItemGroupItems:| 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 274 of file class.ilItemGroupItems.php.
References $ilDB, $items, $query, $res, $row, $tree, and DB_FETCHMODE_OBJECT.
Referenced by ilRepositoryExplorer\isVisible().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilItemGroupItems::cloneItems | ( | $a_source_id, | |
| $a_copy_id | |||
| ) | 
Clone items.
public
| int | source event id | 
| int | copy id | 
Definition at line 243 of file class.ilItemGroupItems.php.
References $ilLog, ilCopyWizardOptions\_getInstance(), ilItemGroupItems(), setItems(), and update().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilItemGroupItems::delete | ( | ) | 
Delete items of item group.
Definition at line 127 of file class.ilItemGroupItems.php.
References $query, and getItemGroupId().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilItemGroupItems::getItems | ( | ) | 
Get items.
Definition at line 106 of file class.ilItemGroupItems.php.
References $items.
Referenced by ilItemGroupItemsTableGUI\__construct(), and getValidItems().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilItemGroupItems::getValidItems | ( | ) | 
Get valid items.
| @return | 
Definition at line 220 of file class.ilItemGroupItems.php.
References $items, getAssignableItems(), and getItems().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilItemGroupItems::read | ( | ) | 
Read item group items.
Definition at line 155 of file class.ilItemGroupItems.php.
Referenced by ilItemGroupItems().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilItemGroupItems::update | ( | ) | 
Update item group items.
Definition at line 137 of file class.ilItemGroupItems.php.
References $query, and getItemGroupId().
Referenced by cloneItems().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().