Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3639 Rev 4842
Línea 1... Línea 1...
1
<?php
1
<?php
-
 
2
use LeadersLinked\Model\Network;
-
 
3
 
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
4
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
Línea 3... Línea 5...
3
 
5
 
4
$currentUser    = $this->currentUserHelper();
6
$currentUser    = $this->currentUserHelper();
Línea 8... Línea 10...
8
$this->headLink()->appendStylesheet('/react-bundles/dashboard/main.css');
10
$this->headLink()->appendStylesheet('/react-bundles/dashboard/main.css');
9
$this->inlineScript()->appendFile('https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places');
11
$this->inlineScript()->appendFile('https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places');
10
$currentUser = $this->currentUserHelper();
12
$currentUser = $this->currentUserHelper();
11
$currentUser = $currentUser->getUser();
13
$currentUser = $currentUser->getUser();
Línea -... Línea 14...
-
 
14
 
-
 
15
$currentNetwork = $this->currentNetworkHelper();
-
 
16
$currentNetwork = $currentNetwork->getNetwork();
Línea 12... Línea 17...
12
 
17
 
Línea -... Línea 18...
-
 
18
 
-
 
19
$allowSearchCompany = $acl->isAllowed($roleName, 'search/company') ? 1 : 0;
13
 
20
 
14
$allowSearchCompany = $acl->isAllowed($roleName, 'search/company') ? 1 : 0;
21
 
15
 
22
$allowViewConnectionLevelFilter =$currentNetwork->relationship_user_mode == Network::RELATIONSHIP_USER_MODE_USER_2_USER ? 1 : 0;
16
 
23
 
17
$routeMoodle = $this->url('moodle');
24
$routeMoodle = $this->url('moodle');
Línea 31... Línea 38...
31
  connectionLevelFilters: '$connectionLeves',
38
  connectionLevelFilters: '$connectionLeves',
32
  employeeTypeFilters: '$_employeeTypes',
39
  employeeTypeFilters: '$_employeeTypes',
33
  companySizeFilters: '$companySizes',
40
  companySizeFilters: '$companySizes',
34
  groupTypeFilters: '$groupTypes',
41
  groupTypeFilters: '$groupTypes',
35
  allowSearchCompany: '$allowSearchCompany' === '1',  
42
  allowSearchCompany: '$allowSearchCompany' === '1',  
-
 
43
  allowViewConnectionLevelFilter:  '$allowViewConnectionLevelFilter' === '1',   
36
}
44
}
Línea 37... Línea 45...
37
 
45
 
38
 
46