コード例 #1
0
 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();
     $sendTestElement = new SendTestEmailLinkActionElement($this->controllerId, $this->moduleId, $this->modelId);
     $sendTestElementContent = $sendTestElement->renderMenuItem();
     // TODO: @Shoaibi/@Jason: Low: securable on these items from the outside coming in?
     $menuItems = array($sendTestElementContent, $editElementContent, $deleteElementContent, $copyElementContent);
     return $menuItems;
 }
 protected function renderSendTestEmailButtonContent()
 {
     $element = new SendTestEmailLinkActionElement(static::getControllerId(), static::getModuleId(), $this->modelId);
     $content = $element->render();
     return $content;
 }