ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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 }
getRefId()
Definition: LSItem.php:93
getLPMode()
Definition: LSItem.php:98
getIconPath()
Definition: LSItem.php:73
getOrderNumber()
Definition: LSItem.php:83
getType()
Definition: LSItem.php:58
getDescription()
Definition: LSItem.php:68
getTitle()
Definition: LSItem.php:63
getPostCondition()
Definition: LSItem.php:88
isOnline()
Definition: LSItem.php:78
int $availability_status
int $learning_progress_status
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getAvailability()

LSLearnerItem::getAvailability ( )

Definition at line 62 of file LSLearnerItem.php.

62 : int
63 {
65 }

References $availability_status.

◆ getLearningProgressStatus()

LSLearnerItem::getLearningProgressStatus ( )

Definition at line 57 of file LSLearnerItem.php.

57 : int
58 {
60 }

References $learning_progress_status.

Referenced by ilLSPlayer\getCurrentItemLearningProgress().

+ Here is the caller graph for this function:

◆ getUserId()

LSLearnerItem::getUserId ( )

Definition at line 52 of file LSLearnerItem.php.

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

References $usr_id.

◆ withOnline()

LSLearnerItem::withOnline ( bool  $online)

Reimplemented from LSItem.

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

◆ withOrderNumber()

LSLearnerItem::withOrderNumber ( int  $order_number)

Reimplemented from LSItem.

Definition at line 72 of file LSLearnerItem.php.

72 : LSItem
73 {
74 throw new \LogicException('keep this item receptive only');
75 }

◆ withPostCondition()

LSLearnerItem::withPostCondition ( ilLSPostCondition  $post_condition)

Reimplemented from LSItem.

Definition at line 67 of file LSLearnerItem.php.

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

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: