ILIAS  release_8 Revision v8.24
LSLearnerItem.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
24class LSLearnerItem extends LSItem
25{
26 protected int $usr_id;
28 protected int $availability_status;
29
30 public function __construct(
31 int $usr_id,
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 );
49 }
50
51 public function getUserId(): int
52 {
53 return $this->usr_id;
54 }
55
56 public function getLearningProgressStatus(): int
57 {
59 }
60
61 public function getAvailability(): int
62 {
64 }
65
67 {
68 throw new \LogicException('keep this item receptive only');
69 }
70
71 public function withOrderNumber(int $order_number): LSItem
72 {
73 throw new \LogicException('keep this item receptive only');
74 }
75
76 public function withOnline(bool $online): LSItem
77 {
78 throw new \LogicException('keep this item receptive only');
79 }
80}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: LSItem.php:25
getRefId()
Definition: LSItem.php:90
ilLSPostCondition $post_condition
Definition: LSItem.php:32
getIconPath()
Definition: LSItem.php:70
getOrderNumber()
Definition: LSItem.php:80
int $order_number
Definition: LSItem.php:31
getType()
Definition: LSItem.php:55
getDescription()
Definition: LSItem.php:65
getTitle()
Definition: LSItem.php:60
getPostCondition()
Definition: LSItem.php:85
isOnline()
Definition: LSItem.php:75
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withOnline(bool $online)
int $availability_status
withOrderNumber(int $order_number)
__construct(int $usr_id, int $learning_progress_status, int $availability_status, LSItem $ls_item)
int $learning_progress_status
withPostCondition(ilLSPostCondition $post_condition)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc