ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
interface.ilWebLinkRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
31  public function createItem(ilWebLinkDraftItem $item): ilWebLinkItem;
32 
33  public function createList(ilWebLinkDraftList $list): ilWebLinkList;
34 
36 
37  public function getAllItemsAsContainer(bool $only_active = false): ilWebLinkItemsContainer;
38 
39  public function getItemByLinkId(int $link_id): ilWebLinkItem;
40 
41  public function doesOnlyOneItemExist(bool $only_active = false): bool;
42 
43  public function getParameterinItemByParamId(
44  ilWebLinkItem $item,
45  int $param_id
47 
48  public function getList(): ilWebLinkList;
49 
50  public function doesListExist(): bool;
51 
57  public function updateItem(
58  ilWebLinkItem $item,
59  ilWebLinkDraftItem $drafted_item
60  ): void;
61 
62  public function updateList(
63  ilWebLinkList $list,
64  ilWebLinkDraftList $drafted_list
65  ): void;
66 
67  public function deleteAllItems(): void;
68 
69  public function deleteItemByLinkID(int $link_id): void;
70 
71  public function deleteParameterByLinkIdAndParamId(
72  int $link_id,
73  int $param_id
74  ): void;
75 
76  public function deleteList(): void;
77 }
deleteItemByLinkID(int $link_id)
Immutable class for parameters attached to Web Link items.
updateItem(ilWebLinkItem $item, ilWebLinkDraftItem $drafted_item)
Updates an item.
deleteParameterByLinkIdAndParamId(int $link_id, int $param_id)
$container
Definition: wac.php:36
createList(ilWebLinkDraftList $list)
Immutable container class for Web Link items.
getParameterinItemByParamId(ilWebLinkItem $item, int $param_id)
getAllItemsAsContainer(bool $only_active=false)
Container class for drafted Web Link items.
Draft class for creating or updating a Web Link list.
doesOnlyOneItemExist(bool $only_active=false)
Draft class for creating and updating a Web Link item.
createItem(ilWebLinkDraftItem $item)
Creates a new item, complete with parameters.
createAllItemsInDraftContainer(ilWebLinkDraftItemsContainer $container)
Immutable class for Web Link items.
updateList(ilWebLinkList $list, ilWebLinkDraftList $drafted_list)
getItemByLinkId(int $link_id)