Renamed the function responsible for rendering the elements to something more suitable

This commit is contained in:
Mark Nelson 2013-04-10 17:53:56 +08:00
parent 8b3954cea7
commit 86c82ea8da
4 changed files with 8 additions and 10 deletions

View file

@ -98,12 +98,11 @@ class customcert_element_date extends customcert_element_base {
} }
/** /**
* Handles displaying the element on the pdf. * Handles rendering the element on the pdf.
* *
* @param $pdf the pdf object, see lib/pdflib.php * @param $pdf the pdf object, see lib/pdflib.php
* @todo functionality missing, add when we start rendering the pdf
*/ */
public function display($pdf) { public function render($pdf) {
global $USER; global $USER;
// TO DO. // TO DO.

View file

@ -200,12 +200,12 @@ class customcert_element_base {
} }
/** /**
* Handles displaying the element on the pdf. * Handles rendering the element on the pdf.
* Must be overriden. * Must be overriden.
* *
* @param stdClass the pdf object, see lib/pdflib.php * @param stdClass the pdf object, see lib/pdflib.php
*/ */
public function display($pdf) { public function render($pdf) {
// Must be overriden. // Must be overriden.
return false; return false;
} }

View file

@ -102,12 +102,11 @@ class customcert_element_grade extends customcert_element_base {
} }
/** /**
* Handles displaying the element on the pdf. * Handles rendering the element on the pdf.
* *
* @param $pdf the pdf object, see lib/pdflib.php * @param $pdf the pdf object, see lib/pdflib.php
* @todo functionality missing, add when we start rendering the pdf
*/ */
public function display($pdf) { public function render($pdf) {
global $USER; global $USER;
// TO DO. // TO DO.

View file

@ -39,11 +39,11 @@ class customcert_element_studentname extends customcert_element_base {
} }
/** /**
* Handles displaying the element on the pdf. * Handles rendering the element on the pdf.
* *
* @param $pdf the pdf object, see lib/pdflib.php * @param $pdf the pdf object, see lib/pdflib.php
*/ */
public function display($pdf) { public function render($pdf) {
global $USER; global $USER;
$pdf->setFont($this->element->font, '', $this->element->size); $pdf->setFont($this->element->font, '', $this->element->size);