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

Class: PEAR_Task_Postinstallscript_rw

Source Location: /PEAR-1.9.4/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.9.4

Copyright:

  • 1997-2009 The Authors

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 31]
Abstracts the postinstallscript file task xml.


[ Top ]


Method Detail

PEAR_Task_Postinstallscript_rw (Constructor)   [line 48]

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 120]

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 80]

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 61]

void getName( )


[ Top ]

getParam   [line 150]

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 141]

void getXml( )


[ Top ]

validate   [line 56]

void validate( )


[ Top ]


Documentation generated on Wed, 06 Jul 2011 23:31:20 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.