| Línea 4... |
Línea 4... |
| 4 |
namespace LeadersLinked\Controller;
|
4 |
namespace LeadersLinked\Controller;
|
| Línea 5... |
Línea 5... |
| 5 |
|
5 |
|
| 6 |
use Laminas\Authentication\AuthenticationService;
|
6 |
use Laminas\Authentication\AuthenticationService;
|
| 7 |
use Laminas\Authentication\Result as AuthResult;
|
7 |
use Laminas\Authentication\Result as AuthResult;
|
| 8 |
use Laminas\Db\Adapter\AdapterInterface;
|
8 |
use Laminas\Db\Adapter\AdapterInterface;
|
| 9 |
use Laminas\Cache\Storage\Adapter\AbstractAdapter;
|
9 |
use LeadersLinked\Cache\CacheInterface;
|
| 10 |
use Laminas\Mvc\Controller\AbstractActionController;
|
10 |
use Laminas\Mvc\Controller\AbstractActionController;
|
| 11 |
use Laminas\Mvc\I18n\Translator;
|
11 |
use Laminas\Mvc\I18n\Translator;
|
| 12 |
use Laminas\Log\LoggerInterface;
|
12 |
use Laminas\Log\LoggerInterface;
|
| 13 |
use Laminas\View\Model\ViewModel;
|
13 |
use Laminas\View\Model\ViewModel;
|
| 14 |
use Laminas\View\Model\JsonModel;
|
- |
|
| - |
|
14 |
use Laminas\View\Model\JsonModel;
|
| 15 |
use LeadersLinked\Model\PlanningObjectivesAndGoalsGoals;
|
15 |
|
| 16 |
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
|
16 |
use LeadersLinked\Hydrator\ObjectPropertyHydrator;
|
| Línea 17... |
Línea 17... |
| 17 |
use LeadersLinked\Form\PlanningObjectivesAndGoalsGoalsForm;
|
17 |
use LeadersLinked\Form\PlanningObjectivesAndGoalsGoalsForm;
|
| 18 |
|
18 |
|
| Línea 35... |
Línea 35... |
| 35 |
private $adapter;
|
35 |
private $adapter;
|
| Línea 36... |
Línea 36... |
| 36 |
|
36 |
|
| 37 |
|
37 |
|
| 38 |
/**
|
38 |
/**
|
| 39 |
*
|
39 |
*
|
| 40 |
* @var AbstractAdapter
|
40 |
* @var CacheInterface
|
| Línea 41... |
Línea 41... |
| 41 |
*/
|
41 |
*/
|
| 42 |
private $cache;
|
42 |
private $cache;
|
| Línea 56... |
Línea 56... |
| 56 |
|
56 |
|
| 57 |
|
57 |
|
| 58 |
/**
|
58 |
/**
|
| 59 |
*
|
59 |
*
|
| 60 |
* @param AdapterInterface $adapter
|
60 |
* @param AdapterInterface $adapter
|
| 61 |
* @param AbstractAdapter $cache
|
61 |
* @param CacheInterface $cache
|
| 62 |
* @param LoggerInterface $logger
|
62 |
* @param LoggerInterface $logger
|
| 63 |
* @param array $config
|
63 |
* @param array $config
|
| 64 |
*/
|
64 |
*/
|
| Línea 187... |
Línea 187... |
| 187 |
$allowDelete = $acl->isAllowed($currentUser->usertype_id, 'high-performance-teams/groups/view/objectives/goals/delete');
|
187 |
$allowDelete = $acl->isAllowed($currentUser->usertype_id, 'high-performance-teams/groups/view/objectives/goals/delete');
|
| 188 |
$allowGoals = $acl->isAllowed($currentUser->usertype_id, 'high-performance-teams/groups/view/objectives/goals/task');
|
188 |
$allowGoals = $acl->isAllowed($currentUser->usertype_id, 'high-performance-teams/groups/view/objectives/goals/task');
|
| 189 |
$allowAdd = $acl->isAllowed($currentUser->usertype_id, 'high-performance-teams/groups/view/objectives/goals/add');
|
189 |
$allowAdd = $acl->isAllowed($currentUser->usertype_id, 'high-performance-teams/groups/view/objectives/goals/add');
|
| Línea 190... |
Línea 190... |
| 190 |
|
190 |
|
| 191 |
$search = $this->params()->fromQuery('search', []);
|
191 |
$search = $this->params()->fromQuery('search', []);
|
| Línea 192... |
Línea 192... |
| 192 |
$search = empty($search['value']) ? '' : filter_var($search['value'], FILTER_SANITIZE_STRING);
|
192 |
$search = empty($search['value']) ? '' : Functions::sanitizeFilterString($search['value']);
|
| 193 |
|
193 |
|
| 194 |
$records_x_page = intval($this->params()->fromQuery('length', 10), 10);
|
194 |
$records_x_page = intval($this->params()->fromQuery('length', 10), 10);
|
| 195 |
$page = (intval($this->params()->fromQuery('start', 1), 10)/$records_x_page)+1;
|
195 |
$page = (intval($this->params()->fromQuery('start', 1), 10)/$records_x_page)+1;
|
| 196 |
$order = $this->params()->fromQuery('order', []);
|
196 |
$order = $this->params()->fromQuery('order', []);
|
| Línea 197... |
Línea 197... |
| 197 |
$order_field = empty($order[0]['column']) ? 99 : intval($order[0]['column'], 10);
|
197 |
$order_field = empty($order[0]['column']) ? 99 : intval($order[0]['column'], 10);
|
| 198 |
$order_direction = empty($order[0]['dir']) ? 'ASC' : strtoupper(filter_var( $order[0]['dir'], FILTER_SANITIZE_STRING));
|
198 |
$order_direction = empty($order[0]['dir']) ? 'ASC' : strtoupper(Functions::sanitizeFilterString($order[0]['dir']));
|
| Línea 199... |
Línea 199... |
| 199 |
|
199 |
|