Файл: concrete5.7.5.6/concrete/controllers/dialog/page/attributes.php
Строк: 48
<?php
namespace ConcreteControllerDialogPage;
use ConcreteControllerBackendUserInterface as BackendInterfaceController;
use ConcreteControllerPanelPageAttributes as PageAttributesPanelController;
use ConcreteControllerPanelDetailPageAttributes as PageAttributesPanelDetailController;
use ConcreteControllerBackendUserInterfacePage as BackendInterfacePageController;
use Loader;
class Attributes extends BackendInterfacePageController {
protected $viewPath = '/dialogs/page/attributes';
protected function canAccess() {
return $this->permissions->canEditPageProperties();
}
public function view() {
$list = new PageAttributesPanelController();
$list->setPageObject($this->page);
$list->view();
$this->set('menu', $list->getViewObject());
$detail = new PageAttributesPanelDetailController();
$detail->on_start();
$detail->setPageObject($this->page);
$detail->view();
$detail = $detail->getViewObject();
$detail->addScopeItems(array('sitemap' => true));
$this->set('detail', $detail);
}
}