ILIAS
Release_4_0_x_branch Revision 61816
|
Test certificate adapter. More...
Public Member Functions | |
__construct (&$object) | |
ilTestCertificateAdapter 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. | |
Public Member Functions inherited from 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. | |
getCertificateFilename ($params=array()) | |
Set the name of the certificate file This method will be called when the certificate will be generated. |
Private Attributes | |
$object |
Test certificate adapter.
Definition at line 33 of file class.ilTestCertificateAdapter.php.
ilTestCertificateAdapter::__construct | ( | & | $object | ) |
ilTestCertificateAdapter contructor
object | $object | A reference to a test object |
Definition at line 42 of file class.ilTestCertificateAdapter.php.
ilTestCertificateAdapter::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 206 of file class.ilTestCertificateAdapter.php.
References $_POST, $lng, and ilRadioMatrixInputGUI\setOptions().
ilTestCertificateAdapter::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 243 of file class.ilTestCertificateAdapter.php.
ilTestCertificateAdapter::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 230 of file class.ilTestCertificateAdapter.php.
References $_POST.
ilTestCertificateAdapter::getAdapterType | ( | ) |
Returns the adapter type This value will be used to generate file names for the certificates.
Reimplemented from ilCertificateAdapter.
Definition at line 266 of file class.ilTestCertificateAdapter.php.
ilTestCertificateAdapter::getCertificateID | ( | ) |
Returns a certificate ID This value will be used to generate unique file names for the certificates.
Reimplemented from ilCertificateAdapter.
Definition at line 277 of file class.ilTestCertificateAdapter.php.
ilTestCertificateAdapter::getCertificatePath | ( | ) |
Returns the certificate path (with a trailing path separator)
Reimplemented from ilCertificateAdapter.
Definition at line 54 of file class.ilTestCertificateAdapter.php.
ilTestCertificateAdapter::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 169 of file class.ilTestCertificateAdapter.php.
References $lng.
ilTestCertificateAdapter::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 101 of file class.ilTestCertificateAdapter.php.
References $lng, $params, $pass, ilObjUser\_lookupFields(), ilFormat\formatDate(), ilUtil\prepareFormOutput(), and ilFormat\unixtimestamp2datetime().
ilTestCertificateAdapter::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 65 of file class.ilTestCertificateAdapter.php.
References $lng, ilFormat\formatDate(), ilUtil\prepareFormOutput(), and ilFormat\unixtimestamp2datetime().
ilTestCertificateAdapter::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 255 of file class.ilTestCertificateAdapter.php.
|
private |
Definition at line 35 of file class.ilTestCertificateAdapter.php.
Referenced by __construct().