*/ /** * patTemplate modfifier Wordwrapper * * * @package patTemplate * @subpackage Modifiers * @author Stephan Schmidt * @link http://www.php.net/manual/en/function.wordwrap.php */ class patTemplate_Modifier_Cmfetcher extends patTemplate_Modifier { /** * modify the value * * @access public * @param string value * @return string modified value */ function modify( $value, $params = array() ) { $cm =& wbFactory::singleton( 'wbContentManager' ); if( !isset( $params['target'] ) ) { $params['target'] = 'html'; } return $cm->transform( $value, $params['target'] ); } } ?>