forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
/** | ||
* @author Niels Theen <[email protected]> | ||
*/ | ||
class ilExercisePlaceHolderValues implements ilCertificatePlaceholderValues | ||
class ilExercisePlaceholderValues implements ilCertificatePlaceholderValues | ||
{ | ||
/** | ||
* @var ilLanguage|null | ||
|
@@ -14,7 +14,7 @@ class ilExercisePlaceHolderValues implements ilCertificatePlaceholderValues | |
/** | ||
* @var ilDefaultPlaceholderValues|null | ||
*/ | ||
private $defaultPlaceHolderValuesObject; | ||
private $defaultPlaceholderValuesObject; | ||
|
||
/** | ||
* @var ilCertificateLPMarksHelper|null | ||
|
@@ -78,7 +78,7 @@ public function __construct( | |
if (null === $defaultPlaceholderValues) { | ||
$defaultPlaceholderValues = new ilDefaultPlaceholderValues(); | ||
} | ||
$this->defaultPlaceHolderValuesObject = $defaultPlaceholderValues; | ||
$this->defaultPlaceholderValuesObject = $defaultPlaceholderValues; | ||
|
||
if (null === $objectHelper) { | ||
$objectHelper = new ilCertificateObjectHelper(); | ||
|
@@ -134,7 +134,7 @@ public function getPlaceholderValues(int $userId, int $objId) : array | |
|
||
$completionDate = $this->lpStatusHelper->lookupStatusChanged($objId, $userId); | ||
|
||
$placeHolders = $this->defaultPlaceHolderValuesObject->getPlaceholderValues($userId, $objId); | ||
$placeHolders = $this->defaultPlaceholderValuesObject->getPlaceholderValues($userId, $objId); | ||
|
||
$placeHolders['RESULT_PASSED'] = $this->utilHelper->prepareFormOutput($this->language->txt('exc_' . $status)); | ||
$placeHolders['RESULT_MARK'] = $this->utilHelper->prepareFormOutput($mark); | ||
|
@@ -164,7 +164,7 @@ public function getPlaceholderValues(int $userId, int $objId) : array | |
*/ | ||
public function getPlaceholderValuesForPreview(int $userId, int $objId) : array | ||
{ | ||
$placeholders = $this->defaultPlaceHolderValuesObject->getPlaceholderValuesForPreview($userId, $objId); | ||
$placeholders = $this->defaultPlaceholderValuesObject->getPlaceholderValuesForPreview($userId, $objId); | ||
|
||
$object = $this->objectHelper->getInstanceByObjId($objId); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ | |
/** | ||
* @author Niels Theen <[email protected]> | ||
*/ | ||
class ilTestPlaceHolderValues implements ilCertificatePlaceholderValues | ||
class ilTestPlaceholderValues implements ilCertificatePlaceholderValues | ||
{ | ||
/** | ||
* @var ilDefaultPlaceholderValues | ||
*/ | ||
private $defaultPlaceHolderValuesObject; | ||
private $defaultPlaceholderValuesObject; | ||
|
||
/** | ||
* @var ilCertificateObjectHelper|null | ||
|
@@ -75,7 +75,7 @@ public function __construct( | |
if (null === $defaultPlaceholderValues) { | ||
$defaultPlaceholderValues = new ilDefaultPlaceholderValues(); | ||
} | ||
$this->defaultPlaceHolderValuesObject = $defaultPlaceholderValues; | ||
$this->defaultPlaceholderValuesObject = $defaultPlaceholderValues; | ||
|
||
if (null === $objectHelper) { | ||
$objectHelper = new ilCertificateObjectHelper(); | ||
|
@@ -153,7 +153,7 @@ public function getPlaceholderValues(int $userId, int $objId): array | |
$completionDate = $this->lpStatusHelper->lookupStatusChanged($objId, $userId); | ||
} | ||
|
||
$placeholders = $this->defaultPlaceHolderValuesObject->getPlaceholderValues($userId, $objId); | ||
$placeholders = $this->defaultPlaceholderValuesObject->getPlaceholderValues($userId, $objId); | ||
|
||
$placeholders['RESULT_PASSED'] = $this->utilHelper->prepareFormOutput($passed); | ||
$placeholders['RESULT_POINTS'] = $this->utilHelper->prepareFormOutput($result_array['test']['total_reached_points']); | ||
|
@@ -187,7 +187,7 @@ public function getPlaceholderValues(int $userId, int $objId): array | |
*/ | ||
public function getPlaceholderValuesForPreview(int $userId, int $objId) : array | ||
{ | ||
$placeholders = $this->defaultPlaceHolderValuesObject->getPlaceholderValuesForPreview($userId, $objId); | ||
$placeholders = $this->defaultPlaceholderValuesObject->getPlaceholderValuesForPreview($userId, $objId); | ||
|
||
$object = $this->objectHelper->getInstanceByObjId($objId); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
/** | ||
* @author Niels Theen <[email protected]> | ||
*/ | ||
class ilExercisePlaceHolderValuesTest extends PHPUnit_Framework_TestCase | ||
class ilExercisePlaceholderValuesTest extends PHPUnit_Framework_TestCase | ||
{ | ||
public function testGetPlaceholderValues() | ||
{ | ||
|
@@ -70,7 +70,7 @@ public function testGetPlaceholderValues() | |
->willReturn('2018-09-10 12:01:33'); | ||
|
||
|
||
$placeHolderObject = new ilExercisePlaceHolderValues( | ||
$placeHolderObject = new ilExercisePlaceholderValues( | ||
$defaultPlaceholders, | ||
$language, | ||
$objectHelper, | ||
|
@@ -146,7 +146,7 @@ public function testGetPlaceholderValuesForPreview() | |
->method('getPlaceholderValuesForPreview') | ||
->willReturn(array('SOME_PLACEHOLDER' => 'something')); | ||
|
||
$placeHolderObject = new ilExercisePlaceHolderValues( | ||
$placeHolderObject = new ilExercisePlaceholderValues( | ||
$defaultPlaceholders, | ||
$language, | ||
$objectHelper, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
/** | ||
* @author Niels Theen <[email protected]> | ||
*/ | ||
class ilTestPlaceHolderValuesTest extends PHPUnit_Framework_TestCase | ||
class ilTestPlaceholderValuesTest extends PHPUnit_Framework_TestCase | ||
{ | ||
public function testA() | ||
{ | ||
|
@@ -99,7 +99,7 @@ public function testA() | |
$dateHelper->method('formatDateTime') | ||
->willReturn('2018-01-12 10:32:01'); | ||
|
||
$placeholdervalues = new ilTestPlaceHolderValues( | ||
$placeholdervalues = new ilTestPlaceholderValues( | ||
$defaultPlaceholderValues, | ||
$language, | ||
$objectHelper, | ||
|
@@ -180,7 +180,7 @@ public function testGetPlaceholderValuesForPreview() | |
$dateHelper = $this->getMockBuilder('ilCertificateDateHelper') | ||
->getMock(); | ||
|
||
$placeholdervalues = new ilTestPlaceHolderValues( | ||
$placeholdervalues = new ilTestPlaceholderValues( | ||
$defaultPlaceholderValues, | ||
$language, | ||
$objectHelper, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters