<?php
 require_once 'PEAR/Task/Replace.php'; class PEAR_Task_Replace_rw extends PEAR_Task_Replace { function PEAR_Task_Replace_rw(&$pkg, &$config, &$logger, $fileXml) { parent::PEAR_Task_Common($config, $logger, PEAR_TASK_PACKAGE); $this->_contents = $fileXml; $this->_pkg = &$pkg; $this->_params = array(); } function validate() { return $this->validateXml($this->_pkg, $this->_params, $this->config, $this->_contents); } function setInfo($from, $to, $type) { $this->_params = array('attribs' => array('from' => $from, 'to' => $to, 'type' => $type)); } function getName() { return 'replace'; } function getXml() { return $this->_params; } } ?>