Documentation is available at BasicOutputHandler.class.php
- <?php
- /**
- * @package harmoni.architecture.output
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: BasicOutputHandler.class.php,v 1.6 2007/09/04 20:25:30 adamfranco Exp $
- */
- require_once(HARMONI."/architecture/output/OutputHandler.abstract.php");
- /**
- * The OutputHander abstract class defines methods for the interaction between
- * the Harmoni framework object and output handling classes.
- *
- *
- * @package harmoni.architecture.output
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: BasicOutputHandler.class.php,v 1.6 2007/09/04 20:25:30 adamfranco Exp $
- */
- class BasicOutputHandler
- extends OutputHandler
- {
- /**
- * Output the content that was returned from an action. This content should
- * have been created such that it is a type that this OutputHandler can deal
- * with.
- *
- * @param mixed $returnedContent Content returned by the action
- * @param string $printedContent Additional content printed, but not returned.
- * @return void
- * @access public
- * @since 4/4/05
- */
- function output ( $returnedContent, $printedContent ) {
- $osidContext =$this->getOsidContext();
- $harmoni =$osidContext->getContext('harmoni');
- $doctypeDef = $this->_configuration->getProperty('document_type_definition');
- $doctype = $this->_configuration->getProperty('document_type');
- $characterSet = $this->_configuration->getProperty('character_set');
- $head = $this->getHead();
- header("Content-type: $doctype; charset=$characterSet");
- print<<<END
- $doctypeDef
- <html>
- <head>
- <meta http-equiv="Content-Type" content="$doctype; charset=$characterSet" />
- $head
- </head>
- <body>
- $printedContent
- END;
- if (is_string($returnedContent))
- print $returnedContent;
- print<<<END
- </body>
- </html>
- END;
- }
- }
- ?>
Documentation generated on Wed, 19 Sep 2007 10:21:44 -0400 by phpDocumentor 1.3.0RC3