ILIAS
Release_4_2_x_branch Revision 61807
|
Skill certificate adapter. More...
Public Member Functions | |
__construct ($a_skill, $a_skill_level_id) | |
Contructor. | |
getCertificatePath () | |
Returns the certificate path (with a trailing path separator) | |
getCertificateVariablesForPreview () | |
Returns an array containing all variables and values which can be exchanged in the certificate. | |
getCertificateVariablesForPresentation ($params=array()) | |
Returns an array containing all variables and values which can be exchanged in the certificate The values should be calculated from real data. | |
getCertificateVariablesDescription () | |
Returns a description of the available certificate parameters. | |
addAdditionalFormElements (&$form, $form_fields) | |
Allows to add additional form fields to the certificate editor form This method will be called when the certificate editor form will built using the ilPropertyFormGUI class. | |
addFormFieldsFromPOST (&$form_fields) | |
Allows to add additional form values to the array of form values evaluating a HTTP POST action. | |
addFormFieldsFromObject (&$form_fields) | |
Allows to add additional form values to the array of form values evaluating the associated adapter class if one exists This method will be called when the certificate editor form will be shown and the content of the form has to be retrieved from wherever the form values are saved. | |
saveFormFields (&$form_fields) | |
Allows to save additional adapter form fields This method will be called when the certificate editor form is complete and the form values will be saved. | |
getAdapterType () | |
Returns the adapter type This value will be used to generate file names for the certificates. | |
getCertificateID () | |
Returns a certificate ID This value will be used to generate unique file names for the certificates. | |
getCertificateFilename ($params=array()) | |
Set the name of the certificate file This method will be called when the certificate will be generated. | |
deleteCertificate () | |
Is called when the certificate is deleted Add some adapter specific code if more work has to be done when the certificate file was deleted. |
Protected Attributes | |
$object |
Private Attributes | |
$skill | |
$skill_level_id |
Additional Inherited Members | |
Protected Member Functions inherited from ilCertificateAdapter | |
getBaseVariablesDescription ($a_enable_last_access=true, $a_enable_completion_date=true) | |
Get variable descriptions. | |
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. | |
getUserCompletionDate ($a_user_id, $a_object_id=null) | |
Get completion for user. |
Skill certificate adapter.
Definition at line 14 of file class.ilSkillCertificateAdapter.php.
ilSkillCertificateAdapter::__construct | ( | $a_skill, | |
$a_skill_level_id | |||
) |
Contructor.
object | skill object |
object | skill level id |
Definition at line 26 of file class.ilSkillCertificateAdapter.php.
References $lng.
ilSkillCertificateAdapter::addAdditionalFormElements | ( | & | $form, |
$form_fields | |||
) |
Allows to add additional form fields to the certificate editor form This method will be called when the certificate editor form will built using the ilPropertyFormGUI class.
Additional fields will be added at the bottom of the form.
object | $form | An ilPropertyFormGUI instance |
array | $form_fields | An array containing the form values. The array keys are the names of the form fields |
Reimplemented from ilCertificateAdapter.
Definition at line 161 of file class.ilSkillCertificateAdapter.php.
References $lng.
ilSkillCertificateAdapter::addFormFieldsFromObject | ( | & | $form_fields | ) |
Allows to add additional form values to the array of form values evaluating the associated adapter class if one exists This method will be called when the certificate editor form will be shown and the content of the form has to be retrieved from wherever the form values are saved.
array | $form_fields | A reference to the array of form values |
Reimplemented from ilCertificateAdapter.
Definition at line 210 of file class.ilSkillCertificateAdapter.php.
References $ilSetting.
ilSkillCertificateAdapter::addFormFieldsFromPOST | ( | & | $form_fields | ) |
Allows to add additional form values to the array of form values evaluating a HTTP POST action.
This method will be called when the certificate editor form will be saved using the form save button.
array | $form_fields | A reference to the array of form values |
Reimplemented from ilCertificateAdapter.
Definition at line 196 of file class.ilSkillCertificateAdapter.php.
ilSkillCertificateAdapter::deleteCertificate | ( | ) |
Is called when the certificate is deleted Add some adapter specific code if more work has to be done when the certificate file was deleted.
Reimplemented from ilCertificateAdapter.
Definition at line 284 of file class.ilSkillCertificateAdapter.php.
References $ilSetting.
ilSkillCertificateAdapter::getAdapterType | ( | ) |
Returns the adapter type This value will be used to generate file names for the certificates.
Reimplemented from ilCertificateAdapter.
Definition at line 239 of file class.ilSkillCertificateAdapter.php.
ilSkillCertificateAdapter::getCertificateFilename | ( | $params = array() | ) |
Set the name of the certificate file This method will be called when the certificate will be generated.
Reimplemented from ilCertificateAdapter.
Definition at line 261 of file class.ilSkillCertificateAdapter.php.
References $lng.
ilSkillCertificateAdapter::getCertificateID | ( | ) |
Returns a certificate ID This value will be used to generate unique file names for the certificates.
Reimplemented from ilCertificateAdapter.
Definition at line 250 of file class.ilSkillCertificateAdapter.php.
References $skill_level_id.
ilSkillCertificateAdapter::getCertificatePath | ( | ) |
Returns the certificate path (with a trailing path separator)
Reimplemented from ilCertificateAdapter.
Definition at line 41 of file class.ilSkillCertificateAdapter.php.
ilSkillCertificateAdapter::getCertificateVariablesDescription | ( | ) |
Returns a description of the available certificate parameters.
The description will be shown at the bottom of the certificate editor text area.
Reimplemented from ilCertificateAdapter.
Definition at line 127 of file class.ilSkillCertificateAdapter.php.
References $lng, and ilCertificateAdapter\getBaseVariablesDescription().
ilSkillCertificateAdapter::getCertificateVariablesForPresentation | ( | $params = array() | ) |
Returns an array containing all variables and values which can be exchanged in the certificate The values should be calculated from real data.
The $params parameter array should contain all necessary information to calculate the values.
array | $params | An array of parameters to calculate the certificate parameter values |
Reimplemented from ilCertificateAdapter.
Definition at line 83 of file class.ilSkillCertificateAdapter.php.
References $lng, ilDatePresentation\formatDate(), ilCertificateAdapter\getBaseVariablesForPresentation(), IL_CAL_DATETIME, ilBasicSkill\lookupLevelAchievementDate(), ilUtil\prepareFormOutput(), ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
ilSkillCertificateAdapter::getCertificateVariablesForPreview | ( | ) |
Returns an array containing all variables and values which can be exchanged in the certificate.
The values will be taken for the certificate preview.
Reimplemented from ilCertificateAdapter.
Definition at line 53 of file class.ilSkillCertificateAdapter.php.
References $lng, ilCertificateAdapter\getBaseVariablesForPreview(), ilUtil\prepareFormOutput(), ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
ilSkillCertificateAdapter::saveFormFields | ( | & | $form_fields | ) |
Allows to save additional adapter form fields This method will be called when the certificate editor form is complete and the form values will be saved.
array | $form_fields | A reference to the array of form values |
Reimplemented from ilCertificateAdapter.
Definition at line 225 of file class.ilSkillCertificateAdapter.php.
References $ilSetting.
|
protected |
Definition at line 16 of file class.ilSkillCertificateAdapter.php.
|
private |
Definition at line 17 of file class.ilSkillCertificateAdapter.php.
|
private |
Definition at line 18 of file class.ilSkillCertificateAdapter.php.
Referenced by getCertificateID().