ILIAS  release_8 Revision v8.24
ilWebLinkBaseItemsContainer 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 ilWebLinkBaseItemsContainer:
+ Collaboration diagram for ilWebLinkBaseItemsContainer:

Public Member Functions

 __construct (array $items=[])
 
 getItems ()
 
 getFirstItem ()
 

Protected Attributes

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 Base container class for Web Link items

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

Definition at line 25 of file class.ilWebLinkBaseItemsContainer.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebLinkBaseItemsContainer::__construct ( array  $items = [])
Parameters
ilWebLinkBaseItem[]$items

Reimplemented in ilWebLinkDraftItemsContainer.

Definition at line 35 of file class.ilWebLinkBaseItemsContainer.php.

36 {
37 $this->items = $items;
38 }

References $items.

Member Function Documentation

◆ getFirstItem()

ilWebLinkBaseItemsContainer::getFirstItem ( )

Reimplemented in ilWebLinkDraftItemsContainer, and ilWebLinkItemsContainer.

Definition at line 48 of file class.ilWebLinkBaseItemsContainer.php.

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

◆ getItems()

ilWebLinkBaseItemsContainer::getItems ( )
Returns
ilWebLinkBaseItem[]

Reimplemented in ilWebLinkDraftItemsContainer, and ilWebLinkItemsContainer.

Definition at line 43 of file class.ilWebLinkBaseItemsContainer.php.

43 : array
44 {
45 return $this->items;
46 }

References $items.

Field Documentation

◆ $items

array ilWebLinkBaseItemsContainer::$items
protected

Definition at line 30 of file class.ilWebLinkBaseItemsContainer.php.

Referenced by __construct(), and getItems().


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