public function __construct($placeName, array $componentList, $template = 'drag_and_drop_panel')
 {
     parent::__construct($placeName, $componentList, $template);
     $customizeAllowed = BOL_ComponentAdminService::getInstance()->findPlace($placeName)->editableByUser;
     $this->assign('customizeAllowed', $customizeAllowed);
     $this->assign('placeName', $placeName);
 }
 public function __construct($placeName, array $componentList, $template)
 {
     parent::__construct($placeName, $componentList, $template);
     $jsDragAndDropUrl = OW::getPluginManager()->getPlugin('ADMIN')->getStaticJsUrl() . 'drag_and_drop.js';
     OW::getDocument()->addScript($jsDragAndDropUrl);
     $customizeAllowed = BOL_ComponentAdminService::getInstance()->findPlace($placeName);
     $this->assign('customizeAllowed', $customizeAllowed);
 }
Beispiel #3
0
 public function __construct($placeName, array $componentList, $customizeMode, $componentTemplate)
 {
     parent::__construct($placeName, $componentList, $componentTemplate);
     $this->customizeMode = (bool) $customizeMode;
     OW_ViewRenderer::getInstance()->registerFunction('dd_component', array($this, 'tplComponent'));
     $this->assign('customizeMode', $this->customizeMode);
     $this->assign('allowCustomize', $this->allowCustomize);
     $this->assign('placeName', $placeName);
 }
 public function __construct($placeName, array $componentList, $customizeMode, $componentTemplate, $responderController = null)
 {
     parent::__construct($placeName, $componentList, $componentTemplate);
     if (!empty($responderController)) {
         $this->responderController = $responderController;
     }
     $this->customizeMode = (bool) $customizeMode;
     $this->assign('customizeMode', $this->customizeMode);
     $this->assign('allowCustomize', $this->allowCustomize);
     $this->setSettingsClassName("BASE_CMP_ComponentFrontendSettings");
 }
 public function __construct($placeName, $entityId, array $componentList, $customizeMode, $componentTemplate, $responderController = null)
 {
     parent::__construct($placeName, $componentList, $componentTemplate);
     $this->entityId = (int) $entityId;
     if (!empty($responderController)) {
         $this->responderController = $responderController;
     }
     $this->customizeMode = (bool) $customizeMode;
     OW_ViewRenderer::getInstance()->registerFunction('dd_component', array($this, 'tplComponent'));
     $this->assign('customizeMode', $this->customizeMode);
     $this->assign('allowCustomize', $this->allowCustomize);
     $this->assign('placeName', $placeName);
     $this->assign('entityId', $this->entityId);
     $this->sharedData['entity'] = $this->entityId;
 }