ILIAS  release_8 Revision v8.24
class.ilLPStatusCmiXapiCompletedOrPassed.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=0);
4
5/******************************************************************************
6 * This file is part of ILIAS, a powerful learning management system.
7 * ILIAS is licensed with the GPL-3.0, you should have received a copy
8 * of said license along with the source code.
9 * If this is not the case or you just want to try ILIAS, you'll find
10 * us at:
11 * https://www.ilias.de
12 * https://github.com/ILIAS-eLearning
13 *****************************************************************************/
14
22{
23 protected function resultSatisfyCompleted(ilCmiXapiResult $result): bool
24 {
25 if ($result->getStatus() === 'completed') {
26 return true;
27 }
28
29 if ($result->getStatus() === 'passed') {
30 return true;
31 }
32
33 return false;
34 }
35
36 protected function resultSatisfyFailed(ilCmiXapiResult $result): bool
37 {
38 return false;
39 }
40}