public function GetValue()
 {
     $showButton = true;
     $this->OnShow->Fire(array(&$showButton));
     $result = false;
     if ($showButton) {
         $result = array('type' => 'modal', 'name' => $this->GetName(), 'useImage' => $this->isUseImage(), 'link' => HtmlUtils::EscapeUrl($this->GetLink()), 'caption' => $this->GetCaption(), 'dialogTitle' => htmlspecialchars($this->dialogTitle));
     }
     return $result;
 }
 public function GetValue()
 {
     $showButton = true;
     $this->OnShow->Fire(array(&$showButton));
     $result = false;
     if ($showButton) {
         $result = array('type' => 'link', 'name' => $this->GetName(), 'useImage' => $this->isUseImage(), 'link' => HtmlUtils::EscapeUrl($this->GetLink()), 'caption' => $this->GetCaption(), 'additionalAttributes' => $this->additionalAttributes);
     }
     return $result;
 }
Пример #3
0
 public function GetValue()
 {
     $showButton = true;
     $this->OnShow->Fire(array(&$showButton));
     if ($showButton) {
         if ($this->GetImagePath() != null) {
             return StringUtils::Format('<a href="%s" title="%s" class="view-record-action"' . $this->additionalAttributes . '>' . '<i class="%s"></i>' . '</a>', HtmlUtils::EscapeUrl($this->GetLink()), $this->GetCaption(), $this->GetLinkClass());
         } else {
             return StringUtils::Format('<span><a href="%s" ' . $this->additionalAttributes . '>%s</a></span>', HtmlUtils::EscapeUrl($this->GetLink()), $this->GetCaption());
         }
     } else {
         return '';
     }
 }