public function getHtmlOutput(\Zend_View_Abstract $view) { $html = $this->getHtmlSequence(); $html->h1($this->_('Respondent report')); $table = $html->table(array('class' => 'browser')); $table->th($this->_('Report information'), array('colspan' => 2)); $table->tr()->th($this->_('Generated by'))->td($this->currentUser->getFullName()); $table->tr()->th($this->_('Generated on'))->td(new \Zend_Date()); $table->tr()->th($this->_('Organization'))->td($this->currentOrganization->getName()); $html->br(); return $html; }
/** * Get the organization name/code used by the long term filename * * @return string */ public function getOrganizationCode() { if (!$this->_orgCode) { $this->_orgCode = $this->currentOrganization->getCode(); if (!$this->_orgCode) { $this->_orgCode = \MUtil_File::cleanupName($this->currentOrganization->getName()); } } return $this->_orgCode; }