Browse Source

Entidade certificadora passa a ser parametrizado

MOODLE_37_STABLE
Matheus Garcia 4 years ago
parent
commit
f535e0d207
  1. 5
      type/ILB_flex/certificate.php

5
type/ILB_flex/certificate.php

@ -28,7 +28,6 @@ if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); // It must be included from view.php die('Direct access to this script is forbidden.'); // It must be included from view.php
} }
/** /**
* Gets the course start date (for ILB start date is the date of enrollment) * Gets the course start date (for ILB start date is the date of enrollment)
* and completion date from course completion framework. * and completion date from course completion framework.
@ -66,6 +65,7 @@ if($tipo_acao == "") {
$tipo_acao = 'do curso'; $tipo_acao = 'do curso';
} }
$modalidade_acao = certificate_obtemCampoCustomizadoCurso($course->id, 'modalidade_capacitacao'); $modalidade_acao = certificate_obtemCampoCustomizadoCurso($course->id, 'modalidade_capacitacao');
$titulo = certificate_obtemCampoCustomizadoCurso($course->id, 'entidade_certificadora');
//MASK para CPF //MASK para CPF
function mask($val, $mask) function mask($val, $mask)
@ -155,7 +155,8 @@ certificate_print_image($pdf, $certificate, CERT_IMAGE_SIGNATURE, $sigx, $sigy,
// Add text // Add text
$pdf->SetTextColor(0, 0, 0); $pdf->SetTextColor(0, 0, 0);
certificate_print_text($pdf, $x, $y, 'C', 'freesans', '', 20, get_string('title', 'certificate'));
certificate_print_text($pdf, $x, $y, 'C', 'freesans', '', 20, $titulo);
certificate_print_text($pdf, $x, $y + 15, 'C', 'freesans', '', 18, get_string('certify', 'certificate')); certificate_print_text($pdf, $x, $y + 15, 'C', 'freesans', '', 18, get_string('certify', 'certificate'));
certificate_print_text($pdf, $x, $y + 25, 'C', 'freesans', 'B', 18, mb_strtoupper(fullname($USER), 'UTF-8').","); certificate_print_text($pdf, $x, $y + 25, 'C', 'freesans', 'B', 18, mb_strtoupper(fullname($USER), 'UTF-8').",");
if($modalidade_acao == "") { if($modalidade_acao == "") {

Loading…
Cancel
Save