ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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.

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 }
getRefId()
Definition: LSItem.php:129
getIconPath()
Definition: LSItem.php:88
getOrderNumber()
Definition: LSItem.php:105
getType()
Definition: LSItem.php:73
getDescription()
Definition: LSItem.php:83
getTitle()
Definition: LSItem.php:78
getPostCondition()
Definition: LSItem.php:117
isOnline()
Definition: LSItem.php:93
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

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().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAvailability()

LSLearnerItem::getAvailability ( )

Definition at line 59 of file LSLearnerItem.php.

59 : int
60 {
62 }

References $availability_status.

◆ getLearningProgressStatus()

LSLearnerItem::getLearningProgressStatus ( )

Definition at line 54 of file LSLearnerItem.php.

54 : int
55 {
57 }

References $learning_progress_status.

Referenced by ilLSPlayer\getCurrentItemLearningProgress().

+ Here is the caller graph for this function:

◆ getUserId()

LSLearnerItem::getUserId ( )

Definition at line 49 of file LSLearnerItem.php.

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

References $usr_id.

◆ withOnline()

LSLearnerItem::withOnline ( bool  $online)

Reimplemented from LSItem.

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:12

◆ withOrderNumber()

LSLearnerItem::withOrderNumber ( int  $position)

Reimplemented from LSItem.

Definition at line 69 of file LSLearnerItem.php.

69 : LSItem
70 {
71 throw new \LogicException('keep this item receptive only');
72 }

◆ withPostCondition()

LSLearnerItem::withPostCondition ( ilLSPostCondition  $postcondition)

Reimplemented from LSItem.

Definition at line 64 of file LSLearnerItem.php.

64 : LSItem
65 {
66 throw new \LogicException('keep this item receptive only');
67 }

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: