ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilLPStatusCmiXapiPassed.php
Go to the documentation of this file.
1 <?php
2 
3 declare(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() === 'passed') {
26  return true;
27  }
28 
29  return false;
30  }
31 
32  protected function resultSatisfyFailed(ilCmiXapiResult $result): bool
33  {
34  return false;
35  }
36 }
resultSatisfyFailed(ilCmiXapiResult $result)
resultSatisfyCompleted(ilCmiXapiResult $result)
Class ilLPStatusCmiXapiPassed.