ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
LSItem Class Reference

Data holding class LSItem . 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 ()
 
 withOnline (bool $online)
 
 getOrderNumber ()
 
 withOrderNumber (int $order_number)
 
 getPostCondition ()
 
 withPostCondition (ilLSPostCondition $postcondition)
 
 getRefId ()
 

Protected Attributes

 $type
 
 $title
 
 $description
 
 $icon_path
 
 $is_online
 
 $order_number
 
 $post_condition
 
 $ref_id
 

Detailed Description

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 53 of file LSItem.php.

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

62  {
63  $this->type = $type;
64  $this->title = $title;
65  $this->description = $description;
66  $this->icon_path = $icon_path;
67  $this->is_online = $is_online;
68  $this->order_number = $order_number;
69  $this->post_condition = $post_condition;
70  $this->ref_id = $ref_id;
71  }
$title
Definition: LSItem.php:21
$type
Definition: LSItem.php:16
$ref_id
Definition: LSItem.php:51
$is_online
Definition: LSItem.php:36
$description
Definition: LSItem.php:26
$post_condition
Definition: LSItem.php:46
$order_number
Definition: LSItem.php:41
$icon_path
Definition: LSItem.php:31

Member Function Documentation

◆ getDescription()

LSItem::getDescription ( )

Definition at line 83 of file LSItem.php.

References $description.

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

83  : string
84  {
85  return $this->description;
86  }
$description
Definition: LSItem.php:26
+ Here is the caller graph for this function:

◆ getIconPath()

LSItem::getIconPath ( )

Definition at line 88 of file LSItem.php.

References $icon_path.

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

88  : string
89  {
90  return $this->icon_path;
91  }
$icon_path
Definition: LSItem.php:31
+ Here is the caller graph for this function:

◆ getOrderNumber()

LSItem::getOrderNumber ( )

Definition at line 105 of file LSItem.php.

References $order_number.

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

105  : int
106  {
107  return $this->order_number;
108  }
$order_number
Definition: LSItem.php:41
+ Here is the caller graph for this function:

◆ getPostCondition()

LSItem::getPostCondition ( )

Definition at line 117 of file LSItem.php.

References $post_condition.

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

118  {
119  return $this->post_condition;
120  }
$post_condition
Definition: LSItem.php:46
A PostCondition does restrict the progression of a user through the learning sequence.
+ Here is the caller graph for this function:

◆ getRefId()

◆ getTitle()

LSItem::getTitle ( )

Definition at line 78 of file LSItem.php.

References $title.

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

78  : string
79  {
80  return $this->title;
81  }
$title
Definition: LSItem.php:21
+ Here is the caller graph for this function:

◆ getType()

LSItem::getType ( )

Definition at line 73 of file LSItem.php.

References $type.

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

73  : string
74  {
75  return $this->type;
76  }
$type
Definition: LSItem.php:16
+ Here is the caller graph for this function:

◆ isOnline()

LSItem::isOnline ( )

Definition at line 93 of file LSItem.php.

References $is_online.

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

93  : bool
94  {
95  return $this->is_online;
96  }
$is_online
Definition: LSItem.php:36
+ Here is the caller graph for this function:

◆ withOnline()

LSItem::withOnline ( bool  $online)

Definition at line 98 of file LSItem.php.

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

98  : LSItem
99  {
100  $clone = clone $this;
101  $clone->is_online = $online;
102  return $clone;
103  }
Data holding class LSItem .
Definition: LSItem.php:11
+ Here is the caller graph for this function:

◆ withOrderNumber()

LSItem::withOrderNumber ( int  $order_number)

Definition at line 110 of file LSItem.php.

References $order_number.

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

110  : LSItem
111  {
112  $clone = clone $this;
113  $clone->order_number = $order_number;
114  return $clone;
115  }
Data holding class LSItem .
Definition: LSItem.php:11
$order_number
Definition: LSItem.php:41
+ Here is the caller graph for this function:

◆ withPostCondition()

LSItem::withPostCondition ( ilLSPostCondition  $postcondition)

Definition at line 122 of file LSItem.php.

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

122  : LSItem
123  {
124  $clone = clone $this;
125  $clone->post_condition = $postcondition;
126  return $clone;
127  }
Data holding class LSItem .
Definition: LSItem.php:11
+ Here is the caller graph for this function:

Field Documentation

◆ $description

LSItem::$description
protected

Definition at line 26 of file LSItem.php.

Referenced by __construct(), and getDescription().

◆ $icon_path

LSItem::$icon_path
protected

Definition at line 31 of file LSItem.php.

Referenced by __construct(), and getIconPath().

◆ $is_online

LSItem::$is_online
protected

Definition at line 36 of file LSItem.php.

Referenced by __construct(), and isOnline().

◆ $order_number

LSItem::$order_number
protected

Definition at line 41 of file LSItem.php.

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

◆ $post_condition

LSItem::$post_condition
protected

Definition at line 46 of file LSItem.php.

Referenced by __construct(), and getPostCondition().

◆ $ref_id

LSItem::$ref_id
protected

Definition at line 51 of file LSItem.php.

Referenced by __construct(), and getRefId().

◆ $title

LSItem::$title
protected

Definition at line 21 of file LSItem.php.

Referenced by __construct(), and getTitle().

◆ $type

LSItem::$type
protected

Definition at line 16 of file LSItem.php.

Referenced by __construct(), and getType().


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