*/ /** * [CLASS/FUNCTION INDEX of SCRIPT] * * * * 76: class SC_show_rechis * 87: function init() * 105: function main() * 131: function printContent() * * TOTAL FUNCTIONS: 3 * (This index is automatically created/updated by the extension "extdeveval") * */ $BACK_PATH=''; require ($BACK_PATH.'init.php'); require ($BACK_PATH.'template.php'); $LANG->includeLLFile('EXT:lang/locallang_show_rechis.xml'); require_once ('class.show_rechis.inc'); /** * Script Class for showing the history module of TYPO3s backend * * @author Kasper Skårhøj * @package TYPO3 * @subpackage core * @see class.show_rechis.inc */ class SC_show_rechis { // Internal: var $content; /** * Document template object * * @var mediumDoc */ var $doc; /** * Initialize the module output * * @return void */ function init() { // Create internal template object: $this->doc = t3lib_div::makeInstance('template'); $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->setModuleTemplate('templates/show_rechis.html'); // Start the page header: $this->content.=$this->doc->header($GLOBALS['LANG']->getLL('title')); $this->content.=$this->doc->spacer(5); } /** * Generate module output * * @return void */ function main() { // Start history object $historyObj = t3lib_div::makeInstance('recordHistory'); // Get content: $this->content .= $historyObj->main(); // Setting up the buttons and markers for docheader $docHeaderButtons = $this->getButtons(); $markers['CONTENT'] = $this->content; $markers['CSH'] = $docHeaderButtons['csh']; // Build the for the module $this->content = $this->doc->startPage($GLOBALS['LANG']->getLL('title')); $this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers); } /** * Outputting the accumulated content to screen * * @return void */ function printContent() { $this->content.=$this->doc->spacer(8); $this->content.= $this->doc->endPage(); $this->content = $this->doc->insertStylesAndJS($this->content); echo $this->content; } /** * Create the panel of buttons for submitting the form or otherwise perform operations. * * @return array all available buttons as an assoc. array */ protected function getButtons() { $buttons = array( 'csh' => '', 'back' => '' ); // CSH $buttons['csh'] = t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'history_log', $GLOBALS['BACK_PATH'], '', TRUE); // Start history object $historyObj = t3lib_div::makeInstance('recordHistory'); if ($historyObj->returnUrl) { $buttons['back']= '' . t3lib_iconWorks::getSpriteIcon('actions-view-go-back') . ''; } return $buttons; } } if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/show_rechis.php'])) { include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/show_rechis.php']); } // Make instance: $SOBE = t3lib_div::makeInstance('SC_show_rechis'); $SOBE->init(); $SOBE->main(); $SOBE->printContent(); ?>