Example #1
0
 /**
  * @param DownloadDataColumn $column
  */
 public function RenderDownloadDataColumn($column)
 {
     if ($column->GetData() == null) {
         $this->result = $this->GetNullValuePresentation($column);
     } else {
         if ($this->HtmlMarkupAvailable() && $this->HttpHandlersAvailable()) {
             $this->result = '<i class="pg-icon-download"></i>&nbsp;' . '<a target="_blank" title="download" href="' . $column->GetDownloadLink() . '">' . $column->GetLinkInnerHtml() . '</a>';
         } else {
             $this->result = $this->Captions()->GetMessageString('BinaryDataCanNotBeExportedToXls');
         }
     }
 }