Location: PHPKode > scripts > PAX > pax/core/classes/InstructionReplacer.class.php
<?php

/**
 * Page DocBlock definition
 * @package org.zadara.marius.pax
 */

/**
 * Instruction extractor class definition.
 * 
 * @author Marius Zadara <hide@address.com>
 * @category Classes
 * @copyright (C) 2008-2009 Marius Zadara
 * @license Free for non-comercial use
 * @package org.zadara.marius.pax
 * @final 
 * @see PAXObject
 * @see IInstructionExtractor
 * @version 6.0
 * @since 5.0
 */
final class InstructionReplacer extends PAXObject implements IInstructionReplacer
{
    /**
     * Class constructor
     * 
     * @access public
     */
	public function __construct()
	{
	    // init the parent first
		parent::__construct();
	}
	
	/**
	 * Method to replace strings in a text using a pattern.
	 * 
	 * @access public
	 * @static 
	 * @param string <b>$pattern</b> The search pattern
	 * @param string <b>$value</b> The value to replace the pattern with
	 * @param string <b>$where</b> The text source
	 * @return string The new source after replacing
	 */
	public static function replace($pattern, $value, $where)
	{
	    // call the standard function
		return preg_replace($pattern, $value, $where);	
	}

	/**
	 * Class destructor
	 * 
	 * @access public
	 */
	function __destruct()
	{
		
	}
	
}

?>
Return current item: PAX