ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
SCORM certificate adapter. More...
Public Member Functions | |
__construct ($object) | |
ilSCORMCertificateAdapter contructor More... | |
getCertificatePath () | |
Returns the certificate path (with a trailing path separator) More... | |
getCertificateVariablesForPreview () | |
Returns an array containing all variables and values which can be exchanged in the certificate. More... | |
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. More... | |
getCertificateVariablesDescription () | |
Returns a description of the available certificate parameters. More... | |
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. More... | |
addFormFieldsFromPOST (&$form_fields) | |
Allows to add additional form values to the array of form values evaluating a HTTP POST action. More... | |
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. More... | |
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. More... | |
getAdapterType () | |
Returns the adapter type This value will be used to generate file names for the certificates. More... | |
getCertificateID () | |
Returns a certificate ID This value will be used to generate unique file names for the certificates. More... | |
getCertificateFilename ($params=array()) | |
Set the name of the certificate file This method will be called when the certificate will be generated. More... | |
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. More... | |
getUserIdForParams ($a_params) | |
Get user id for params. More... | |
Public Member Functions inherited from ilCertificateAdapter | |
__construct () | |
ilCertificateAdapter constructor. More... | |
getCertificatePath () | |
Returns the certificate path (with a trailing path separator) More... | |
getCertificateVariablesForPreview () | |
Returns an array containing all variables and values which can be exchanged in the certificate. More... | |
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. More... | |
getCertificateVariablesDescription () | |
Returns a description of the available certificate parameters. More... | |
getAdapterType () | |
Returns the adapter type This value will be used to generate file names for the certificates. More... | |
getCertificateID () | |
Returns a certificate ID This value will be used to generate unique file names for the certificates. More... | |
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. More... | |
addFormFieldsFromPOST (&$form_fields) | |
Allows to add additional form values to the array of form values evaluating a HTTP POST action. More... | |
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. More... | |
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. More... | |
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. More... | |
getCertificateFilename ($params=array()) | |
Set the name of the certificate file This method will be called when the certificate will be generated. More... | |
getUserIdForParams ($a_params) | |
Get user id for params. More... | |
Protected Attributes | |
$object | |
Protected Attributes inherited from ilCertificateAdapter | |
$lng | |
Additional Inherited Members | |
Protected Member Functions inherited from ilCertificateAdapter | |
getBaseVariablesDescription ($a_enable_last_access=true, $a_enable_completion_date=true) | |
Get variable descriptions. More... | |
getBaseVariablesForPreview ($a_enable_last_access=true, $a_enable_completion_date=true) | |
Get variable dummys. More... | |
getBaseVariablesForPresentation ($a_user_data, $a_last_access=null, $a_completion_date=false) | |
Get variable values. More... | |
getUserCompletionDate ($a_user_id, $a_object_id=null) | |
Get completion for user. More... | |
SCORM certificate adapter.
Definition at line 33 of file class.ilSCORMCertificateAdapter.php.
ilSCORMCertificateAdapter::__construct | ( | $object | ) |
ilSCORMCertificateAdapter contructor
object | $object | A reference to a test object |
Definition at line 42 of file class.ilSCORMCertificateAdapter.php.
References $object.
ilSCORMCertificateAdapter::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 |
Definition at line 247 of file class.ilSCORMCertificateAdapter.php.
References $_POST, $form, object, ilFormPropertyGUI\setRequired(), and ilStr\subStr().
ilSCORMCertificateAdapter::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 |
Definition at line 287 of file class.ilSCORMCertificateAdapter.php.
References object.
ilSCORMCertificateAdapter::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 |
Definition at line 273 of file class.ilSCORMCertificateAdapter.php.
References $_POST.
ilSCORMCertificateAdapter::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.
Definition at line 356 of file class.ilSCORMCertificateAdapter.php.
References object.
ilSCORMCertificateAdapter::getAdapterType | ( | ) |
Returns the adapter type This value will be used to generate file names for the certificates.
Definition at line 314 of file class.ilSCORMCertificateAdapter.php.
ilSCORMCertificateAdapter::getCertificateFilename | ( | $params = array() | ) |
Set the name of the certificate file This method will be called when the certificate will be generated.
Definition at line 336 of file class.ilSCORMCertificateAdapter.php.
References $ilSetting, $params, object, and time.
ilSCORMCertificateAdapter::getCertificateID | ( | ) |
Returns a certificate ID This value will be used to generate unique file names for the certificates.
Definition at line 325 of file class.ilSCORMCertificateAdapter.php.
ilSCORMCertificateAdapter::getCertificatePath | ( | ) |
Returns the certificate path (with a trailing path separator)
Definition at line 53 of file class.ilSCORMCertificateAdapter.php.
ilSCORMCertificateAdapter::getCertificateVariablesDescription | ( | ) |
Returns a description of the available certificate parameters.
The description will be shown at the bottom of the certificate editor text area.
Definition at line 177 of file class.ilSCORMCertificateAdapter.php.
References $counter, $id, $template, ilCertificateAdapter\getBaseVariablesDescription(), ilObjectLP\getInstance(), and object.
ilSCORMCertificateAdapter::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 |
Definition at line 103 of file class.ilSCORMCertificateAdapter.php.
References $counter, $GLOBALS, $id, $params, ilCertificateAdapter\getBaseVariablesForPresentation(), ilObjectLP\getInstance(), ilCertificateAdapter\getUserCompletionDate(), object, and ilUtil\prepareFormOutput().
ilSCORMCertificateAdapter::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.
Definition at line 64 of file class.ilSCORMCertificateAdapter.php.
References $counter, $id, array, ilCertificateAdapter\getBaseVariablesForPreview(), ilObjectLP\getInstance(), object, and ilUtil\prepareFormOutput().
ilSCORMCertificateAdapter::getUserIdForParams | ( | $a_params | ) |
Get user id for params.
Definition at line 368 of file class.ilSCORMCertificateAdapter.php.
ilSCORMCertificateAdapter::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 |
Definition at line 301 of file class.ilSCORMCertificateAdapter.php.
References object.
|
protected |
Definition at line 35 of file class.ilSCORMCertificateAdapter.php.
Referenced by __construct().