ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Add learning progress and availability information to the LSItem. More...
Public Member Functions | |
__construct (int $usr_id, \Closure $learning_progress_status, int $availability_status, ILIAS\KioskMode\State $kiosk_state, LSItem $ls_item) | |
getUserId () | |
getLearningProgressStatus () | |
Calling a closure here is a breach of the "immutable object" paradigm and no good practice at all! Do NOT copy! However, this fixes #27853 for relase 5.4 - with release 6, the issue (among others) is solved by restructuring dependencies and re-ordering calls and instantiation. More... | |
getAvailability () | |
getState () | |
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 | |
$kiosk_state | |
Protected Attributes inherited from LSItem | |
$type | |
$title | |
$description | |
$icon_path | |
$is_online | |
$order_number | |
$post_condition | |
$ref_id | |
Add learning progress and availability information to the LSItem.
Definition at line 11 of file LSLearnerItem.php.
LSLearnerItem::__construct | ( | int | $usr_id, |
\Closure | $learning_progress_status, | ||
int | $availability_status, | ||
ILIAS\KioskMode\State | $kiosk_state, | ||
LSItem | $ls_item | ||
) |
Definition at line 34 of file LSLearnerItem.php.
References $availability_status, $kiosk_state, $learning_progress_status, $usr_id, LSItem\getDescription(), LSItem\getIconPath(), LSItem\getOrderNumber(), LSItem\getPostCondition(), LSItem\getRefId(), LSItem\getTitle(), LSItem\getType(), and LSItem\isOnline().
LSLearnerItem::getAvailability | ( | ) |
LSLearnerItem::getLearningProgressStatus | ( | ) |
Calling a closure here is a breach of the "immutable object" paradigm and no good practice at all! Do NOT copy! However, this fixes #27853 for relase 5.4 - with release 6, the issue (among others) is solved by restructuring dependencies and re-ordering calls and instantiation.
Definition at line 69 of file LSLearnerItem.php.
References $learning_progress_status, LSItem\getRefId(), and getUserId().
LSLearnerItem::getState | ( | ) |
LSLearnerItem::getUserId | ( | ) |
Definition at line 58 of file LSLearnerItem.php.
References $usr_id.
Referenced by getLearningProgressStatus().
LSLearnerItem::withOnline | ( | bool | $online | ) |
Definition at line 96 of file LSLearnerItem.php.
LSLearnerItem::withOrderNumber | ( | int | $position | ) |
Definition at line 91 of file LSLearnerItem.php.
LSLearnerItem::withPostCondition | ( | ilLSPostCondition | $postcondition | ) |
Definition at line 86 of file LSLearnerItem.php.
|
protected |
Definition at line 26 of file LSLearnerItem.php.
Referenced by __construct(), and getAvailability().
|
protected |
Definition at line 31 of file LSLearnerItem.php.
Referenced by __construct(), and getState().
|
protected |
Definition at line 21 of file LSLearnerItem.php.
Referenced by __construct(), and getLearningProgressStatus().
|
protected |
Definition at line 16 of file LSLearnerItem.php.
Referenced by __construct(), and getUserId().