![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct ($pear_install_dir=PEAR_INSTALL_DIR, $pear_channel=false, $pecl_channel=false, $pear_metadata_dir='') | |
| _addChannel ($channel, $update=false, $lastmodified=false) | |
| _addPackage ($package, $info) | |
| _addPackage2 ($info) | |
| _assertChannelDir () | |
| _assertChannelStateDir ($channel) | |
| _assertStateDir ($channel=false) | |
| _channelDirectoryName ($channel) | |
| _channelExists ($channel, $noaliases=false) | |
| _channelFileName ($channel, $noaliases=false) | |
| _channelInfo ($channel, $noaliases=false) | |
| _closeChannelFile ($fp) | |
| _closePackageFile ($fp) | |
| _deleteChannel ($channel) | |
| _getAlias ($channel) | |
| & | _getChannel ($channel, $noaliases=false) |
| _getChannelAliasFileName ($alias) | |
| _getChannelFromAlias ($channel) | |
| & | _getPackage ($package, $channel='pear.php.net') |
| _initializeChannelDirs () | |
| _initializeDepDB () | |
| _initializeDirs () | |
| _isChannelAlias ($alias) | |
| _listAllPackages () | |
| _listChannelPackages ($channel) | |
| _listChannels () | |
| _listPackages ($channel=false) | |
| _lock ($mode=LOCK_EX) | |
| _mirrorExists ($channel, $mirror) | |
| _openChannelFile ($channel, $mode) | |
| _openPackageFile ($package, $mode, $channel=false) | |
| _packageExists ($package, $channel=false) | |
| _packageFileName ($package, $channel=false) | |
| _packageInfo ($package=null, $key=null, $channel='pear.php.net') | |
| _PEAR_Registry () | |
| _readFileMap () | |
| _rebuildFileMap () | |
| _unlock () | |
| _updatePackage ($package, $info, $merge=true) | |
| _updatePackage2 ($info) | |
| addChannel ($channel, $lastmodified=false, $update=false) | |
| addPackage ($package, $info) | |
| addPackage2 ($info) | |
| apiVersion () | |
| channelAlias ($channel) | |
| channelExists ($channel, $noaliases=false) | |
| channelInfo ($channel=null, $noaliases=false) | |
| channelName ($channel) | |
| checkFileMap ($path, $package=false, $api='1.0', $attrs=false) | |
| deleteChannel ($channel) | |
| deletePackage ($package, $channel='pear.php.net') | |
| flushFileMap () | |
| getChannel ($channel, $noaliases=false) | |
| & | getChannels () |
| & | getChannelValidator ($channel) |
| getInstalledGroup ($group) | |
| & | getPackage ($package, $channel='pear.php.net') |
| hasWriteAccess () | |
| isAlias ($alias) | |
| listAllPackages () | |
| listChannels () | |
| listPackages ($channel=false) | |
| mirrorExists ($channel, $mirror) | |
| packageExists ($package, $channel='pear.php.net') | |
| packageInfo ($package=null, $key=null, $channel='pear.php.net') | |
| parsedPackageNameToString ($parsed, $brief=false) | |
| parsePackageName ($param, $defaultchannel='pear.php.net') | |
| setConfig (&$config, $resetInstallDir=true) | |
| setInstallDir ($pear_install_dir=PEAR_INSTALL_DIR, $pear_metadata_dir='') | |
| updateChannel ($channel, $lastmodified=null) | |
| updatePackage ($package, $info, $merge=true) | |
| updatePackage2 ($info) | |
| 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 | |
| $_config | |
| $_dependencyDB | |
| $_docChannel | |
| $_pearChannel | |
| $_peclChannel | |
| $channels = '' | |
| $channelsdir = '' | |
| $filemap = '' | |
| $filemap_cache = array() | |
| $lock_fp = null | |
| $lock_mode = 0 | |
| $lockfile = '' | |
| $pkginfo_cache = array() | |
| $statedir = '' | |
| 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 | |
| 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 | |
| static | $bivalentMethods |
Definition at line 43 of file Registry.php.
| __construct | ( | $pear_install_dir = PEAR_INSTALL_DIR, | |
| $pear_channel = false, | |||
| $pecl_channel = false, | |||
| $pear_metadata_dir = '' ) |
PEAR_Registry constructor.
| string | (optional) PEAR install directory (for .php files) |
| PEAR_ChannelFile | PEAR_ChannelFile object representing the PEAR channel, if default values are not desired. Only used the very first time a PEAR repository is initialized |
| PEAR_ChannelFile | PEAR_ChannelFile object representing the PECL channel, if default values are not desired. Only used the very first time a PEAR repository is initialized |
@access public
Definition at line 133 of file Registry.php.
References setInstallDir().
| _addChannel | ( | $channel, | |
| $update = false, | |||
| $lastmodified = false ) |
| PEAR_ChannelFile | Channel object |
| donotuse | |
| string | Last-Modified HTTP tag from remote request |
Definition at line 943 of file Registry.php.
References _assertChannelDir(), _assertChannelStateDir(), _channelFileName(), _getChannel(), _getChannelAliasFileName(), PEAR\getSourceDateEpoch(), hasWriteAccess(), and PEAR\isError().
Referenced by _initializeChannelDirs(), and addChannel().
| _addPackage | ( | $package, | |
| $info ) |
Add an installed package to the registry
| string | package name |
| array | package info (parsed by PEAR_Common::infoFrom*() methods) |
Definition at line 1298 of file Registry.php.
References _closePackageFile(), _openPackageFile(), _packageExists(), _rebuildFileMap(), and PEAR\getSourceDateEpoch().
Referenced by addPackage().
| _addPackage2 | ( | $info | ) |
| PEAR_PackageFile_v1|PEAR_PackageFile_v2 |
Definition at line 1324 of file Registry.php.
References $ui, _channelExists(), _closePackageFile(), _openPackageFile(), _packageExists(), _rebuildFileMap(), PEAR\getSourceDateEpoch(), and PEAR_Frontend\singleton().
Referenced by addPackage2().
| _assertChannelDir | ( | ) |
Make sure the directory where we keep registry files for channels exists
@access private
Definition at line 474 of file Registry.php.
References hasWriteAccess().
Referenced by _addChannel(), and _openChannelFile().
| _assertChannelStateDir | ( | $channel | ) |
Make sure the directory where we keep registry files exists for a non-standard channel.
| string | channel name |
@access private
Definition at line 432 of file Registry.php.
References _assertStateDir(), _channelDirectoryName(), _getChannelFromAlias(), _initializeChannelDirs(), and hasWriteAccess().
Referenced by _addChannel(), and _assertStateDir().
| _assertStateDir | ( | $channel = false | ) |
Make sure the directory where we keep registry files exists.
@access private
Definition at line 373 of file Registry.php.
References _assertChannelStateDir(), _getChannelFromAlias(), _initializeDepDB(), _initializeDirs(), and hasWriteAccess().
Referenced by _assertChannelStateDir(), _lock(), _openPackageFile(), and _rebuildFileMap().
| _channelDirectoryName | ( | $channel | ) |
Get the name of the file where data for a given package is stored.
| string | channel name, or false if this is a PEAR package |
| string | package name |
@access public
Definition at line 626 of file Registry.php.
References $statedir, and _getChannelFromAlias().
Referenced by _assertChannelStateDir(), _deleteChannel(), _listChannelPackages(), and _packageFileName().
| _channelExists | ( | $channel, | |
| $noaliases = false ) |
Determine whether a channel exists in the registry
| string | Channel name |
| bool | if true, then aliases will be ignored |
Definition at line 895 of file Registry.php.
References _channelFileName().
Referenced by _addPackage2(), _channelInfo(), _deleteChannel(), _getAlias(), _getChannel(), _getChannelFromAlias(), and channelExists().
| _channelFileName | ( | $channel, | |
| $noaliases = false ) |
Get the name of the file where data for a given channel is stored.
| string | channel name |
Definition at line 532 of file Registry.php.
References _getChannelAliasFileName().
Referenced by _addChannel(), _channelExists(), _channelInfo(), _deleteChannel(), and _openChannelFile().
| _channelInfo | ( | $channel, | |
| $noaliases = false ) |
| string | Channel name |
| bool | whether to strictly retrieve info of channels, not just aliases |
Definition at line 1168 of file Registry.php.
References _channelExists(), _channelFileName(), _closeChannelFile(), and _openChannelFile().
Referenced by _getChannel(), _mirrorExists(), and channelInfo().
| _closeChannelFile | ( | $fp | ) |
Definition at line 692 of file Registry.php.
Referenced by _channelInfo().
| _closePackageFile | ( | $fp | ) |
Definition at line 664 of file Registry.php.
Referenced by _addPackage(), _addPackage2(), _packageInfo(), _updatePackage(), and _updatePackage2().
| _deleteChannel | ( | $channel | ) |
Deletion fails if there are any packages installed from the channel
| string|PEAR_ChannelFile | channel name |
Definition at line 1029 of file Registry.php.
References _channelDirectoryName(), _channelExists(), _channelFileName(), _getAlias(), _getChannelAliasFileName(), _getChannelFromAlias(), and _listChannelPackages().
Referenced by deleteChannel().
| _getAlias | ( | $channel | ) |
Get the alias of a channel from its alias or its name
Definition at line 590 of file Registry.php.
References _channelExists(), _getChannel(), and PEAR\isError().
Referenced by _deleteChannel(), and channelAlias().
| & _getChannel | ( | $channel, | |
| $noaliases = false ) |
| string | channel name |
| bool | whether to strictly retrieve channel names |
Definition at line 1468 of file Registry.php.
References _channelExists(), _channelInfo(), _getChannelFromAlias(), PEAR_ChannelFile\fromArrayWithErrors(), PEAR_ChannelFile\setName(), and PEAR_ChannelFile\setServer().
Referenced by _addChannel(), _getAlias(), getChannel(), and getChannels().
| _getChannelAliasFileName | ( | $alias | ) |
| string |
Definition at line 547 of file Registry.php.
Referenced by _addChannel(), _channelFileName(), _deleteChannel(), _getChannelFromAlias(), and _isChannelAlias().
| _getChannelFromAlias | ( | $channel | ) |
Get the name of a channel from its alias
Definition at line 556 of file Registry.php.
References _channelExists(), and _getChannelAliasFileName().
Referenced by _assertChannelStateDir(), _assertStateDir(), _channelDirectoryName(), _deleteChannel(), _getChannel(), _listPackages(), _packageFileName(), and channelName().
| & _getPackage | ( | $package, | |
| $channel = 'pear.php.net' ) |
| string | Package name |
| string | Channel name |
Definition at line 1440 of file Registry.php.
References $_config, and _packageInfo().
Referenced by getPackage().
| _initializeChannelDirs | ( | ) |
Definition at line 190 of file Registry.php.
References $_docChannel, $_pearChannel, $_peclChannel, _addChannel(), _rebuildFileMap(), PEAR_ChannelFile\setAlias(), and PEAR_ChannelFile\setName().
Referenced by _assertChannelStateDir(), and _initializeDirs().
| _initializeDepDB | ( | ) |
Definition at line 316 of file Registry.php.
References exit, PEAR\isError(), and PEAR_DependencyDB\singleton().
Referenced by _assertStateDir(), and _initializeDirs().
| _initializeDirs | ( | ) |
Definition at line 293 of file Registry.php.
References _initializeChannelDirs(), _initializeDepDB(), and _rebuildFileMap().
Referenced by _assertStateDir().
| _isChannelAlias | ( | $alias | ) |
Determine whether a channel exists in the registry
| string | Channel Alias |
Definition at line 1099 of file Registry.php.
References _getChannelAliasFileName().
Referenced by isAlias().
| _listAllPackages | ( | ) |
Definition at line 1281 of file Registry.php.
References _listChannels(), and _listPackages().
Referenced by _rebuildFileMap(), and listAllPackages().
| _listChannelPackages | ( | $channel | ) |
Definition at line 1257 of file Registry.php.
References _channelDirectoryName().
Referenced by _deleteChannel(), and _listPackages().
| _listChannels | ( | ) |
Definition at line 1186 of file Registry.php.
Referenced by _listAllPackages(), _packageInfo(), getChannels(), and listChannels().
| _listPackages | ( | $channel = false | ) |
Definition at line 1229 of file Registry.php.
References _getChannelFromAlias(), and _listChannelPackages().
Referenced by _listAllPackages(), _packageInfo(), and listPackages().
| _lock | ( | $mode = LOCK_EX | ) |
Lock the registry.
| integer | lock mode, one of LOCK_EX, LOCK_SH or LOCK_UN. See flock manual for more information. |
@access private
Definition at line 816 of file Registry.php.
References _assertStateDir(), and PEAR_REGISTRY_ERROR_LOCK.
Referenced by _unlock(), addChannel(), addPackage(), addPackage2(), channelAlias(), channelExists(), channelInfo(), channelName(), checkFileMap(), deleteChannel(), deletePackage(), getChannel(), getChannels(), getPackage(), isAlias(), listAllPackages(), listChannels(), listPackages(), mirrorExists(), packageExists(), packageInfo(), updatePackage(), and updatePackage2().
| _mirrorExists | ( | $channel, | |
| $mirror ) |
Determine whether a mirror exists within the default channel in the registry
| string | Channel name |
| string | Mirror name |
Definition at line 921 of file Registry.php.
References _channelInfo().
Referenced by mirrorExists().
| _openChannelFile | ( | $channel, | |
| $mode ) |
Definition at line 669 of file Registry.php.
References _assertChannelDir(), _channelFileName(), and hasWriteAccess().
Referenced by _channelInfo().
| _openPackageFile | ( | $package, | |
| $mode, | |||
| $channel = false ) |
Definition at line 641 of file Registry.php.
References _assertStateDir(), _packageFileName(), and hasWriteAccess().
Referenced by _addPackage(), _addPackage2(), _packageInfo(), _updatePackage(), and _updatePackage2().
| _packageExists | ( | $package, | |
| $channel = false ) |
Definition at line 883 of file Registry.php.
References _packageFileName().
Referenced by _addPackage(), _addPackage2(), _updatePackage2(), and packageExists().
| _packageFileName | ( | $package, | |
| $channel = false ) |
Get the name of the file where data for a given package is stored.
| string | channel name, or false if this is a PEAR package |
| string | package name |
@access public
Definition at line 517 of file Registry.php.
References _channelDirectoryName(), and _getChannelFromAlias().
Referenced by _openPackageFile(), _packageExists(), _packageInfo(), and deletePackage().
| _packageInfo | ( | $package = null, | |
| $key = null, | |||
| $channel = 'pear.php.net' ) |
| string|null | |
| string|null | |
| string|null |
Definition at line 1111 of file Registry.php.
References $channels, _closePackageFile(), _listChannels(), _listPackages(), _openPackageFile(), _packageFileName(), and _packageInfo().
Referenced by _getPackage(), _packageInfo(), _rebuildFileMap(), _updatePackage(), and packageInfo().
| _PEAR_Registry | ( | ) |
PEAR_Registry destructor. Makes sure no locks are forgotten.
@access private
Definition at line 357 of file Registry.php.
References _unlock().
| _readFileMap | ( | ) |
Definition at line 775 of file Registry.php.
References PEAR_REGISTRY_ERROR_FILE, and PEAR_REGISTRY_ERROR_FORMAT.
Referenced by checkFileMap().
| _rebuildFileMap | ( | ) |
Definition at line 697 of file Registry.php.
References $channels, _assertStateDir(), _listAllPackages(), _packageInfo(), PEAR_Installer_Role\getBaseinstallRoles(), PEAR_Installer_Role\getInstallableRoles(), and hasWriteAccess().
Referenced by _addPackage(), _addPackage2(), _initializeChannelDirs(), _initializeDirs(), _updatePackage(), _updatePackage2(), and deletePackage().
| _unlock | ( | ) |
Definition at line 872 of file Registry.php.
References _lock().
Referenced by _PEAR_Registry(), addChannel(), addPackage(), addPackage2(), channelAlias(), channelExists(), channelInfo(), channelName(), checkFileMap(), deleteChannel(), deletePackage(), getChannel(), getChannels(), getPackage(), isAlias(), listAllPackages(), listChannels(), listPackages(), mirrorExists(), packageExists(), packageInfo(), updatePackage(), and updatePackage2().
| _updatePackage | ( | $package, | |
| $info, | |||
| $merge = true ) |
| string | Package name |
| array | parsed package.xml 1.0 |
| bool | this parameter is only here for BC. Don't use it. @access private |
Definition at line 1376 of file Registry.php.
References _closePackageFile(), _openPackageFile(), _packageInfo(), _rebuildFileMap(), and PEAR\getSourceDateEpoch().
Referenced by updatePackage().
| _updatePackage2 | ( | $info | ) |
| PEAR_PackageFile_v1|PEAR_PackageFile_v2 |
Definition at line 1414 of file Registry.php.
References _closePackageFile(), _openPackageFile(), _packageExists(), _rebuildFileMap(), and PEAR\getSourceDateEpoch().
Referenced by updatePackage2().
| addChannel | ( | $channel, | |
| $lastmodified = false, | |||
| $update = false ) |
| PEAR_ChannelFile | Channel object |
| string | Last-Modified header from HTTP for caching |
Definition at line 1838 of file Registry.php.
References _addChannel(), _lock(), _unlock(), PEAR\isError(), and listChannels().
Referenced by updateChannel().
| addPackage | ( | $package, | |
| $info ) |
Add an installed package to the registry
| string|PEAR_PackageFile_v1|PEAR_PackageFile_v2 | package name or object that will be passed to addPackage2() |
| array | package info (parsed by PEAR_Common::infoFrom*() methods) |
Definition at line 1749 of file Registry.php.
References _addPackage(), _lock(), _unlock(), addPackage2(), PEAR\isError(), and PEAR_PackageFile_v1\setConfig().
Referenced by addPackage2().
| addPackage2 | ( | $info | ) |
Definition at line 1775 of file Registry.php.
References _addPackage2(), _lock(), _unlock(), addPackage(), and PEAR\isError().
Referenced by addPackage().
| apiVersion | ( | ) |
Get the expected API version. Channels API is version 1.1, as it is backwards compatible with 1.0
Definition at line 2152 of file Registry.php.
| channelAlias | ( | $channel | ) |
| string |
Definition at line 1692 of file Registry.php.
References _getAlias(), _lock(), _unlock(), and PEAR\isError().
Referenced by parsedPackageNameToString().
| channelExists | ( | $channel, | |
| $noaliases = false ) |
| string | channel name |
| bool | if true, then aliases will be ignored |
Definition at line 1587 of file Registry.php.
References _channelExists(), _lock(), _unlock(), and PEAR\isError().
Referenced by parsePackageName().
| channelInfo | ( | $channel = null, | |
| $noaliases = false ) |
Retrieve a raw array of channel data.
Do not use this, instead use getChannel() for normal operations. Array structure is undefined in this method
| string | channel name |
| bool | whether to strictly retrieve information only on non-aliases |
Definition at line 1664 of file Registry.php.
References _channelInfo(), _lock(), _unlock(), and PEAR\isError().
| channelName | ( | $channel | ) |
| string |
Definition at line 1679 of file Registry.php.
References _getChannelFromAlias(), _lock(), _unlock(), and PEAR\isError().
| checkFileMap | ( | $path, | |
| $package = false, | |||
| $api = '1.0', | |||
| $attrs = false ) |
Test whether a file or set of files belongs to a package.
If an array is passed in
| string|array | file path, absolute or relative to the pear install dir |
| string|array | name of PEAR package or array('package' => name, 'channel' => channel) of a package that will be ignored |
| string | API version - 1.1 will exclude any files belonging to a package |
| array | private recursion variable |
Definition at line 2065 of file Registry.php.
References _lock(), _readFileMap(), _unlock(), checkFileMap(), PEAR_Installer_Role\getBaseinstallRoles(), PEAR_Installer_Role\getInstallableRoles(), and PEAR\isError().
Referenced by checkFileMap().
| deleteChannel | ( | $channel | ) |
Deletion fails if there are any packages installed from the channel
| string|PEAR_ChannelFile | channel name |
Definition at line 1815 of file Registry.php.
References _deleteChannel(), _lock(), _unlock(), PEAR\isError(), and listChannels().
| deletePackage | ( | $package, | |
| $channel = 'pear.php.net' ) |
Definition at line 1860 of file Registry.php.
References _lock(), _packageFileName(), _rebuildFileMap(), _unlock(), and PEAR\isError().
| flushFileMap | ( | ) |
Force a reload of the filemap
Definition at line 2139 of file Registry.php.
| getChannel | ( | $channel, | |
| $noaliases = false ) |
| string | channel name |
| bool | whether to strictly return raw channels (no aliases) |
Definition at line 1936 of file Registry.php.
References _getChannel(), _lock(), _unlock(), and PEAR\isError().
Referenced by getChannelValidator(), and parsePackageName().
| & getChannels | ( | ) |
| string | channel name |
Definition at line 2031 of file Registry.php.
References _getChannel(), _listChannels(), _lock(), _unlock(), and PEAR\isError().
| & getChannelValidator | ( | $channel | ) |
| string | channel name |
Definition at line 2016 of file Registry.php.
References getChannel(), and PEAR\isError().
| getInstalledGroup | ( | $group | ) |
Get PEAR_PackageFile_v[1/2] objects representing the contents of a dependency group that are installed.
This is used at uninstall-time
| array |
Definition at line 1976 of file Registry.php.
References getPackage().
| & getPackage | ( | $package, | |
| $channel = 'pear.php.net' ) |
| string | package name |
| string | channel name |
Definition at line 1956 of file Registry.php.
References _getPackage(), _lock(), _unlock(), and PEAR\isError().
Referenced by getInstalledGroup().
| hasWriteAccess | ( | ) |
Definition at line 156 of file Registry.php.
Referenced by _addChannel(), _assertChannelDir(), _assertChannelStateDir(), _assertStateDir(), _openChannelFile(), _openPackageFile(), and _rebuildFileMap().
| isAlias | ( | $alias | ) |
Determines whether the parameter is an alias of a channel
| string |
Definition at line 1623 of file Registry.php.
References _isChannelAlias(), _lock(), _unlock(), and PEAR\isError().
| listAllPackages | ( | ) |
Definition at line 1716 of file Registry.php.
References _listAllPackages(), _lock(), _unlock(), and PEAR\isError().
| listChannels | ( | ) |
Definition at line 1729 of file Registry.php.
References _listChannels(), _lock(), _unlock(), and PEAR\isError().
Referenced by addChannel(), and deleteChannel().
| listPackages | ( | $channel = false | ) |
Definition at line 1703 of file Registry.php.
References _listPackages(), _lock(), _unlock(), and PEAR\isError().
| mirrorExists | ( | $channel, | |
| $mirror ) |
| string | channel name mirror is in |
| string | mirror name |
Definition at line 1605 of file Registry.php.
References _lock(), _mirrorExists(), _unlock(), and PEAR\isError().
| packageExists | ( | $package, | |
| $channel = 'pear.php.net' ) |
| string | Package name |
| string | Channel name |
Definition at line 1568 of file Registry.php.
References _lock(), _packageExists(), _unlock(), and PEAR\isError().
| packageInfo | ( | $package = null, | |
| $key = null, | |||
| $channel = 'pear.php.net' ) |
| string|null | |
| string|null | |
| string |
Definition at line 1642 of file Registry.php.
References _lock(), _packageInfo(), _unlock(), and PEAR\isError().
Referenced by updatePackage().
| parsedPackageNameToString | ( | $parsed, | |
| $brief = false ) |
| array |
Definition at line 2344 of file Registry.php.
References channelAlias().
Referenced by parsePackageName().
| parsePackageName | ( | $param, | |
| $defaultchannel = 'pear.php.net' ) |
Parse a package name, or validate a parsed package name array
| string|array | pass in an array of format array( 'package' => 'pname', ['channel' => 'channame',] ['version' => 'version',] ['state' => 'state',] ['group' => 'groupname']) or a string of format [channel://][channame/]pname[-version|-state][/group=groupname] |
Definition at line 2172 of file Registry.php.
References channelExists(), getChannel(), PEAR\isError(), parsedPackageNameToString(), and PEAR_Validate\validGroupName().
| setConfig | ( | & | $config, |
| $resetInstallDir = true ) |
Definition at line 182 of file Registry.php.
References $config, and setInstallDir().
| setInstallDir | ( | $pear_install_dir = PEAR_INSTALL_DIR, | |
| $pear_metadata_dir = '' ) |
Definition at line 143 of file Registry.php.
Referenced by __construct(), and setConfig().
| updateChannel | ( | $channel, | |
| $lastmodified = null ) |
For future expandibility purposes, separate this
| PEAR_ChannelFile |
Definition at line 1799 of file Registry.php.
References addChannel().
| updatePackage | ( | $package, | |
| $info, | |||
| $merge = true ) |
Definition at line 1878 of file Registry.php.
References _lock(), _unlock(), _updatePackage(), PEAR\isError(), packageInfo(), PEAR_PackageFile_v1\setConfig(), and updatePackage2().
Referenced by updatePackage2().
| updatePackage2 | ( | $info | ) |
Definition at line 1904 of file Registry.php.
References _lock(), _unlock(), _updatePackage2(), PEAR\isError(), PEAR_VALIDATE_DOWNLOADING, and updatePackage().
Referenced by updatePackage().
| $_config |
Definition at line 118 of file Registry.php.
Referenced by _getPackage().
| $_dependencyDB |
Definition at line 113 of file Registry.php.
| $_docChannel |
Definition at line 108 of file Registry.php.
Referenced by _initializeChannelDirs().
| $_pearChannel |
Definition at line 98 of file Registry.php.
Referenced by _initializeChannelDirs().
| $_peclChannel |
Definition at line 103 of file Registry.php.
Referenced by _initializeChannelDirs().
| $channels = '' |
Definition at line 49 of file Registry.php.
Referenced by _packageInfo(), and _rebuildFileMap().
| $channelsdir = '' |
Definition at line 64 of file Registry.php.
| $filemap = '' |
Definition at line 59 of file Registry.php.
| $filemap_cache = array() |
Definition at line 93 of file Registry.php.
| $lock_fp = null |
Definition at line 74 of file Registry.php.
| $lock_mode = 0 |
Definition at line 79 of file Registry.php.
| $lockfile = '' |
Definition at line 69 of file Registry.php.
| $pkginfo_cache = array() |
Definition at line 87 of file Registry.php.
| $statedir = '' |
Definition at line 54 of file Registry.php.
Referenced by _channelDirectoryName().