Bearsampp 2026.9.23
Loading...
Searching...
No Matches
PEAR_Task_Replace_rw Class Reference
Inheritance diagram for PEAR_Task_Replace_rw:
Collaboration diagram for PEAR_Task_Replace_rw:

Public Member Functions

 __construct (&$pkg, &$config, &$logger, $fileXml)
 getName ()
 getXml ()
 setInfo ($from, $to, $type)
 validate ()
Public Member Functions inherited from PEAR_Task_Replace
 init ($xml, $attribs, $lastVersion=null)
 startSession ($pkg, $contents, $dest)
Public Member Functions inherited from PEAR_Task_Common
 __construct (&$config, &$logger, $phase)
 isScript ()
 throwError ($msg, $code=-1)

Additional Inherited Members

Static Public Member Functions inherited from PEAR_Task_Replace
static validateXml ($pkg, $xml, $config, $fileXml)
Static Public Member Functions inherited from PEAR_Task_Common
static hasPostinstallTasks ()
static run ($tasks)
static runPostinstallTasks ()
Data Fields inherited from PEAR_Task_Replace
 $_replacements
 $phase = PEAR_TASK_PACKAGEANDINSTALL
 $type = 'simple'
Data Fields inherited from PEAR_Task_Common
 $logger
 $phase = PEAR_TASK_INSTALL
Protected Attributes inherited from PEAR_Task_Common
 $config
 $installphase
 $registry
 $type = 'simple'

Detailed Description

Definition at line 30 of file rw.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( & $pkg,
& $config,
& $logger,
$fileXml )

Definition at line 32 of file rw.php.

33 {
34 parent::__construct($config, $logger, PEAR_TASK_PACKAGE);
35 $this->_contents = $fileXml;
36 $this->_pkg = &$pkg;
37 $this->_params = array();
38 }
const PEAR_TASK_PACKAGE
Definition Common.php:23

References PEAR_Task_Common\$config, PEAR_Task_Common\$logger, and PEAR_TASK_PACKAGE.

Member Function Documentation

◆ getName()

getName ( )

Definition at line 50 of file rw.php.

51 {
52 return 'replace';
53 }

◆ getXml()

getXml ( )

Definition at line 55 of file rw.php.

56 {
57 return $this->_params;
58 }

◆ setInfo()

setInfo ( $from,
$to,
$type )

Definition at line 45 of file rw.php.

46 {
47 $this->_params = array('attribs' => array('from' => $from, 'to' => $to, 'type' => $type));
48 }

References PEAR_Task_Replace\$type.

◆ validate()

validate ( )

Definition at line 40 of file rw.php.

41 {
42 return $this->validateXml($this->_pkg, $this->_params, $this->config, $this->_contents);
43 }
static validateXml($pkg, $xml, $config, $fileXml)
Definition Replace.php:43

References PEAR_Task_Replace\validateXml().

Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • E:/Bearsampp-development/sandbox/core/libs/php/pear/pear/PEAR/Task/Replace/rw.php