ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LSLearnerItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
24 class LSLearnerItem extends LSItem
25 {
26  protected int $usr_id;
28  protected int $availability_status;
29 
30  public function __construct(
31  int $usr_id,
32  int $learning_progress_status,
33  int $availability_status,
34  LSItem $ls_item
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  }
51 
52  public function getUserId(): int
53  {
54  return $this->usr_id;
55  }
56 
57  public function getLearningProgressStatus(): int
58  {
60  }
61 
62  public function getAvailability(): int
63  {
65  }
66 
68  {
69  throw new \LogicException('keep this item receptive only');
70  }
71 
72  public function withOrderNumber(int $order_number): LSItem
73  {
74  throw new \LogicException('keep this item receptive only');
75  }
76 
77  public function withOnline(bool $online): LSItem
78  {
79  throw new \LogicException('keep this item receptive only');
80  }
81 }
getTitle()
Definition: LSItem.php:63
ilLSPostCondition $post_condition
Definition: LSItem.php:32
getLPMode()
Definition: LSItem.php:98
getOrderNumber()
Definition: LSItem.php:83
getPostCondition()
Definition: LSItem.php:88
__construct(int $usr_id, int $learning_progress_status, int $availability_status, LSItem $ls_item)
getDescription()
Definition: LSItem.php:68
withPostCondition(ilLSPostCondition $post_condition)
int $order_number
Definition: LSItem.php:31
getRefId()
Definition: LSItem.php:93
getIconPath()
Definition: LSItem.php:73
withOrderNumber(int $order_number)
isOnline()
Definition: LSItem.php:78
Data holding class LSItem .
Definition: LSItem.php:24
withOnline(bool $online)
int $learning_progress_status
int $availability_status
A PostCondition does restrict the progression of a user through the learning sequence.
__construct(Container $dic, ilPlugin $plugin)
getType()
Definition: LSItem.php:58
Add learning progress and availability information to the LSItem.