openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

StrongElement.class.php (416B)


      1 <?php
      2 
      3 namespace wikiparser\model;
      4 
      5 use wikiparser\model\AbstractElement;
      6 
      7 /**
      8  * @author $Author$
      9  * @version $Revision$
     10  * @package openrat.text
     11  */
     12 class StrongElement extends AbstractElement
     13 {
     14 	function render($type)
     15 	{
     16 		switch ($type) {
     17 			case 'html':
     18 				return '<p>' . $this->value . '</p>';
     19 			default:
     20 				return $this->value;
     21 		}
     22 	}
     23 
     24 
     25 	var $markup = array('beginswith' => '*',
     26 		'endswith' => '*');
     27 }
     28 
     29 ?>