[ Index ] |
|
Code source de PHP PEAR 1.4.5 |
[Code source] [Imprimer] [Statistiques]
PEAR_Task_Common, base class for installer tasks PHP versions 4 and 5
Author: | Greg Beaver <cellog@php.net> |
Copyright: | 1997-2006 The PHP Group |
License: | http://www.php.net/license/3_0.txt PHP License 3.0 |
Version: | CVS: $Id: Common.php,v 1.16 2006/11/12 05:02:41 cellog Exp $ |
Poids: | 208 lignes (6 kb) |
Inclus ou requis: | 5 fois |
Référencé: | 3 fois |
Nécessite: | 1 fichier PEAR.php |
PEAR_Task_Common:: (9 méthodes):
PEAR_Task_Common()
validateXml()
init()
startSession()
run()
hasPostinstallTasks()
runPostinstallTasks()
isScript()
throwError()
Classe: PEAR_Task_Common - X-Ref
A task is an operation that manipulates the contents of a file.PEAR_Task_Common(&$config, &$logger, $phase) X-Ref |
param: PEAR_Config param: PEAR_Common |
validateXml($pkg, $xml, &$config, $fileXml) X-Ref |
Validate the basic contents of a task tag. param: PEAR_PackageFile_v2 param: array param: PEAR_Config param: array the entire parsed <file> tag return: true|array On error, return an array in format: |
init($xml, $fileAttributes, $lastVersion) X-Ref |
Initialize a task instance with the parameters param: array raw, parsed xml param: array attributes from the <file> tag containing this task param: string|null last installed version of this package |
startSession($pkg, $contents, $dest) X-Ref |
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 This method MUST NOT write out any changes to disk param: PEAR_PackageFile_v2 param: string file contents param: string the eventual final file location (informational only) return: string|false|PEAR_Error false to skip this file, PEAR_Error to fail |
run($tasks) X-Ref |
This method is used to process each of the tasks for a particular multiple class type. Simple tasks need not implement this method. param: array an array of tasks |
hasPostinstallTasks() X-Ref |
runPostinstallTasks() X-Ref |
isScript() X-Ref |
Determines whether a role is a script return: bool |
throwError($msg, $code = -1) X-Ref |
Pas de description |
Généré le : Sun Feb 25 14:08:00 2007 | par Balluche grâce à PHPXref 0.7 |