39 $this->placeholder = array();
74 $user = $this->objectHelper->getInstanceByObjId($userId);
76 throw new ilException(
'The entered id: ' . $userId .
' is not an user object');
79 $userDefinedFields = $this->userDefinedFieldsObject->getDefinitions();
82 foreach ($userDefinedFields as $field) {
83 if ($field[
'certificate']) {
84 $placeholderText =
'#' . str_replace(
' ',
'_', strtoupper($field[
'field_name']));
86 $userDefinedData =
$user->getUserDefinedData();
88 $userDefinedFieldValue =
'';
89 if (isset($userDefinedData[
'f_' . $field[
'field_id']])) {
90 $userDefinedFieldValue = $this->ilUtilHelper->prepareFormOutput($userDefinedData[
'f_' . $field[
'field_id']]);
113 $userDefinedFields = $this->userDefinedFieldsObject->getDefinitions();
116 foreach ($userDefinedFields as $field) {
117 if ($field[
'certificate']) {
118 $placeholderText =
'#' . str_replace(
' ',
'_', strtoupper($field[
'field_name']));
static _getInstance()
Get instance.
Additional user data fields definition.
__construct(ilCertificateObjectHelper $objectHelper=null, ilUserDefinedFields $userDefinedFieldsObject=null, ilCertificateUtilHelper $ilUtilHelper=null)
Just a wrapper class to create Unit Test for other classes.
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...