ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LSLearnerItem Class Reference

Add learning progress and availability information to the LSItem. More...

+ Inheritance diagram for LSLearnerItem:
+ Collaboration diagram for LSLearnerItem:

Public Member Functions

 __construct (int $usr_id, int $learning_progress_status, int $availability_status, LSItem $ls_item)
 
 getUserId ()
 
 getLearningProgressStatus ()
 
 getAvailability ()
 
 withPostCondition (ilLSPostCondition $post_condition)
 
 withOrderNumber (int $order_number)
 
 withOnline (bool $online)
 
- Public Member Functions inherited from LSItem
 __construct (string $type, string $title, string $description, string $icon_path, bool $is_online, int $order_number, ilLSPostCondition $post_condition, int $ref_id, int $lp_mode)
 
 getType ()
 
 getTitle ()
 
 getDescription ()
 
 getIconPath ()
 
 isOnline ()
 
 getOrderNumber ()
 
 getPostCondition ()
 
 getRefId ()
 
 getLPMode ()
 
 withOnline (bool $online)
 
 withOrderNumber (int $order_number)
 
 withPostCondition (ilLSPostCondition $post_condition)
 

Protected Attributes

int $usr_id
 
int $learning_progress_status
 
int $availability_status
 
- Protected Attributes inherited from LSItem
string $type
 
string $title
 
string $description
 
string $icon_path
 
bool $is_online
 
int $order_number
 
ilLSPostCondition $post_condition
 
int $ref_id
 
int $lp_mode
 

Detailed Description

Add learning progress and availability information to the LSItem.

Definition at line 24 of file LSLearnerItem.php.

Constructor & Destructor Documentation

◆ __construct()

LSLearnerItem::__construct ( int  $usr_id,
int  $learning_progress_status,
int  $availability_status,
LSItem  $ls_item 
)

Definition at line 30 of file LSLearnerItem.php.

References $availability_status, $learning_progress_status, $usr_id, ILIAS\GlobalScreen\Provider\__construct(), LSItem\getDescription(), LSItem\getIconPath(), LSItem\getLPMode(), LSItem\getOrderNumber(), LSItem\getPostCondition(), LSItem\getRefId(), LSItem\getTitle(), LSItem\getType(), and LSItem\isOnline().

35  {
36  $this->usr_id = $usr_id;
37  $this->learning_progress_status = $learning_progress_status;
38  $this->availability_status = $availability_status;
40  $ls_item->getType(),
41  $ls_item->getTitle(),
42  $ls_item->getDescription(),
43  $ls_item->getIconPath(),
44  $ls_item->isOnline(),
45  $ls_item->getOrderNumber(),
46  $ls_item->getPostCondition(),
47  $ls_item->getRefId(),
48  $ls_item->getLPMode()
49  );
50  }
getTitle()
Definition: LSItem.php:63
getLPMode()
Definition: LSItem.php:98
getOrderNumber()
Definition: LSItem.php:83
getPostCondition()
Definition: LSItem.php:88
getDescription()
Definition: LSItem.php:68
getRefId()
Definition: LSItem.php:93
getIconPath()
Definition: LSItem.php:73
isOnline()
Definition: LSItem.php:78
int $learning_progress_status
int $availability_status
__construct(Container $dic, ilPlugin $plugin)
getType()
Definition: LSItem.php:58
+ Here is the call graph for this function:

Member Function Documentation

◆ getAvailability()

LSLearnerItem::getAvailability ( )

Definition at line 62 of file LSLearnerItem.php.

References $availability_status.

62  : int
63  {
65  }
int $availability_status

◆ getLearningProgressStatus()

LSLearnerItem::getLearningProgressStatus ( )

Definition at line 57 of file LSLearnerItem.php.

References $learning_progress_status.

57  : int
58  {
60  }
int $learning_progress_status

◆ getUserId()

LSLearnerItem::getUserId ( )

Definition at line 52 of file LSLearnerItem.php.

References $usr_id.

52  : int
53  {
54  return $this->usr_id;
55  }

◆ withOnline()

LSLearnerItem::withOnline ( bool  $online)

Definition at line 77 of file LSLearnerItem.php.

77  : LSItem
78  {
79  throw new \LogicException('keep this item receptive only');
80  }
Data holding class LSItem .
Definition: LSItem.php:24

◆ withOrderNumber()

LSLearnerItem::withOrderNumber ( int  $order_number)

Definition at line 72 of file LSLearnerItem.php.

72  : LSItem
73  {
74  throw new \LogicException('keep this item receptive only');
75  }
Data holding class LSItem .
Definition: LSItem.php:24

◆ withPostCondition()

LSLearnerItem::withPostCondition ( ilLSPostCondition  $post_condition)

Definition at line 67 of file LSLearnerItem.php.

67  : LSItem
68  {
69  throw new \LogicException('keep this item receptive only');
70  }
Data holding class LSItem .
Definition: LSItem.php:24

Field Documentation

◆ $availability_status

int LSLearnerItem::$availability_status
protected

Definition at line 28 of file LSLearnerItem.php.

Referenced by __construct(), and getAvailability().

◆ $learning_progress_status

int LSLearnerItem::$learning_progress_status
protected

Definition at line 27 of file LSLearnerItem.php.

Referenced by __construct(), and getLearningProgressStatus().

◆ $usr_id

int LSLearnerItem::$usr_id
protected

Definition at line 26 of file LSLearnerItem.php.

Referenced by __construct(), and getUserId().


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