ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables 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 $postcondition)
 
 withOrderNumber (int $position)
 
 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)
 
 getType ()
 
 getTitle ()
 
 getDescription ()
 
 getIconPath ()
 
 isOnline ()
 
 withOnline (bool $online)
 
 getOrderNumber ()
 
 withOrderNumber (int $order_number)
 
 getPostCondition ()
 
 withPostCondition (ilLSPostCondition $postcondition)
 
 getRefId ()
 

Protected Attributes

 $usr_id
 
 $learning_progress_status
 
 $availability_status
 
- Protected Attributes inherited from LSItem
 $type
 
 $title
 
 $description
 
 $icon_path
 
 $is_online
 
 $order_number
 
 $post_condition
 
 $ref_id
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 28 of file LSLearnerItem.php.

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

33  {
34  $this->usr_id = $usr_id;
35  $this->learning_progress_status = $learning_progress_status;
36  $this->availability_status = $availability_status;
38  $ls_item->getType(),
39  $ls_item->getTitle(),
40  $ls_item->getDescription(),
41  $ls_item->getIconPath(),
42  $ls_item->isOnline(),
43  $ls_item->getOrderNumber(),
44  $ls_item->getPostCondition(),
45  $ls_item->getRefId()
46  );
47  }
getTitle()
Definition: LSItem.php:78
getOrderNumber()
Definition: LSItem.php:105
getPostCondition()
Definition: LSItem.php:117
getDescription()
Definition: LSItem.php:83
getRefId()
Definition: LSItem.php:129
getIconPath()
Definition: LSItem.php:88
isOnline()
Definition: LSItem.php:93
__construct(Container $dic, ilPlugin $plugin)
getType()
Definition: LSItem.php:73
+ Here is the call graph for this function:

Member Function Documentation

◆ getAvailability()

LSLearnerItem::getAvailability ( )

Definition at line 59 of file LSLearnerItem.php.

References $availability_status.

59  : int
60  {
62  }

◆ getLearningProgressStatus()

LSLearnerItem::getLearningProgressStatus ( )

Definition at line 54 of file LSLearnerItem.php.

References $learning_progress_status.

54  : int
55  {
57  }

◆ getUserId()

LSLearnerItem::getUserId ( )

Definition at line 49 of file LSLearnerItem.php.

References $usr_id.

49  : int
50  {
51  return $this->usr_id;
52  }

◆ withOnline()

LSLearnerItem::withOnline ( bool  $online)

Definition at line 74 of file LSLearnerItem.php.

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

◆ withOrderNumber()

LSLearnerItem::withOrderNumber ( int  $position)

Definition at line 69 of file LSLearnerItem.php.

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

◆ withPostCondition()

LSLearnerItem::withPostCondition ( ilLSPostCondition  $postcondition)

Definition at line 64 of file LSLearnerItem.php.

64  : LSItem
65  {
66  throw new \LogicException('keep this item receptive only');
67  }
Data holding class LSItem .
Definition: LSItem.php:11

Field Documentation

◆ $availability_status

LSLearnerItem::$availability_status
protected

Definition at line 26 of file LSLearnerItem.php.

Referenced by __construct(), and getAvailability().

◆ $learning_progress_status

LSLearnerItem::$learning_progress_status
protected

Definition at line 21 of file LSLearnerItem.php.

Referenced by __construct(), and getLearningProgressStatus().

◆ $usr_id

LSLearnerItem::$usr_id
protected

Definition at line 16 of file LSLearnerItem.php.

Referenced by __construct(), and getUserId().


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