![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct (&$pkg, &$config, &$logger, $fileXml) | |
| addConditionTypeGroup ($id, $oldgroup, $param, $value, $conditiontype='=', $params=false, $instructions=false) | |
| addParamGroup ($id, $params=false, $instructions=false) | |
| getName () | |
| getParam ( $name, $prompt, $type='string', $default=null) | |
| getXml () | |
| validate () | |
| Public Member Functions inherited from PEAR_Task_Postinstallscript | |
| _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) | |
Data Fields | |
| $_pkg | |
| Data Fields inherited from PEAR_Task_Postinstallscript | |
| $_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 | |
| Static Public Member Functions inherited from PEAR_Task_Postinstallscript | |
| static | run ($tasks) |
| static | validateXml ($pkg, $xml, $config, $fileXml) |
| Static Public Member Functions inherited from PEAR_Task_Common | |
| static | hasPostinstallTasks () |
| static | runPostinstallTasks () |
| Protected Attributes inherited from PEAR_Task_Common | |
| $config | |
| $installphase | |
| $registry | |
| $type = 'simple' | |
| __construct | ( | & | $pkg, |
| & | $config, | ||
| & | $logger, | ||
| $fileXml ) |
Enter description here...
| PEAR_PackageFile_v2_rw | $pkg | Package |
| PEAR_Config | $config | Config |
| PEAR_Frontend | $logger | Logger |
| array | $fileXml | XML |
Definition at line 48 of file rw.php.
References PEAR_Task_Common\$config, PEAR_Task_Common\$logger, and PEAR_TASK_PACKAGE.
| addConditionTypeGroup | ( | $id, | |
| $oldgroup, | |||
| $param, | |||
| $value, | |||
| $conditiontype = '=', | |||
| $params = false, | |||
| $instructions = false ) |
Add a complex <paramgroup> to the post-install script with conditions
This inserts a <paramgroup> with
Order is significant, so call this method in the same sequence the users should see the paramgroups. The $params parameter should either be the result of a call to getParam() or an array of calls to getParam().
Use addParamGroup() to add a simple <paramgroup>
| string | $id | <paramgroup> id as seen by the script |
| string | $oldgroup | <paramgroup> id of the section referenced by <conditiontype> |
| string | $param | name of the from the older section referenced by <contitiontype> |
| string | $value | value to match of the parameter |
| string | $conditiontype | one of '=', '!=', 'preg_match' |
| array | false | $params | array of getParam() calls, or false for no params |
| string | false | $instructions |
Definition at line 121 of file rw.php.
| addParamGroup | ( | $id, | |
| $params = false, | |||
| $instructions = false ) |
add a simple <paramgroup> to the post-install script
Order is significant, so call this method in the same sequence the users should see the paramgroups. The $params parameter should either be the result of a call to getParam() or an array of calls to getParam().
Use addConditionTypeGroup() to add a <paramgroup> containing a <conditiontype> tag
| string | $id | <paramgroup> id as seen by the script |
| array | false | $params | array of getParam() calls, or false for no params |
| string | false | $instructions |
Definition at line 81 of file rw.php.
| getParam | ( | $name, | |
| $prompt, | |||
| $type = 'string', | |||
| $default = null ) |
Use to set up a param tag for use in creating a paramgroup
| mixed | $name | Name of parameter |
| mixed | $prompt | Prompt |
| string | $type | Type, defaults to 'string' |
| mixed | $default | Default value |
Definition at line 162 of file rw.php.
References PEAR_Task_Postinstallscript\$type.
| getXml | ( | ) |
| validate | ( | ) |
Definition at line 56 of file rw.php.
References PEAR_Task_Postinstallscript\validateXml().