ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilWebLinkDraftItemsContainer Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilWebLinkDraftItemsContainer:
+ Collaboration diagram for ilWebLinkDraftItemsContainer:

Public Member Functions

 __construct (array $items=[])
 
 addItem (ilWebLinkDraftItem $item)
 
 getItems ()
 
 getFirstItem ()
 
- Public Member Functions inherited from ilWebLinkBaseItemsContainer
 __construct (array $items=[])
 
 getItems ()
 
 getFirstItem ()
 

Protected Attributes

array $items
 
- Protected Attributes inherited from ilWebLinkBaseItemsContainer
array $items
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Container class for drafted Web Link items. Right now this does not really need to exist, but might come in handy when additional transformations on a set of drafted items are needed.

Author
Tim Schmitz schmi.nosp@m.tz@l.nosp@m.eifos.nosp@m..de

Definition at line 27 of file class.ilWebLinkDraftItemsContainer.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebLinkDraftItemsContainer::__construct ( array  $items = [])
Parameters
ilWebLinkDraftItem[]$items

Definition at line 37 of file class.ilWebLinkDraftItemsContainer.php.

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ addItem()

ilWebLinkDraftItemsContainer::addItem ( ilWebLinkDraftItem  $item)

Definition at line 42 of file class.ilWebLinkDraftItemsContainer.php.

42  : void
43  {
44  $this->items[] = $item;
45  }

◆ getFirstItem()

ilWebLinkDraftItemsContainer::getFirstItem ( )

Definition at line 55 of file class.ilWebLinkDraftItemsContainer.php.

56  {
57  return $this->items[0] ?? null;
58  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ getItems()

ilWebLinkDraftItemsContainer::getItems ( )
Returns
ilWebLinkDraftItem[]

Definition at line 50 of file class.ilWebLinkDraftItemsContainer.php.

References $items.

Referenced by ilWebLinkDatabaseRepository\createAllItemsInDraftContainer().

50  : array
51  {
52  return $this->items;
53  }
+ Here is the caller graph for this function:

Field Documentation

◆ $items

array ilWebLinkDraftItemsContainer::$items
protected

Definition at line 32 of file class.ilWebLinkDraftItemsContainer.php.

Referenced by getItems().


The documentation for this class was generated from the following file: