Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16766 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16766 Rev 16768
Línea 3... Línea 3...
3
declare(strict_types=1);
3
declare(strict_types=1);
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
namespace LeadersLinked\Controller;
5
namespace LeadersLinked\Controller;
6
 
-
 
-
 
6
 
7
use Laminas\Db\Adapter\AdapterInterface;
7
use Laminas\Db\Adapter\AdapterInterface;
8
use LeadersLinked\Cache\CacheInterface;
8
 
9
use Laminas\Mvc\Controller\AbstractActionController;
9
use Laminas\Mvc\Controller\AbstractActionController;
10
use Laminas\Log\LoggerInterface;
10
use Laminas\Log\LoggerInterface;
11
use Laminas\View\Model\ViewModel;
11
use Laminas\View\Model\ViewModel;
Línea 28... Línea 28...
28
    /**
28
    /**
29
     *
29
     *
30
     * @var AdapterInterface
30
     * @var AdapterInterface
31
     */
31
     */
32
    private $adapter;
32
    private $adapter;
33
 
33
    
34
    /**
-
 
35
     *
-
 
36
     * @var CacheInterface
-
 
37
     */
-
 
38
    private $cache;
-
 
39
 
-
 
40
    /**
34
    /**
41
     *
35
     *
42
     * @var  LoggerInterface
36
     * @var  LoggerInterface
43
     */
37
     */
44
    private $logger;
38
    private $logger;
45
 
39
    
46
    /**
40
    /**
47
     *
41
     *
48
     * @var array
42
     * @var array
49
     */
43
     */
50
    private $config;
44
    private $config;
51
 
45
    
52
    /**
46
    /**
53
     *
47
     *
54
     * @param AdapterInterface $adapter
48
     * @param AdapterInterface $adapter
55
     *@param CacheInterface $cache
-
 
56
     * @param LoggerInterface $logger
49
     * @param LoggerInterface $logger
57
     * @param array $config
50
     * @param array $config
58
     */
51
     */
59
    public function __construct($adapter, $cache, $logger, $config) {
52
    public function __construct($adapter, $logger, $config)
-
 
53
    {
60
        $this->adapter = $adapter;
54
        $this->adapter = $adapter;
61
        $this->cache = $cache;
-
 
62
        $this->logger = $logger;
55
        $this->logger = $logger;
63
        $this->config = $config;
56
        $this->config = $config;
64
    }
57
    }
Línea 65... Línea 58...
65
 
58
 
Línea 404... Línea 397...
404
        
397
        
405
        
398
        
406
        
399
        
407
        
400
        
408
        // Set Data
401
        // Set Data
Línea 409... Línea 402...
409
        $headerFormName = utf8_decode($selfEvaluationForm->name);
402
        $headerFormName = Functions::utf8_decode($selfEvaluationForm->name);
Línea 467... Línea 460...
467
            
460
            
468
 
461
 
469
            $filename = $target_path . DIRECTORY_SEPARATOR .  $sections[$i]['slug_section'] . '.png';
462
            $filename = $target_path . DIRECTORY_SEPARATOR .  $sections[$i]['slug_section'] . '.png';
470
            $pdf->pieChart($labels, $values, '', $filename);
463
            $pdf->pieChart($labels, $values, '', $filename);
471
            $pdf->SetFont('Arial', '', 8);
464
            $pdf->SetFont('Arial', '', 8);
472
            $pdf->Cell(190, 10, utf8_decode($sections[$i]['name']), 0, 0, 'C');
465
            $pdf->Cell(190, 10, Functions::utf8_decode($sections[$i]['name']), 0, 0, 'C');
473
            $pdf->setY($pdf->getY() + 10);
466
            $pdf->setY($pdf->getY() + 10);
474
            // Salto de línea
467
            // Salto de línea
Línea 480... Línea 473...
480
 
473
 
481
        $pdf->AddPage();
474
        $pdf->AddPage();
Línea 482... Línea 475...
482
        $pdf->customHeader($headerFormName, $headerUserName);
475
        $pdf->customHeader($headerFormName, $headerUserName);
483
 
476
 
484
        $pdf->SetFont('Arial', 'B', 10);
477
        $pdf->SetFont('Arial', 'B', 10);
Línea 485... Línea 478...
485
        $pdf->Cell(190, 10, utf8_decode('Desempeño General'), 0, 0, 'C');
478
        $pdf->Cell(190, 10, Functions::utf8_decode('Desempeño General'), 0, 0, 'C');
Línea 486... Línea 479...
486
        $pdf->setY($pdf->getY() + 10);
479
        $pdf->setY($pdf->getY() + 10);
Línea 493... Línea 486...
493
        $pdf->setY($pdf->getY() + 60);
486
        $pdf->setY($pdf->getY() + 60);
Línea 494... Línea 487...
494
 
487
 
Línea 495... Línea 488...
495
        if ($selfEvaluationTest->comments) {
488
        if ($selfEvaluationTest->comments) {
496
 
489
 
497
            $pdf->SetFont('Arial', 'B', 10);
490
            $pdf->SetFont('Arial', 'B', 10);
Línea 498... Línea 491...
498
            $pdf->Cell(190, 10, utf8_decode('Comentarios finales'), 0, 0, 'C');
491
            $pdf->Cell(190, 10, Functions::utf8_decode('Comentarios finales'), 0, 0, 'C');
499
            $pdf->setY($pdf->getY() + 10);
492
            $pdf->setY($pdf->getY() + 10);
500
 
493
 
501
            $pdf->SetFont('Arial', '', 8);
494
            $pdf->SetFont('Arial', '', 8);
Línea 502... Línea 495...
502
            $pdf->MultiCell(180, 8, utf8_decode($selfEvaluationTest->comments));
495
            $pdf->MultiCell(180, 8, Functions::utf8_decode($selfEvaluationTest->comments));
503
            $pdf->setY(60);
496
            $pdf->setY(60);