Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1546 Rev 2898
Línea 38... Línea 38...
38
        foreach($childs as $child) {
38
        foreach($childs as $child) {
39
            if(!$acl->isAllowed($session_usertype_id ,  $child->getRoute())) {
39
            if(!$acl->isAllowed($session_usertype_id ,  $child->getRoute())) {
40
    		      continue;
40
    		      continue;
41
    	    }
41
    	    }
Línea -... Línea 42...
-
 
42
    	    
-
 
43
    	    $childs_level2 = [];
-
 
44
    	    
-
 
45
    	    
-
 
46
    	    $childsLevel2 = $child->getPages();
-
 
47
    	    if($childsLevel2) {
-
 
48
    	        foreach($childsLevel2 as $childLevel2) {
-
 
49
    	            if(!$acl->isAllowed($session_usertype_id ,  $childLevel2->getRoute())) {
-
 
50
    	                continue;
-
 
51
    	            }
-
 
52
    	        }
-
 
53
    	        
-
 
54
    	        array_push($childsLevel2, [
-
 
55
    	            'label' => $childLevel2->getLabel(),
-
 
56
    	            'href' => $childLevel2->getHref(),
-
 
57
    	            
-
 
58
    	        ]);
-
 
59
    	    }
-
 
60
    	    
42
    	    
61
    	    
43
    	    array_push($option['childs'], [
62
    	    array_push($option['childs'], [
44
    	        'label' => $child->getLabel(),
63
    	        'label' => $child->getLabel(),
-
 
64
    	        'href' => $child->getHref(),
45
    	        'href' => $child->getHref(),
65
    	        'childs' => $childs_level2,
Línea 46... Línea 66...
46
    	    ]);
66
    	    ]);
47
    	    
67