![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| _stripNamespace ($params=null) | |
| init ($xml, $fileattribs, $lastversion) | |
| startSession ($pkg, $contents, $dest) | |
| Public Member Functions inherited from PEAR_Task_Common | |
| __construct (&$config, &$logger, $phase) | |
| isScript () | |
| throwError ($msg, $code=-1) | |
Static Public Member Functions | |
| static | run ($tasks) |
| static | validateXml ($pkg, $xml, $config, $fileXml) |
| Static Public Member Functions inherited from PEAR_Task_Common | |
| static | hasPostinstallTasks () |
| static | runPostinstallTasks () |
Data Fields | |
| $_class | |
| $_contents | |
| $_obj | |
| $_params | |
| $_pkg | |
| $phase = PEAR_TASK_INSTALL | |
| $type = 'script' | |
| Data Fields inherited from PEAR_Task_Common | |
| $logger | |
| $phase = PEAR_TASK_INSTALL | |
Additional Inherited Members | |
| Protected Attributes inherited from PEAR_Task_Common | |
| $config | |
| $installphase | |
| $registry | |
| $type = 'simple' | |
Definition at line 34 of file Postinstallscript.php.
| _stripNamespace | ( | $params = null | ) |
Strip the tasks: namespace from internal params
@access private
Definition at line 262 of file Postinstallscript.php.
References _stripNamespace().
Referenced by _stripNamespace(), and startSession().
| init | ( | $xml, | |
| $fileattribs, | |||
| $lastversion ) |
Initialize a task instance with the parameters
| array | $xml | raw, parsed xml |
| array | $fileattribs | attributes from the <file> tag containing this task |
| string | null | $lastversion | last installed version of this package, if any (useful for upgrades) |
Reimplemented from PEAR_Task_Common.
Definition at line 248 of file Postinstallscript.php.
|
static |
No longer used
| array | an array of tasks |
| string | install or upgrade @access protected |
Reimplemented from PEAR_Task_Common.
Definition at line 347 of file Postinstallscript.php.
| startSession | ( | $pkg, | |
| $contents, | |||
| $dest ) |
Unlike other tasks, the installed file name is passed in instead of the file contents, because this task is handled post-installation
| mixed | $pkg | PEAR_PackageFile_v1|PEAR_PackageFile_v2 |
| string | $contents | file name |
| string | $dest | the eventual final file location (informational only) |
Reimplemented from PEAR_Task_Common.
Definition at line 300 of file Postinstallscript.php.
References _stripNamespace(), PEAR_ERROR_RETURN, PEAR_TASK_INSTALL, and PEAR_Task_Common\throwError().
|
static |
Validate the raw xml at parsing-time.
This also attempts to validate the script to make sure it meets the criteria for a post-install script
| PEAR_PackageFile_v2 | |
| array | The XML contents of the <postinstallscript> tag |
| PEAR_Config | |
| array | the entire parsed <file> tag |
Reimplemented from PEAR_Task_Common.
Definition at line 59 of file Postinstallscript.php.
References PEAR_Task_Common\$config, foreach, if, PEAR_ERROR_RETURN, and PEAR_TASK_ERROR_INVALID.
Referenced by PEAR_Task_Postinstallscript_rw\validate().
| $_class |
Definition at line 37 of file Postinstallscript.php.
| $_contents |
Definition at line 45 of file Postinstallscript.php.
| $_obj |
Definition at line 39 of file Postinstallscript.php.
| $_params |
Definition at line 38 of file Postinstallscript.php.
Referenced by PEAR_Task_Postinstallscript_rw\getXml().
| $_pkg |
Definition at line 44 of file Postinstallscript.php.
| $phase = PEAR_TASK_INSTALL |
Definition at line 46 of file Postinstallscript.php.
| $type = 'script' |
Definition at line 36 of file Postinstallscript.php.
Referenced by PEAR_Task_Postinstallscript_rw\getParam().