openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

EmphaticElement.class.php (285B)


      1 <?php
      2 
      3 /**
      4  * @author $Author$
      5  * @version $Revision$
      6  * @package openrat.text
      7  */
      8 class EmphaticElement extends AbstractElement
      9 {
     10 	function render( $type )
     11 	{
     12 		switch( $type )
     13 		{
     14 			case 'html':
     15 				return '<p>'.$this->value.'</p>';
     16 			default:
     17 				return $this->value;
     18 		}
     19 	}
     20 }
     21 
     22 ?>