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 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 30... Línea 30...
30
    /**
30
    /**
31
     *
31
     *
32
     * @var AdapterInterface
32
     * @var AdapterInterface
33
     */
33
     */
34
    private $adapter;
34
    private $adapter;
35
 
35
    
36
    /**
-
 
37
     *
-
 
38
     * @var CacheInterface
-
 
39
     */
-
 
40
    private $cache;
-
 
41
 
-
 
42
    /**
36
    /**
43
     *
37
     *
44
     * @var  LoggerInterface
38
     * @var  LoggerInterface
45
     */
39
     */
46
    private $logger;
40
    private $logger;
47
 
41
    
48
    /**
42
    /**
49
     *
43
     *
50
     * @var array
44
     * @var array
51
     */
45
     */
52
    private $config;
46
    private $config;
53
 
47
    
54
    /**
48
    /**
55
     *
49
     *
56
     * @param AdapterInterface $adapter
50
     * @param AdapterInterface $adapter
57
     *@param CacheInterface $cache
-
 
58
     * @param LoggerInterface $logger
51
     * @param LoggerInterface $logger
59
     * @param array $config
52
     * @param array $config
60
     */
53
     */
61
    public function __construct($adapter, $cache, $logger, $config) {
54
    public function __construct($adapter, $logger, $config)
-
 
55
    {
62
        $this->adapter = $adapter;
56
        $this->adapter = $adapter;
63
        $this->cache = $cache;
-
 
64
        $this->logger = $logger;
57
        $this->logger = $logger;
65
        $this->config = $config;
58
        $this->config = $config;
66
    }
59
    }
Línea 67... Línea 60...
67
 
60
 
Línea 357... Línea 350...
357
        } else {
350
        } else {
358
            @mkdir($target_path, 0755, true);
351
            @mkdir($target_path, 0755, true);
359
        }
352
        }
Línea 360... Línea 353...
360
        
353
        
361
        // Set Data
354
        // Set Data
362
        $headerFormName = utf8_decode($organizationalClimateForm->name);
355
        $headerFormName = Functions::utf8_decode($organizationalClimateForm->name);
363
        $headerSurveyName = utf8_decode('Informe de Encuesta: ' . trim($organizationalClimate->name) . ' al ' . date("m-d-Y H:i:s", strtotime($organizationalClimate->added_on)));
356
        $headerSurveyName = Functions::utf8_decode('Informe de Encuesta: ' . trim($organizationalClimate->name) . ' al ' . date("m-d-Y H:i:s", strtotime($organizationalClimate->added_on)));
Línea 364... Línea 357...
364
        $sections = json_decode($organizationalClimateForm->content, true);
357
        $sections = json_decode($organizationalClimateForm->content, true);
365
 
358
 
366
        $allTests = array_map(
359
        $allTests = array_map(