| [ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
<tasks:postinstallscript> 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: Postinstallscript.php,v 1.18 2006/02/08 01:21:47 cellog Exp $ |
| Poids: | 329 lignes (15 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
PEAR_Task_Postinstallscript:: (5 méthodes):
validateXml()
init()
_stripNamespace()
startSession()
run()
Classe: PEAR_Task_Postinstallscript - X-Ref
Implements the postinstallscript file task.| validateXml($pkg, $xml, &$config, $fileXml) X-Ref |
| 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 param: PEAR_PackageFile_v2 param: array The XML contents of the <postinstallscript> tag param: PEAR_Config param: array the entire parsed <file> tag |
| init($xml, $fileattribs, $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, if any (useful for upgrades) |
| _stripNamespace($params = null) X-Ref |
| Strip the tasks: namespace from internal params |
| startSession($pkg, $contents) X-Ref |
| Unlike other tasks, the installed file name is passed in instead of the file contents, because this task is handled post-installation param: PEAR_PackageFile_v1|PEAR_PackageFile_v2 param: string file name return: bool|PEAR_Error false to skip this file, PEAR_Error to fail |
| run() X-Ref |
| No longer used param: array an array of tasks param: string install or upgrade |
| Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
|