3 * <tasks:replace> - read/write version
9 * @author Greg Beaver <cellog@php.net>
10 * @copyright 1997-2009 The Authors
11 * @license http://opensource.org/licenses/bsd-license.php New BSD License
12 * @version CVS: $Id: rw.php 313023 2011-07-06 19:17:11Z dufuz $
13 * @link http://pear.php.net/package/PEAR
14 * @since File available since Release 1.4.0a10
19 require_once 'PEAR/Task/Replace.php';
21 * Abstracts the replace task xml.
24 * @author Greg Beaver <cellog@php.net>
25 * @copyright 1997-2009 The Authors
26 * @license http://opensource.org/licenses/bsd-license.php New BSD License
27 * @version Release: 1.9.4
28 * @link http://pear.php.net/package/PEAR
29 * @since Class available since Release 1.4.0a10
31 class PEAR_Task_Replace_rw extends PEAR_Task_Replace
33 function PEAR_Task_Replace_rw(&$pkg, &$config, &$logger, $fileXml)
35 parent::PEAR_Task_Common($config, $logger, PEAR_TASK_PACKAGE);
36 $this->_contents = $fileXml;
38 $this->_params = array();
43 return $this->validateXml($this->_pkg, $this->_params, $this->config, $this->_contents);
46 function setInfo($from, $to, $type)
48 $this->_params = array('attribs' => array('from' => $from, 'to' => $to, 'type' => $type));
58 return $this->_params;