Вход Регистрация
Файл: concrete5.7.5.6/concrete/controllers/single_page/dashboard/system.php
Строк: 27
<?php

namespace ConcreteControllerSinglePageDashboard;
use 
ConcreteCorePageControllerDashboardPageController;
use 
Page;
use 
Permissions;

class 
System extends DashboardPageController {

    public 
$helpers = array('form'); 
    
    public function 
view() {
        
$this->enableNativeMobile();
        
$categories = array();
        
$c Page::getCurrentPage();
        
$children $c->getCollectionChildrenArray(true);
        foreach(
$children as $cID) {
            
$nc Page::getByID($cID'ACTIVE');
            
$ncp = new Permissions($nc);
            if (
$ncp->canRead()) {
                
$categories[] = $nc;    
            }
        }
        
$this->set('categories'$categories);
    }

}
Онлайн: 0
Реклама