Файл: concrete5.7.5.6/concrete/controllers/backend/block.php
Строк: 46
<?php
namespace ConcreteControllerBackend;
use ConcreteControllerBackendUserInterfaceBlock as BackendInterfaceBlockController;
use ConcreteCoreBlockViewBlockView;
use ConcreteCoreViewDialogView;
class Block extends BackendInterfaceBlockController
{
public function render()
{
$btc = $this->block->getInstance();
$bv = new BlockView($this->block);
if (isset($_REQUEST['arEnableGridContainer']) && $_REQUEST['arEnableGridContainer'] == 1) {
$this->area->enableGridContainer();
}
$this->area->forceControlsToDisplay(); // we always want to show them controls.
$bv->addScopeItems(array('c' => $this->page, 'a' => $this->area, 'dialogController' => $this));
$this->set('bv', $bv);
$this->view = new DialogView('/backend/block');
}
protected function canAccess()
{
return $this->permissions->canViewEditInterface();
}
}