68 if (null === $defaultPlaceholderValues) {
97 $this->defaultPlaceholderValuesObject = $defaultPlaceholderValues;
107 $possibleDate !==
false &&
108 $possibleDate !== null &&
128 $courseObject = $this->objectHelper->getInstanceByObjId($objId);
130 $placeholders = $this->defaultPlaceholderValuesObject->getPlaceholderValues($userId, $objId);
132 $completionDate = $this->participantsHelper->getDateTimeOfPassed($objId, $userId);
134 $completionDate = $this->lpStatusHelper->lookupStatusChanged($objId, $userId);
138 $placeholders[
'DATE_COMPLETED'] = $this->dateHelper->formatDate($completionDate);
139 $placeholders[
'DATETIME_COMPLETED'] = $this->dateHelper->formatDateTime($completionDate);
142 $placeholders[
'COURSE_TITLE'] = $this->ilUtilHelper->prepareFormOutput($courseObject->getTitle());
144 return $placeholders;
158 $placeholders = $this->defaultPlaceholderValuesObject->getPlaceholderValuesForPreview($userId, $objId);
160 $object = $this->objectHelper->getInstanceByObjId($objId);
164 return $placeholders;
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
Collection of basic placeholder values that can be used.
getPlaceholderValues(int $userId, int $objId)
This method MUST return an array that contains the actual data for the given user of the given object...
getPlaceholderValuesForPreview(int $userId, int $objId)
This method is different then the 'getPlaceholderValues' method, this method is used to create a plac...
$defaultPlaceholderValuesObject
Just a wrapper class to create Unit Test for other classes.
__construct(ilDefaultPlaceholderValues $defaultPlaceholderValues=null, ilLanguage $language=null, ilCertificateObjectHelper $objectHelper=null, ilCertificateParticipantsHelper $participantsHelper=null, ilCertificateUtilHelper $ilUtilHelper=null, ilCertificateDateHelper $dateHelper=null, ilCertificateLPStatusHelper $lpStatusHelper=null)
hasCompletionDate($possibleDate)