ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCertificateAdapter Class Reference

Adapter class to provide certificate data for the certificate generator. More...

+ Inheritance diagram for ilCertificateAdapter:
+ Collaboration diagram for ilCertificateAdapter:

Public Member Functions

 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.
 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.
 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.
 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.
 getCertificateFilename ($params=array())
 Set the name of the certificate file This method will be called when the certificate will be generated.

Detailed Description

Adapter class to provide certificate data for the certificate generator.

Author
Helmut Schottmüller helmu.nosp@m.t.sc.nosp@m.hottm.nosp@m.uell.nosp@m.er@ma.nosp@m.c.co.nosp@m.m
Version
Id:
class.ilCertificateAdapter.php 20040 2009-05-19 15:54:38Z hschottm

Definition at line 31 of file class.ilCertificateAdapter.php.

Member Function Documentation

ilCertificateAdapter::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.

Parameters
object$formAn ilPropertyFormGUI instance
array$form_fieldsAn array containing the form values. The array keys are the names of the form fields

Reimplemented in ilTestCertificateAdapter, and ilSCORMCertificateAdapter.

Definition at line 91 of file class.ilCertificateAdapter.php.

{
}
ilCertificateAdapter::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.

Parameters
array$form_fieldsA reference to the array of form values

Reimplemented in ilTestCertificateAdapter, and ilSCORMCertificateAdapter.

Definition at line 117 of file class.ilCertificateAdapter.php.

{
}
ilCertificateAdapter::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.

Parameters
array$form_fieldsA reference to the array of form values

Reimplemented in ilTestCertificateAdapter, and ilSCORMCertificateAdapter.

Definition at line 104 of file class.ilCertificateAdapter.php.

{
}
ilCertificateAdapter::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 in ilSCORMCertificateAdapter.

Definition at line 139 of file class.ilCertificateAdapter.php.

{
}
ilCertificateAdapter::getAdapterType ( )
abstract

Returns the adapter type This value will be used to generate file names for the certificates.

Returns
string A string value to represent the adapter type

Reimplemented in ilSCORMCertificateAdapter, and ilTestCertificateAdapter.

ilCertificateAdapter::getCertificateFilename (   $params = array())

Set the name of the certificate file This method will be called when the certificate will be generated.

Returns
string The certificate file name

Reimplemented in ilSCORMCertificateAdapter.

Definition at line 150 of file class.ilCertificateAdapter.php.

{
return "certificate.pdf";
}
ilCertificateAdapter::getCertificateID ( )
abstract

Returns a certificate ID This value will be used to generate unique file names for the certificates.

Returns
mixed A unique ID which represents a certificate

Reimplemented in ilSCORMCertificateAdapter, and ilTestCertificateAdapter.

ilCertificateAdapter::getCertificatePath ( )
abstract

Returns the certificate path (with a trailing path separator)

Returns
string The certificate path

Reimplemented in ilTestCertificateAdapter, and ilSCORMCertificateAdapter.

ilCertificateAdapter::getCertificateVariablesDescription ( )
abstract

Returns a description of the available certificate parameters.

The description will be shown at the bottom of the certificate editor text area.

Returns
string The certificate parameters description

Reimplemented in ilTestCertificateAdapter, and ilSCORMCertificateAdapter.

ilCertificateAdapter::getCertificateVariablesForPresentation (   $params = array())
abstract

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.

Parameters
array$paramsAn array of parameters to calculate the certificate parameter values
Returns
array The certificate variables

Reimplemented in ilTestCertificateAdapter, and ilSCORMCertificateAdapter.

ilCertificateAdapter::getCertificateVariablesForPreview ( )
abstract

Returns an array containing all variables and values which can be exchanged in the certificate.

The values will be taken for the certificate preview.

Returns
array The certificate variables

Reimplemented in ilTestCertificateAdapter, and ilSCORMCertificateAdapter.

ilCertificateAdapter::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.

Parameters
array$form_fieldsA reference to the array of form values

Reimplemented in ilSCORMCertificateAdapter, and ilTestCertificateAdapter.

Definition at line 129 of file class.ilCertificateAdapter.php.

{
}

The documentation for this class was generated from the following file: