134 $lng->loadLanguageModule(
"certificate");
135 return $lng->txt(
"certificate_file_basename").
".pdf";
150 "USER_LOGIN" => $lng->txt(
"certificate_ph_login"),
151 "USER_FULLNAME" => $lng->txt(
"certificate_ph_fullname"),
152 "USER_FIRSTNAME" => $lng->txt(
"certificate_ph_firstname"),
153 "USER_LASTNAME" => $lng->txt(
"certificate_ph_lastname"),
154 "USER_TITLE" => $lng->txt(
"certificate_ph_title"),
155 "USER_SALUTATION" => $lng->txt(
"certificate_ph_salutation"),
156 "USER_BIRTHDAY" => $lng->txt(
"certificate_ph_birthday"),
157 "USER_INSTITUTION" => $lng->txt(
"certificate_ph_institution"),
158 "USER_DEPARTMENT" => $lng->txt(
"certificate_ph_department"),
159 "USER_STREET" => $lng->txt(
"certificate_ph_street"),
160 "USER_CITY" => $lng->txt(
"certificate_ph_city"),
161 "USER_ZIPCODE" => $lng->txt(
"certificate_ph_zipcode"),
162 "USER_COUNTRY" => $lng->txt(
"certificate_ph_country"),
163 "USER_MATRICULATION" => $lng->txt(
"certificate_ph_matriculation")
166 if($a_enable_last_access)
168 $vars[
"USER_LASTACCESS"] = $lng->txt(
"certificate_ph_lastaccess");
171 $vars[
"DATE"] = $lng->txt(
"certificate_ph_date");
172 $vars[
"DATETIME"] = $lng->txt(
"certificate_ph_datetime");
174 if($a_enable_completion_date)
176 $vars[
"DATE_COMPLETED"] = $lng->txt(
"certificate_ph_date_completed");
177 $vars[
"DATETIME_COMPLETED"] = $lng->txt(
"certificate_ph_datetime_completed");
214 if($a_enable_last_access)
222 if($a_enable_completion_date)
250 if (strlen($a_user_data[
"gender"]))
252 $salutation = $lng->txt(
"salutation_" . $a_user_data[
"gender"]);
256 if($a_user_data[
"birthday"])
261 $country = $a_user_data[
"sel_country"];
264 $lng->loadLanguageModule(
"meta");
265 $country = $lng->txt(
"meta_c_".$country);
269 $country = $a_user_data[
"country"];
274 "USER_FULLNAME" =>
ilUtil::prepareFormOutput(trim($a_user_data[
"title"] .
" " . $a_user_data[
"firstname"] .
" " . $a_user_data[
"lastname"])),
298 if($a_completion_date)
320 $a_object_id = $this->
object->getId();
322 include_once
"Services/Tracking/classes/class.ilLPStatus.php";
334 return $a_params[
"user_id"];
addFormFieldsFromPOST(&$form_fields)
Allows to add additional form values to the array of form values evaluating a HTTP POST action...
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
getUserCompletionDate($a_user_id, $a_object_id=null)
Get completion for user.
addFormFieldsFromObject(&$form_fields)
Allows to add additional form values to the array of form values evaluating the associated adapter cl...
addAdditionalFormElements(&$form, $form_fields)
Allows to add additional form fields to the certificate editor form This method will be called when t...
getCertificateVariablesForPreview()
Returns an array containing all variables and values which can be exchanged in the certificate...
getCertificateID()
Returns a certificate ID This value will be used to generate unique file names for the certificates...
getCertificateVariablesDescription()
Returns a description of the available certificate parameters.
deleteCertificate()
Is called when the certificate is deleted Add some adapter specific code if more work has to be done ...
static setUseRelativeDates($a_status)
set use relative dates
static useRelativeDates()
check if relative dates are used
getCertificateFilename($params=array())
Set the name of the certificate file This method will be called when the certificate will be generate...
saveFormFields(&$form_fields)
Allows to save additional adapter form fields This method will be called when the certificate editor ...
static formatDate(ilDateTime $date)
Format a date public.
getBaseVariablesDescription($a_enable_last_access=true, $a_enable_completion_date=true)
Get variable descriptions.
getUserIdForParams($a_params)
Get user id for params.
Adapter class to provide certificate data for the certificate generator.
getCertificateVariablesForPresentation($params=array())
Returns an array containing all variables and values which can be exchanged in the certificate The va...
getBaseVariablesForPreview($a_enable_last_access=true, $a_enable_completion_date=true)
Get variable dummys.
getBaseVariablesForPresentation($a_user_data, $a_last_access=null, $a_completion_date=false)
Get variable values.
getAdapterType()
Returns the adapter type This value will be used to generate file names for the certificates.
_lookupStatusChanged($a_obj_id, $a_user_id)
Lookup status changed.
getCertificatePath()
Returns the certificate path (with a trailing path separator)