Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16766 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16766 Rev 16768
Línea 2... Línea 2...
2
 
2
 
Línea 3... Línea 3...
3
declare(strict_types=1);
3
declare(strict_types=1);
Línea 4... Línea -...
4
 
-
 
-
 
4
 
5
namespace LeadersLinked\Controller;
5
namespace LeadersLinked\Controller;
6
 
6
 
7
use LeadersLinked\Cache\CacheInterface;
7
 
8
use Laminas\Mvc\Controller\AbstractActionController;
8
use Laminas\Mvc\Controller\AbstractActionController;
9
use Laminas\Log\LoggerInterface;
9
use Laminas\Log\LoggerInterface;
Línea 35... Línea 35...
35
     */
35
     */
36
    private $adapter;
36
    private $adapter;
Línea 37... Línea 37...
37
 
37
 
38
    /**
38
    /**
39
     *
-
 
40
     * @var CacheInterface
-
 
41
     */
-
 
42
    private $cache;
-
 
43
 
-
 
44
    /**
-
 
45
     *
39
     *
46
     * @var  LoggerInterface
40
     * @var  LoggerInterface
47
     */
41
     */
Línea 48... Línea 42...
48
    private $logger;
42
    private $logger;
Línea 54... Línea 48...
54
    private $config;
48
    private $config;
Línea 55... Línea 49...
55
 
49
 
56
    /**
50
    /**
57
     *
51
     *
58
     * @param AdapterInterface $adapter
-
 
59
     *@param CacheInterface $cache
52
     * @param AdapterInterface $adapter
60
     * @param LoggerInterface $logger
53
     * @param LoggerInterface $logger
61
     * @param array $config
54
     * @param array $config
62
     */
55
     */
-
 
56
    public function __construct($adapter, $logger, $config) 
63
    public function __construct($adapter, $cache, $logger, $config) {
57
    {
64
        $this->adapter = $adapter;
-
 
65
        $this->cache = $cache;
58
        $this->adapter = $adapter;
66
        $this->logger = $logger;
59
        $this->logger = $logger;
67
        $this->config = $config;
60
        $this->config = $config;
Línea 68... Línea 61...
68
    }
61
    }
Línea 452... Línea 445...
452
        } else {
445
        } else {
453
            @mkdir($target_path, 0755, true);
446
            @mkdir($target_path, 0755, true);
454
        }
447
        }
Línea 455... Línea 448...
455
        
448
        
456
        // Set Data
449
        // Set Data
457
        $headerFormName = utf8_decode($organizationalClimateForm->name);
450
        $headerFormName = Functions::utf8_decode($organizationalClimateForm->name);
458
        $headerOrganizationalClimateName = utf8_decode('Informe de Encuesta: ' . trim($organizationalClimate->name) . ' al ' . date("m-d-Y H:i:s", strtotime($organizationalClimate->added_on)));
451
        $headerOrganizationalClimateName = Functions::utf8_decode('Informe de Encuesta: ' . trim($organizationalClimate->name) . ' al ' . date("m-d-Y H:i:s", strtotime($organizationalClimate->added_on)));
Línea 459... Línea 452...
459
        $sections = json_decode($organizationalClimateForm->content, true);
452
        $sections = json_decode($organizationalClimateForm->content, true);
Línea 460... Línea 453...
460
 
453