Bearsampp 2026.9.23
Loading...
Searching...
No Matches
rw.php
Go to the documentation of this file.
1<?php
18require_once 'PEAR/Task/Replace.php';
31{
32 public function __construct(&$pkg, &$config, &$logger, $fileXml)
33 {
34 parent::__construct($config, $logger, PEAR_TASK_PACKAGE);
35 $this->_contents = $fileXml;
36 $this->_pkg = &$pkg;
37 $this->_params = array();
38 }
39
40 public function validate()
41 {
42 return $this->validateXml($this->_pkg, $this->_params, $this->config, $this->_contents);
43 }
44
45 public function setInfo($from, $to, $type)
46 {
47 $this->_params = array('attribs' => array('from' => $from, 'to' => $to, 'type' => $type));
48 }
49
50 public function getName()
51 {
52 return 'replace';
53 }
54
55 public function getXml()
56 {
57 return $this->_params;
58 }
59}
const PEAR_TASK_PACKAGE
Definition Common.php:23
__construct(&$pkg, &$config, &$logger, $fileXml)
Definition rw.php:32
setInfo($from, $to, $type)
Definition rw.php:45
static validateXml($pkg, $xml, $config, $fileXml)
Definition Replace.php:43