ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
LSLearnerItem Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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)
 
 getType ()
 
 getTitle ()
 
 getDescription ()
 
 getIconPath ()
 
 isOnline ()
 
 getOrderNumber ()
 
 getPostCondition ()
 
 getRefId ()
 
 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
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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\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  );
49  }
getTitle()
Definition: LSItem.php:60
getOrderNumber()
Definition: LSItem.php:80
getPostCondition()
Definition: LSItem.php:85
getDescription()
Definition: LSItem.php:65
getRefId()
Definition: LSItem.php:90
getIconPath()
Definition: LSItem.php:70
isOnline()
Definition: LSItem.php:75
int $learning_progress_status
int $availability_status
__construct(Container $dic, ilPlugin $plugin)
getType()
Definition: LSItem.php:55
+ Here is the call graph for this function:

Member Function Documentation

◆ getAvailability()

LSLearnerItem::getAvailability ( )

Definition at line 61 of file LSLearnerItem.php.

References $availability_status.

61  : int
62  {
64  }
int $availability_status

◆ getLearningProgressStatus()

LSLearnerItem::getLearningProgressStatus ( )

Definition at line 56 of file LSLearnerItem.php.

References $learning_progress_status.

56  : int
57  {
59  }
int $learning_progress_status

◆ getUserId()

LSLearnerItem::getUserId ( )

Definition at line 51 of file LSLearnerItem.php.

References $usr_id.

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

◆ withOnline()

LSLearnerItem::withOnline ( bool  $online)

Definition at line 76 of file LSLearnerItem.php.

76  : LSItem
77  {
78  throw new \LogicException('keep this item receptive only');
79  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: LSItem.php:24

◆ withOrderNumber()

LSLearnerItem::withOrderNumber ( int  $order_number)

Definition at line 71 of file LSLearnerItem.php.

71  : LSItem
72  {
73  throw new \LogicException('keep this item receptive only');
74  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: LSItem.php:24

◆ withPostCondition()

LSLearnerItem::withPostCondition ( ilLSPostCondition  $post_condition)

Definition at line 66 of file LSLearnerItem.php.

66  : LSItem
67  {
68  throw new \LogicException('keep this item receptive only');
69  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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: