function getLinkDownload($title, $class = "button") { if ($this->mEstatOpen == true) { $this->setClose(); } $xBtn = new cHButton(); $xLn = new cLang(); $title = $xLn->getT($title); $ic = $xBtn->setIcon($xBtn->ic()->DESCARGAR); $class = $class == "" ? "" : " class=\"{$class}\" "; $str = "<a href=\"../utils/download.php?type=txt&download=" . $this->mName . "&file=" . $this->mName . "\" target=\"_blank\" {$class}>{$ic} {$title}</a>"; return $str; }