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

Public Member Functions

 __construct (string $type, string $title, string $description, string $icon_path, bool $is_online, int $order_number, ilLSPostCondition $post_condition, int $ref_id)
 
 getType ()
 
 getTitle ()
 
 getDescription ()
 
 getIconPath ()
 
 isOnline ()
 
 getOrderNumber ()
 
 getPostCondition ()
 
 getRefId ()
 
 withOnline (bool $online)
 
 withOrderNumber (int $order_number)
 
 withPostCondition (ilLSPostCondition $post_condition)
 

Protected Attributes

string $type
 
string $title
 
string $description
 
string $icon_path
 
bool $is_online
 
int $order_number
 
ilLSPostCondition $post_condition
 
int $ref_id
 

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 Data holding class LSItem .

Definition at line 24 of file LSItem.php.

Constructor & Destructor Documentation

◆ __construct()

LSItem::__construct ( string  $type,
string  $title,
string  $description,
string  $icon_path,
bool  $is_online,
int  $order_number,
ilLSPostCondition  $post_condition,
int  $ref_id 
)

Definition at line 35 of file LSItem.php.

References $description, $icon_path, $is_online, $order_number, $post_condition, $ref_id, $title, and $type.

44  {
45  $this->type = $type;
46  $this->title = $title;
47  $this->description = $description;
48  $this->icon_path = $icon_path;
49  $this->is_online = $is_online;
50  $this->order_number = $order_number;
51  $this->post_condition = $post_condition;
52  $this->ref_id = $ref_id;
53  }
string $type
Definition: LSItem.php:26
ilLSPostCondition $post_condition
Definition: LSItem.php:32
string $icon_path
Definition: LSItem.php:29
int $order_number
Definition: LSItem.php:31
bool $is_online
Definition: LSItem.php:30
string $description
Definition: LSItem.php:28
string $title
Definition: LSItem.php:27
int $ref_id
Definition: LSItem.php:33

Member Function Documentation

◆ getDescription()

LSItem::getDescription ( )

Definition at line 65 of file LSItem.php.

References $description.

Referenced by LSLearnerItem\__construct(), LSItemTest\testWithOnline(), LSItemTest\testWithOrderNumber(), and LSItemTest\testWithPostCondition().

65  : string
66  {
67  return $this->description;
68  }
string $description
Definition: LSItem.php:28
+ Here is the caller graph for this function:

◆ getIconPath()

LSItem::getIconPath ( )

Definition at line 70 of file LSItem.php.

References $icon_path.

Referenced by LSLearnerItem\__construct(), LSItemTest\testWithOnline(), LSItemTest\testWithOrderNumber(), and LSItemTest\testWithPostCondition().

70  : string
71  {
72  return $this->icon_path;
73  }
string $icon_path
Definition: LSItem.php:29
+ Here is the caller graph for this function:

◆ getOrderNumber()

LSItem::getOrderNumber ( )

Definition at line 80 of file LSItem.php.

References $order_number.

Referenced by LSLearnerItem\__construct(), LSItemTest\testWithOnline(), LSItemTest\testWithOrderNumber(), and LSItemTest\testWithPostCondition().

80  : int
81  {
82  return $this->order_number;
83  }
int $order_number
Definition: LSItem.php:31
+ Here is the caller graph for this function:

◆ getPostCondition()

LSItem::getPostCondition ( )

Definition at line 85 of file LSItem.php.

References $post_condition.

Referenced by LSLearnerItem\__construct(), LSItemTest\testWithOnline(), LSItemTest\testWithOrderNumber(), and LSItemTest\testWithPostCondition().

86  {
87  return $this->post_condition;
88  }
ilLSPostCondition $post_condition
Definition: LSItem.php:32
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ getRefId()

◆ getTitle()

LSItem::getTitle ( )

Definition at line 60 of file LSItem.php.

References $title.

