PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_Task_Postinstallscript_rw

Source Location: /PEAR-1.7.2/PEAR/Task/Postinstallscript/rw.php

Class Overview

PEAR_Task_Common
   |
   --PEAR_Task_Postinstallscript
      |
      --PEAR_Task_Postinstallscript_rw

Abstracts the postinstallscript file task xml.


Author(s):

Version:

  • Release: 1.7.2

Copyright:

  • 1997-2008 The PHP Group

Methods


Inherited Variables

Inherited Methods

Class: PEAR_Task_Postinstallscript

PEAR_Task_Postinstallscript::init()
Initialize a task instance with the parameters
PEAR_Task_Postinstallscript::run()
No longer used
PEAR_Task_Postinstallscript::startSession()
Unlike other tasks, the installed file name is passed in instead of the file contents,
PEAR_Task_Postinstallscript::validateXml()
Validate the raw xml at parsing-time.

Class: PEAR_Task_Common

PEAR_Task_Common::PEAR_Task_Common()
PEAR_Task_Common::hasPostinstallTasks()
PEAR_Task_Common::init()
Initialize a task instance with the parameters
PEAR_Task_Common::isScript()
Determines whether a role is a script
PEAR_Task_Common::run()
This method is used to process each of the tasks for a particular multiple class type. Simple tasks need not implement this method.
PEAR_Task_Common::runPostinstallTasks()
PEAR_Task_Common::startSession()
Begin a task processing session. All multiple tasks will be processed after each file has been successfully installed, all simple tasks should perform their task here and return any errors using the custom throwError() method to allow forward compatibility
PEAR_Task_Common::throwError()
PEAR_Task_Common::validateXml()
Validate the basic contents of a task tag.

Class Details

[line 37]
Abstracts the postinstallscript file task xml.


[ Top ]


Method Detail

PEAR_Task_Postinstallscript_rw (Constructor)   [line 54]

PEAR_Task_Postinstallscript_rw PEAR_Task_Postinstallscript_rw( &$pkg, &$config, &$logger, array $fileXml, PEAR_PackageFile_v2_rw $pkg, PEAR_Config $config, PEAR_Frontend $logger)

Enter description here...

Parameters:

PEAR_PackageFile_v2_rw   $pkg   — 
PEAR_Config   $config   — 
PEAR_Frontend   $logger   — 
array   $fileXml   — 
   &$pkg   — 
   &$config   — 
   &$logger   — 

[ Top ]

addConditionTypeGroup   [line 126]

void addConditionTypeGroup( string $id, string $oldgroup, string $param, string $value, [string $conditiontype = '='], [array|false $params = false], [string|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>


Parameters:

string   $id   —  <paramgroup> id as seen by the script
string   $oldgroup   —  <paramgroup> id of the section referenced by <conditiontype>
string   $param   —  name of the <param> 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   — 

[ Top ]

addParamGroup   [line 86]

void addParamGroup( string $id, [array|false $params = false], [string|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


Parameters:

string   $id   —  <paramgroup> id as seen by the script
array|false   $params   —  array of getParam() calls, or false for no params
string|false   $instructions   — 

[ Top ]

getName   [line 67]

void getName( )


[ Top ]

getParam   [line 157]

void getParam( $name, $prompt, [ $type = 'string'], [ $default = null])

Use to set up a param tag for use in creating a paramgroup

Parameters:

   $name   — 
   $prompt   — 
   $type   — 
   $default   — 

[ Top ]

getXml   [line 148]

void getXml( )


[ Top ]

validate   [line 62]

void validate( )


[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:21:50 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.