32 $this->placeholder = array();
62 $user = $this->objectHelper->getInstanceByObjId($user_id);
64 throw new ilException(
'The entered id: ' . $user_id .
' is not an user object');
71 foreach ($course_defined_fields as $key => $field) {
72 $field_id = $field->getId();
74 $placeholderText =
'+' . str_replace(
' ',
'_',
ilStr::strToUpper($field->getName()));
76 $placeholder[$placeholderText] = !empty($field_values[$user_id][$field_id]) ? $field_values[$user_id][$field_id] :
"";
97 $lng = $DIC->language();
102 foreach ($course_defined_fields as $key => $field) {
103 $placeholderText =
'+' . str_replace(
' ',
'_',
ilStr::strToUpper($field->getName()));
static _getValuesByObjId($a_obj_id)
Get values by obj_id (for all users)
getPlaceholderValuesForPreview(int $user_id, int $obj_id)
This method is different then the 'getPlaceholderValues' method, this method is used to create a plac...
Just a wrapper class to create Unit Test for other classes.
static strToUpper($a_string)
getPlaceholderValues(int $userId, int $objId)
This method MUST return an array that contains the actual data for the given user of the given object...
__construct(ilCertificateObjectHelper $objectHelper=null, ilCertificateUtilHelper $ilUtilHelper=null)
static _getFields($a_container_id, $a_sort=IL_CDF_SORT_NAME)
Get all fields of a container.