code = $code; } /** * Returns the form displaying the download link (and option to cancel the download?) * * @author KnowledgeTree Team * @access public * @param string $head The heading for the form * @param string $request_type Determines the actions for the buttons * @return html */ public function getNotificationForm($head) { global $default; // check for the download link $link = DownloadQueue::getDownloadLink($this->code); $text = 'Download Now'; $cancelAction = 'deleteDownload()'; $closeAction = 'deferDownload()'; $oTemplating =& KTTemplating::getSingleton(); $oTemplate = $oTemplating->loadTemplate('kt3/notifications/notification.BulkDownload'); $aTemplateData = array( 'head' => $head, 'downloadLink' => $link, 'downloadText' => $text, 'exportCode' => $this->code, 'cancelAction' => $cancelAction, 'closeAction' => $closeAction ); return $oTemplate->render($aTemplateData); } /** * Returns the error from the attempted signature * * @author KnowledgeTree Team * @access public * @return string */ public function getError() { return '