|
| __construct (?ilObjectCustomUserFieldsPlaceholderValues $customUserFieldsPlaceholderValues=null, ?ilDefaultPlaceholderValues $defaultPlaceholderValues=null, ?ilLanguage $language=null, ?ilCertificateObjectHelper $objectHelper=null, ?CertificateParticipantsHelper $participantsHelper=null, ?ilCertificateDateHelper $dateHelper=null, ?ilCertificateLPStatusHelper $lpStatusHelper=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...
|
|
| 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...
|
|
◆ __construct()
◆ getPlaceholderValuesForPreview()
ILIAS\Course\Certificate\CoursePlaceholderValues::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.
- Exceptions
-
Implements ilCertificatePlaceholderValues.
Definition at line 175 of file CoursePlaceholderValues.php.
175 : array
176 {
177 $placeholders = $this->defaultPlaceholderValuesObject->getPlaceholderValuesForPreview($userId,
$objId);
178
179 $customUserFieldsPlaceholders = $this->customUserFieldsPlaceholderValuesObject->getPlaceholderValuesForPreview(
180 $userId,
182 );
183
184 $placeholders = array_merge($placeholders, $customUserFieldsPlaceholders);
185
186 $object = $this->objectHelper->getInstanceByObjId(
$objId);
187
189
190 return $placeholders;
191 }
References $objId, and ilLegacyFormElementsUtil\prepareFormOutput().
◆ hasCompletionDate()
ILIAS\Course\Certificate\CoursePlaceholderValues::hasCompletionDate |
( |
|
$possibleDate | ) |
|
|
private |
- Parameters
-
Definition at line 101 of file CoursePlaceholderValues.php.
101 : bool
102 {
103 return
104 $possibleDate !== false &&
105 $possibleDate !== null &&
106 $possibleDate !== ''
107 ;
108 }
◆ $customUserFieldsPlaceholderValuesObject
◆ $dateHelper
◆ $defaultPlaceholderValuesObject
◆ $lpStatusHelper
◆ $objectHelper
◆ $participantsHelper
The documentation for this class was generated from the following file: