![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct (&$ui) | |
| _buildCallback ($what, $data) | |
| _compileSourceFiles ($savechannel, &$filelist, $configureoptions) | |
| _deletePackageFiles ($package, $channel=false, $backup=false) | |
| _installFile ($file, $atts, $tmp_path, $options) | |
| _installFile2 (&$pkg, $file, &$real_atts, $tmp_path, $options) | |
| _parsePackageXml (&$descfile) | |
| _removeBackups ($files) | |
| _sortDirs ($a, $b) | |
| _sortUninstall ($a, $b) | |
| addFileOperation ($type, $data) | |
| commitFileTransaction () | |
| getInstallPackages () | |
| & | getUninstallPackages () |
| install ($pkgfile, $options=array()) | |
| mkDirHier ($dir) | |
| rollbackFileTransaction () | |
| setConfig (&$config) | |
| setDownloadedPackages (&$pkgs) | |
| setOptions ($options) | |
| setUninstallPackages (&$pkgs) | |
| sortPackagesForUninstall (&$packages) | |
| startFileTransaction ($rollback_in_case=false) | |
| uninstall ($package, $options=array()) | |
| Public Member Functions inherited from PEAR_Downloader | |
| __construct ($ui=null, $options=array(), $config=null) | |
| _checkDepTree ($channel, $package, $b, $checked=array()) | |
| _dependsOn ($a, $b) | |
| _detectDepCycle (&$deplinks) | |
| _downloadCallback ($msg, $params=null) | |
| _getDepPackageDownloadUrl ($dep, $parr) | |
| _getPackageDownloadUrl ($parr) | |
| _prependPath ($path, $prepend) | |
| _setupGraph ($t, $reg, &$deplinks, &$nodes, $package) | |
| _sortInstall ($a, $b) | |
| _testCycle ($test, $deplinks, $dep) | |
| analyzeDependencies (&$params, $force=false) | |
| configSet ($key, $value, $layer='user', $channel=false) | |
| discover ($channel) | |
| & | download ($params) |
| & | getDependency2Object (&$c, $i, $p, $s) |
| getDownloadDir () | |
| getDownloadedPackages () | |
| getErrorMsgs () | |
| getOptions () | |
| getPackageDownloadUrl ($package, $version=null, $channel=false) | |
| newDownloaderPackage (&$t) | |
| pushError ($errmsg, $code=-1) | |
| setDownloadDir ($dir) | |
| sortPackagesForInstall (&$packages) | |
| sortPkgDeps (&$packages, $uninstall=false) | |
| Public Member Functions inherited from PEAR_Common | |
| __construct () | |
| _PEAR_Common () | |
| _postProcessChecks ($pf) | |
| _postProcessValidPackagexml (&$pf) | |
| buildProvidesArray ($srcinfo) | |
| detectDependencies ($any, $status_callback=null) | |
| downloadHttp ( $url, &$ui, $save_dir='.', $callback=null, $lastmodified=null, $accept=false, $channel=false) | |
| infoFromAny ($info) | |
| infoFromDescriptionFile ($descfile) | |
| infoFromString ($data) | |
| infoFromTgzFile ($file) | |
| log ($level, $msg, $append_crlf=true) | |
| mkTempDir ($tmpdir='') | |
| setFrontendObject (&$ui) | |
| validatePackageInfo ($info, &$errors, &$warnings, $dir_prefix='') | |
| validPackageName ($name) | |
| validPackageVersion ($ver) | |
| xmlFromInfo ($pkginfo) | |
| Public Member Functions inherited from PEAR | |
| __call ($method, $arguments) | |
| __construct ($error_class=null) | |
| _checkDelExpect ($error_code) | |
| _PEAR () | |
| delExpect ($error_code) | |
| expectError ($code=' *') | |
| PEAR ($error_class=null) | |
| popExpect () | |
Data Fields | |
| $_downloadedPackages | |
| $debug = 1 | |
| $docdir | |
| $extdir | |
| $file_operations = array() | |
| $installroot = '' | |
| $phpdir | |
| $pkgdir | |
| $registry | |
| $tmpdir | |
| Data Fields inherited from PEAR_Downloader | |
| $_downloadDir | |
| $_downloadedPackages = array() | |
| $_errorStack = array() | |
| $_installed = array() | |
| $_internalDownload = false | |
| $_options | |
| $_packageSortTree | |
| $_preferredState | |
| $_registry | |
| $_toDownload = array() | |
| Data Fields inherited from PEAR_Common | |
| $_validPackageFile | |
| $config = null | |
| $current_attributes = array() | |
| $current_element | |
| $current_path = null | |
| $element_stack = array() | |
| $pkginfo = array() | |
| $ui = null | |
| Data Fields inherited from PEAR | |
| $_debug = false | |
| $_default_error_handler = '' | |
| $_default_error_mode = null | |
| $_default_error_options = null | |
| $_error_class = 'PEAR_Error' | |
| $_expected_errors = array() | |
Additional Inherited Members | |
| Static Public Member Functions inherited from PEAR_Downloader | |
| static | _downloadHttp ( $object, $url, &$ui, $save_dir='.', $callback=null, $lastmodified=null, $accept=false, $channel=false) |
| Static Public Member Functions inherited from PEAR_Common | |
| static | addTempFile ($file) |
| static | analyzeSourceCode ($file) |
| static | betterStates ($state, $include=false) |
| static | getDependencyRelations () |
| static | getDependencyTypes () |
| static | getFileRoles () |
| static | getProvideTypes () |
| static | getReleaseStates () |
| static | getReplacementTypes () |
| static | getScriptPhases () |
| static | getUserRoles () |
| static | isIncludeable ($path) |
| Static Public Member Functions inherited from PEAR | |
| static | __callStatic ($method, $arguments) |
| static | getSourceDateEpoch () |
| static & | getStaticProperty ($class, $var) |
| static | isError ($data, $code=null) |
| static | loadExtension ($ext) |
| static | registerShutdownFunc ($func, $args=array()) |
| static | staticPopErrorHandling () |
| static | staticPushErrorHandling ($mode, $options=null) |
| Static Protected Member Functions inherited from PEAR | |
| static | _popErrorHandling ($object) |
| static | _pushErrorHandling ($object, $mode, $options=null) |
| static | _raiseError ($object, $message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
| static | _setErrorHandling ( $object, $mode=null, $options=null) |
| static | _throwError ($object, $message=null, $code=null, $userinfo=null) |
| Static Protected Attributes inherited from PEAR_Downloader | |
| static | $bivalentMethods |
| Static Protected Attributes inherited from PEAR | |
| static | $bivalentMethods |
Definition at line 42 of file Installer.php.
| __construct | ( | & | $ui | ) |
PEAR_Installer constructor.
| object | $ui | user interface object (instance of PEAR_Frontend_*) |
@access public
Definition at line 118 of file Installer.php.
References PEAR_Common\$ui, and PEAR_Common\setFrontendObject().
| _buildCallback | ( | $what, | |
| $data ) |
Definition at line 1798 of file Installer.php.
| _compileSourceFiles | ( | $savechannel, | |
| & | $filelist, | ||
| $configureoptions ) |
| string | ||
| PEAR_PackageFile_v1|PEAR_PackageFile_v2 | ||
| mixed[] | $configureoptions |
Definition at line 1515 of file Installer.php.
References $debug, PEAR_Downloader\_prependPath(), addFileOperation(), PEAR_Downloader\configSet(), PEAR\isError(), PEAR_Common\log(), mkDirHier(), PEAR_INSTALLER_FAILED, and rollbackFileTransaction().
Referenced by install().
| _deletePackageFiles | ( | $package, | |
| $channel = false, | |||
| $backup = false ) |
Delete a package's installed files, does not remove empty directories.
| string | package name |
| string | channel name |
| bool | if true, then files are backed up first |
Definition at line 156 of file Installer.php.
References addFileOperation().
Referenced by install(), and uninstall().
| _installFile | ( | $file, | |
| $atts, | |||
| $tmp_path, | |||
| $options ) |
| string | filename |
| array | attributes from <file> tag in package.xml |
| string | path to install the file in |
| array | options from command-line @access private |
Definition at line 215 of file Installer.php.
References $options, PEAR_Downloader\_prependPath(), addFileOperation(), PEAR\isError(), PEAR_Common\log(), mkDirHier(), PEAR_INSTALLER_FAILED, PEAR_INSTALLER_OK, and PEAR_INSTALLER_SKIPPED.
Referenced by install().
| _installFile2 | ( | & | $pkg, |
| $file, | |||
| & | $real_atts, | ||
| $tmp_path, | |||
| $options ) |
| PEAR_PackageFile_v1|PEAR_PackageFile_v2 | |
| string | filename |
| array | attributes from <file> tag in package.xml |
| string | path to install the file in |
| array | options from command-line @access private |
Definition at line 503 of file Installer.php.
References $options, $raw, PEAR_Downloader\_prependPath(), addFileOperation(), PEAR_Installer_Role\factory(), PEAR_Installer_Role\getValidRoles(), PEAR\isError(), PEAR_Common\log(), mkDirHier(), PEAR_INSTALLER_FAILED, PEAR_INSTALLER_OK, and PEAR_TASK_INSTALL.
Referenced by install().
| _parsePackageXml | ( | & | $descfile | ) |
Definition at line 1033 of file Installer.php.
References PEAR\isError(), PEAR_Common\log(), PEAR_ERROR_RETURN, PEAR_VALIDATE_INSTALLING, PEAR\staticPopErrorHandling(), and PEAR\staticPushErrorHandling().
Referenced by install().
| _removeBackups | ( | $files | ) |
Definition at line 138 of file Installer.php.
References addFileOperation().
Referenced by install().
| _sortDirs | ( | $a, | |
| $b ) |
Definition at line 1787 of file Installer.php.
| _sortUninstall | ( | $a, | |
| $b ) |
Definition at line 1764 of file Installer.php.
| addFileOperation | ( | $type, | |
| $data ) |
Add a file operation to the current file transaction.
| string | $type | This can be one of:
|
| array | $data | For all file operations, this array must contain the full path to the file or directory that is being operated on. For the rename command, the first parameter must be the file to rename, the second its new name, the third whether this is a PHP extension. |
The installed_as operation contains 4 elements in this order:
Definition at line 732 of file Installer.php.
References PEAR_Common\log().
Referenced by _compileSourceFiles(), _deletePackageFiles(), _installFile(), _installFile2(), _removeBackups(), install(), mkDirHier(), and uninstall().
| commitFileTransaction | ( | ) |
Definition at line 762 of file Installer.php.
References $result, PEAR_Downloader\_prependPath(), and PEAR_Common\log().
Referenced by install(), and uninstall().
| getInstallPackages | ( | ) |
Definition at line 1083 of file Installer.php.
References $_downloadedPackages.
Referenced by install().
| & getUninstallPackages | ( | ) |
Definition at line 1602 of file Installer.php.
References $_downloadedPackages.
| install | ( | $pkgfile, | |
| $options = array() ) |
Installs the files within the package file specified.
| string | PEAR_Downloader_Package | $pkgfile | path to the package file, or a pre-initialized packagefile object |
| array | $options | recognized options:
|
Definition at line 1108 of file Installer.php.
References PEAR_Downloader\$_registry, $options, $tmpdir, _compileSourceFiles(), _deletePackageFiles(), _installFile(), _installFile2(), _parsePackageXml(), PEAR_Downloader\_prependPath(), _removeBackups(), addFileOperation(), commitFileTransaction(), PEAR_Downloader\configSet(), PEAR\expectError(), getInstallPackages(), PEAR_Task_Common\hasPostinstallTasks(), PEAR\isError(), PEAR_Common\log(), PEAR_INSTALLER_FAILED, PEAR_INSTALLER_OK, PEAR\popExpect(), rollbackFileTransaction(), PEAR_Task_Common\runPostinstallTasks(), and startFileTransaction().
| mkDirHier | ( | $dir | ) |
Wrapper to System::mkDir(), creates a directory as well as any necessary parent directories.
| string | $dir | directory name |
@access public
Reimplemented from PEAR_Common.
Definition at line 1024 of file Installer.php.
References addFileOperation().
Referenced by _compileSourceFiles(), _installFile(), and _installFile2().
| rollbackFileTransaction | ( | ) |
Definition at line 978 of file Installer.php.
References PEAR_Common\log().
Referenced by _compileSourceFiles(), install(), startFileTransaction(), and uninstall().
| setConfig | ( | & | $config | ) |
Definition at line 130 of file Installer.php.
References PEAR_Common\$config.
| setDownloadedPackages | ( | & | $pkgs | ) |
Set the list of PEAR_Downloader_Package objects to allow more sane dependency validation
| array |
Definition at line 1062 of file Installer.php.
References PEAR_Downloader\analyzeDependencies(), PEAR\isError(), and PEAR_ERROR_RETURN.
| setOptions | ( | $options | ) |
Reimplemented from PEAR_Downloader.
Definition at line 125 of file Installer.php.
References $options.
| setUninstallPackages | ( | & | $pkgs | ) |
Set the list of PEAR_Downloader_Package objects to allow more sane dependency validation
| array |
Definition at line 1078 of file Installer.php.
| sortPackagesForUninstall | ( | & | $packages | ) |
Sort a list of arrays of array(downloaded packagefilename) by dependency.
It also removes duplicate dependencies
| array | an array of PEAR_PackageFile_v[1/2] objects |
Definition at line 1755 of file Installer.php.
References PEAR\isError(), and PEAR_DependencyDB\singleton().
| startFileTransaction | ( | $rollback_in_case = false | ) |
Definition at line 751 of file Installer.php.
References rollbackFileTransaction().
Referenced by install(), and uninstall().
| uninstall | ( | $package, | |
| $options = array() ) |
Uninstall a package
This method removes all files installed by the application, and then removes any empty directories.
| string | package name |
| array | Command-line options. Possibilities include: - installroot: base installation dir, if not the default
- register-only : update registry but don't remove files
- nodeps: do not process dependencies of other packages to ensure
uninstallation does not break things
|
Definition at line 1621 of file Installer.php.
References $options, _deletePackageFiles(), addFileOperation(), commitFileTransaction(), PEAR_Downloader\configSet(), PEAR\isError(), PEAR_Common\log(), PEAR_ERROR_RETURN, PEAR_VALIDATE_UNINSTALLING, rollbackFileTransaction(), startFileTransaction(), PEAR\staticPopErrorHandling(), and PEAR\staticPushErrorHandling().
| $_downloadedPackages |
Definition at line 92 of file Installer.php.
Referenced by getInstallPackages(), and getUninstallPackages().
| $debug = 1 |
Definition at line 75 of file Installer.php.
Referenced by _compileSourceFiles().
| $docdir |
Definition at line 64 of file Installer.php.
| $extdir |
Definition at line 59 of file Installer.php.
| $file_operations = array() |
Definition at line 105 of file Installer.php.
| $installroot = '' |
Definition at line 70 of file Installer.php.
| $phpdir |
Definition at line 54 of file Installer.php.
| $pkgdir |
Definition at line 49 of file Installer.php.
| $registry |
Definition at line 86 of file Installer.php.
| $tmpdir |
Definition at line 80 of file Installer.php.
Referenced by install().