| [ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
PEAR_Installer PHP versions 4 and 5
| Author: | Stig Bakken <ssb@php.net> |
| Author: | Tomas V.V. Cox <cox@idecnet.com> |
| Author: | Martin Jansen <mj@php.net> |
| 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: Installer.php,v 1.228.2.1 2006/03/05 20:07:52 cellog Exp $ |
| Poids: | 1592 lignes (63 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
PEAR_Installer:: (26 méthodes):
PEAR_Installer()
setOptions()
setConfig()
_removeBackups()
_deletePackageFiles()
_installFile()
_installFile2()
addFileOperation()
startFileTransaction()
commitFileTransaction()
rollbackFileTransaction()
mkDirHier()
download()
_parsePackageXml()
setDownloadedPackages()
setUninstallPackages()
getInstallPackages()
install()
_compileSourceFiles()
getUninstallPackages()
uninstall()
sortPackagesForUninstall()
_sortUninstall()
_sortDirs()
_buildCallback()
md5_file()
Classe: PEAR_Installer - X-Ref
Administration class used to install PEAR packages and maintain the| PEAR_Installer(&$ui) X-Ref |
| PEAR_Installer constructor. param: object $ui user interface object (instance of PEAR_Frontend_*) |
| setOptions($options) X-Ref |
| Pas de description |
| setConfig(&$config) X-Ref |
| Pas de description |
| _removeBackups($files) X-Ref |
| Pas de description |
| _deletePackageFiles($package, $channel = false, $backup = false) X-Ref |
| Delete a package's installed files, does not remove empty directories. param: string package name param: string channel name param: bool if true, then files are backed up first return: bool TRUE on success, or a PEAR error on failure |
| _installFile($file, $atts, $tmp_path, $options) X-Ref |
param: string filename param: array attributes from <file> tag in package.xml param: string path to install the file in param: array options from command-line |
| _installFile2(&$pkg, $file, $atts, $tmp_path, $options) X-Ref |
param: PEAR_PackageFile_v1|PEAR_PackageFile_v2 param: string filename param: array attributes from <file> tag in package.xml param: string path to install the file in param: array options from command-line |
| addFileOperation($type, $data) X-Ref |
| Add a file operation to the current file transaction. param: string $type This can be one of: param: array $data For all file operations, this array must contain the |
| startFileTransaction($rollback_in_case = false) X-Ref |
| Pas de description |
| commitFileTransaction() X-Ref |
| Pas de description |
| rollbackFileTransaction() X-Ref |
| Pas de description |
| mkDirHier($dir) X-Ref |
| Pas de description |
| download($packages, $options, &$config, &$installpackages,&$errors, $installed = false, $willinstall = false, $state = false) X-Ref |
| Download any files and their dependencies, if necessary param: array a mixed list of package names, local files, or package.xml param: PEAR_Config param: array options from the command line param: array this is the array that will be populated with packages to param: array this will be populated with any error messages param: false private recursion variable param: false private recursion variable param: false private recursion variable |
| _parsePackageXml(&$descfile, &$tmpdir) X-Ref |
| Pas de description |
| setDownloadedPackages(&$pkgs) X-Ref |
| Set the list of PEAR_Downloader_Package objects to allow more sane dependency validation param: array |
| setUninstallPackages(&$pkgs) X-Ref |
| Set the list of PEAR_Downloader_Package objects to allow more sane dependency validation param: array |
| getInstallPackages() X-Ref |
| Pas de description |
| install($pkgfile, $options = array() X-Ref |
| Installs the files within the package file specified. param: string|PEAR_Downloader_Package $pkgfile path to the package file, param: array $options return: array|PEAR_Error package info if successful |
| _compileSourceFiles($savechannel, &$filelist) X-Ref |
param: string param: PEAR_PackageFile_v1|PEAR_PackageFile_v2 |
| getUninstallPackages() X-Ref |
| Pas de description |
| uninstall($package, $options = array() X-Ref |
| Uninstall a package This method removes all files installed by the application, and then removes any empty directories. param: string package name param: array Command-line options. Possibilities include: |
| sortPackagesForUninstall(&$packages) X-Ref |
| Sort a list of arrays of array(downloaded packagefilename) by dependency. It also removes duplicate dependencies param: array an array of PEAR_PackageFile_v[1/2] objects return: array|PEAR_Error array of array(packagefilename, package.xml contents) |
| _sortUninstall($a, $b) X-Ref |
| Pas de description |
| _sortDirs($a, $b) X-Ref |
| Pas de description |
| _buildCallback($what, $data) X-Ref |
| Pas de description |
| md5_file($filename) X-Ref |
| Pas de description |
| Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
|