StrongElement.class.php (374B)
1 <?php 2 3 /** 4 * @author $Author$ 5 * @version $Revision$ 6 * @package openrat.text 7 */ 8 class StrongElement 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 23 var $markup = array( 'beginswith' =>'*' , 24 'endswith'=>'*' ); 25 } 26 27 ?>