protected function getMenuItems() { $deleteElement = new ProjectDeleteLinkActionElement($this->controllerId, $this->params["relationModuleId"], $this->modelId); $deleteElementContent = $deleteElement->renderMenuItem(); $editElement = new EditLinkActionElement($this->controllerId, $this->params["relationModuleId"], $this->modelId); $editElementContent = $editElement->renderMenuItem(); $copyElement = new CopyLinkActionElement($this->controllerId, $this->params["relationModuleId"], $this->modelId); $copyElementContent = $copyElement->renderMenuItem(); $menuItems = array($editElementContent, $copyElementContent, $deleteElementContent); return $menuItems; }
protected function getMenuItems() { $deleteElement = new CampaignDeleteLinkActionElement($this->controllerId, $this->moduleId, $this->modelId); $deleteElementContent = $deleteElement->renderMenuItem(); $editElement = new EditLinkActionElement($this->controllerId, $this->moduleId, $this->modelId); $editElementContent = $editElement->renderMenuItem(); $copyElement = new CopyLinkActionElement($this->controllerId, $this->moduleId, $this->modelId); $copyElementContent = $copyElement->renderMenuItem(); // TODO: @Shoaibi/@Jason: Low: securable on these items from the outside coming in? $menuItems = array($editElementContent, $deleteElementContent, $copyElementContent); return $menuItems; }