Referenced by LSLearnerItem\__construct(), LSItemTest\testWithOnline(), LSItemTest\testWithOrderNumber(), and LSItemTest\testWithPostCondition().

60  : string
61  {
62  return $this->title;
63  }
string $title
Definition: LSItem.php:27
+ Here is the caller graph for this function:

◆ getType()

LSItem::getType ( )

Definition at line 55 of file LSItem.php.

References $type.

Referenced by LSLearnerItem\__construct(), ilLSViewFactory\getViewFor(), LSItemTest\testWithOnline(), LSItemTest\testWithOrderNumber(), and LSItemTest\testWithPostCondition().

55  : string
56  {
57  return $this->type;
58  }
string $type
Definition: LSItem.php:26
+ Here is the caller graph for this function:

◆ isOnline()

LSItem::isOnline ( )

Definition at line 75 of file LSItem.php.

References $is_online.

Referenced by LSLearnerItem\__construct(), ilLearnerProgressDB\isItemVisibleForUser(), LSItemTest\testWithOnline(), LSItemTest\testWithOrderNumber(), and LSItemTest\testWithPostCondition().

75  : bool
76  {
77  return $this->is_online;
78  }
bool $is_online
Definition: LSItem.php:30
+ Here is the caller graph for this function:

◆ withOnline()

LSItem::withOnline ( bool  $online)

Definition at line 95 of file LSItem.php.

Referenced by LSLearnerItemTest\testTurnedOffWithOnline(), and LSItemTest\testWithOnline().

95  : LSItem
96  {
97  $clone = clone $this;
98  $clone->is_online = $online;
99  return $clone;
100  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: LSItem.php:24
+ Here is the caller graph for this function:

◆ withOrderNumber()

LSItem::withOrderNumber ( int  $order_number)

Definition at line 102 of file LSItem.php.

References $order_number.

Referenced by LSLearnerItemTest\testTurnedOffWithOrderNumber(), and LSItemTest\testWithOrderNumber().

102  : LSItem
103  {
104  $clone = clone $this;
105  $clone->order_number = $order_number;
106  return $clone;
107  }
int $order_number
Definition: LSItem.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: LSItem.php:24
+ Here is the caller graph for this function:

◆ withPostCondition()

LSItem::withPostCondition ( ilLSPostCondition  $post_condition)

Definition at line 109 of file LSItem.php.

References $post_condition.

Referenced by LSLearnerItemTest\testTurnedOffWithPostCondition(), and LSItemTest\testWithPostCondition().

109  : LSItem
110  {
111  $clone = clone $this;
112  $clone->post_condition = $post_condition;
113  return $clone;
114  }
ilLSPostCondition $post_condition
Definition: LSItem.php:32
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: LSItem.php:24
+ Here is the caller graph for this function:

Field Documentation

◆ $description

string LSItem::$description
protected

Definition at line 28 of file LSItem.php.

Referenced by __construct(), and getDescription().

◆ $icon_path

string LSItem::$icon_path
protected

Definition at line 29 of file LSItem.php.

Referenced by __construct(), and getIconPath().

◆ $is_online

bool LSItem::$is_online
protected

Definition at line 30 of file LSItem.php.

Referenced by __construct(), and isOnline().

◆ $order_number

int LSItem::$order_number
protected

Definition at line 31 of file LSItem.php.

Referenced by __construct(), getOrderNumber(), and withOrderNumber().

◆ $post_condition

ilLSPostCondition LSItem::$post_condition
protected

Definition at line 32 of file LSItem.php.

Referenced by __construct(), getPostCondition(), and withPostCondition().

◆ $ref_id

int LSItem::$ref_id
protected

Definition at line 33 of file LSItem.php.

Referenced by __construct(), and getRefId().

◆ $title

string LSItem::$title
protected

Definition at line 27 of file LSItem.php.

Referenced by __construct(), and getTitle().

◆ $type

string LSItem::$type
protected

Definition at line 26 of file LSItem.php.

Referenced by __construct(), and getType().


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