57 if (null === $defaultPlaceholderDescriptionObject) {
60 $this->defaultPlaceHolderDescriptionObject = $defaultPlaceholderDescriptionObject;
67 $this->placeholder = $this->defaultPlaceHolderDescriptionObject->getPlaceholderDescriptions();
69 $this->placeholder[
'SCORM_TITLE'] =
$language->txt(
'certificate_ph_scormtitle');
70 $this->placeholder[
'SCORM_POINTS'] =
$language->txt(
'certificate_ph_scormpoints');
71 $this->placeholder[
'SCORM_POINTS_MAX'] =
$language->txt(
'certificate_ph_scormmaxpoints');
86 $template =
new ilTemplate(
'tpl.scorm_description.html',
true,
true,
'Services/Certificate');
91 foreach ($this->placeholder as
$id => $caption) {
97 $template->setVariable(
'PH_INTRODUCTION', $this->
language->txt(
'certificate_ph_introduction'));
99 $collection = $this->learningProgressObject->getCollectionInstance();
101 $items = $collection->getPossibleItems();
106 $template->setVariable(
'PH_NO_SCO', $this->
language->txt(
'certificate_ph_no_sco'));
112 $template->setCurrentBlock(
'SCO_HEADER');
113 $template->setVariable(
'PH_TITLE_SCO', $this->
language->txt(
'certificate_ph_title_sco'));
114 $template->setVariable(
'PH_SCO_TITLE', $this->
language->txt(
'certificate_ph_sco_title'));
115 $template->setVariable(
'PH_SCO_POINTS_RAW', $this->
language->txt(
'certificate_ph_sco_points_raw'));
116 $template->setVariable(
'PH_SCO_POINTS_MAX', $this->
language->txt(
'certificate_ph_sco_points_max'));
117 $template->setVariable(
'PH_SCO_POINTS_SCALED', $this->
language->txt(
'certificate_ph_sco_points_scaled'));
123 foreach ($items as $item_id => $sahs_item) {
124 if ($collection->isAssignedEntry($item_id)) {
126 $template->setVariable(
'SCO_TITLE', $sahs_item[
'title']);
127 $template->setVariable(
'PH_SCO_TITLE',
'[SCO_T_' . $counter .
']');
128 $template->setVariable(
'PH_SCO_POINTS_RAW',
'[SCO_P_' . $counter .
']');
129 $template->setVariable(
'PH_SCO_POINTS_MAX',
'[SCO_PM_' . $counter .
']');
130 $template->setVariable(
'PH_SCO_POINTS_SCALED',
'[SCO_PP_' . $counter .
']');
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
if(!array_key_exists('StateId', $_REQUEST)) $id
__construct(ilObject $object, ilDefaultPlaceholderDescription $defaultPlaceholderDescriptionObject=null, ilLanguage $language=null, ilObjectLP $learningProgressObject=null, ilUserDefinedFieldsPlaceholderDescription $userDefinedFieldPlaceHolderDescriptionObject=null)
getPlaceholderDescriptions()
This method MUST return an array containing an array with the the description as array value...
createPlaceholderHtmlDescription(ilTemplate $template=null)
This methods MUST return an array containing an array with the the description as array value...
special template class to simplify handling of ITX/PEAR
Collection of basic placeholder values that can be used.
static getInstance($a_obj_id)
$defaultPlaceHolderDescriptionObject