|
| __construct (ilDefaultPlaceholderValues $defaultPlaceholderValues=null, ilLanguage $language=null, ilCertificateObjectHelper $objectHelper=null, ilCertificateTestObjectHelper $testObjectHelper=null, ilCertificateUserObjectHelper $userObjectHelper=null, ilCertificateLPStatusHelper $lpStatusHelper=null, ilCertificateUtilHelper $utilHelper=null, ilCertificateDateHelper $dateHelper=null) |
|
| getPlaceholderValuesForPreview (int $userId, int $objId) |
| This method is different then the 'getPlaceholderValues' method, this method is used to create a placeholder value array containing dummy values that is used to create a preview certificate. More...
|
|
| getPlaceholderValues (int $userId, int $objId) |
| This method MUST return an array that contains the actual data for the given user of the given object. More...
|
|
◆ __construct()
◆ getPlaceholderValuesForPreview()
ilTestPlaceholderValues::getPlaceholderValuesForPreview |
( |
int |
$userId, |
|
|
int |
$objId |
|
) |
| |
This method is different then the 'getPlaceholderValues' method, this method is used to create a placeholder value array containing dummy values that is used to create a preview certificate.
- Parameters
-
- Returns
- array
Implements ilCertificatePlaceholderValues.
Definition at line 188 of file class.ilTestPlaceholderValues.php.
190 $placeholders = $this->defaultPlaceholderValuesObject->getPlaceholderValuesForPreview($userId, $objId);
192 $object = $this->objectHelper->getInstanceByObjId($objId);
194 $placeholders[
'RESULT_PASSED'] = $this->utilHelper->prepareFormOutput($this->
language->txt(
'certificate_var_result_passed'));
195 $placeholders[
'RESULT_POINTS'] = $this->utilHelper->prepareFormOutput($this->
language->txt(
'certificate_var_result_points'));
196 $placeholders[
'RESULT_PERCENT'] = $this->utilHelper->prepareFormOutput($this->
language->txt(
'certificate_var_result_percent'));
197 $placeholders[
'MAX_POINTS'] = $this->utilHelper->prepareFormOutput($this->
language->txt(
'certificate_var_max_points'));
198 $placeholders[
'RESULT_MARK_SHORT'] = $this->utilHelper->prepareFormOutput($this->
language->txt(
'certificate_var_result_mark_short'));
199 $placeholders[
'RESULT_MARK_LONG'] = $this->utilHelper->prepareFormOutput($this->
language->txt(
'certificate_var_result_mark_long'));
200 $placeholders[
'TEST_TITLE'] = $this->utilHelper->prepareFormOutput($object->getTitle());
202 return $placeholders;
◆ $dateHelper
ilTestPlaceholderValues::$dateHelper |
|
private |
◆ $defaultPlaceholderValuesObject
ilTestPlaceholderValues::$defaultPlaceholderValuesObject |
|
private |
◆ $language
ilTestPlaceholderValues::$language |
|
private |
◆ $lpStatusHelper
ilTestPlaceholderValues::$lpStatusHelper |
|
private |
◆ $objectHelper
ilTestPlaceholderValues::$objectHelper |
|
private |
◆ $testObjectHelper
ilTestPlaceholderValues::$testObjectHelper |
|
private |
◆ $userObjectHelper
ilTestPlaceholderValues::$userObjectHelper |
|
private |
◆ $utilHelper
ilTestPlaceholderValues::$utilHelper |
|
private |
The documentation for this class was generated from the following file: