| [ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 495 lignes (18 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
PEAR_Dependency:: (12 méthodes):
PEAR_Dependency()
callCheckMethod()
checkPackage()
checkPackageUninstall()
checkExtension()
checkOS()
checkPHP()
checkProgram()
checkSAPI()
checkZend()
signOperator()
codeFromRelation()
Classe: PEAR_Dependency - X-Ref
Dependency check for PEAR packages| PEAR_Dependency(&$registry) X-Ref |
| Constructor param: object Registry object return: void |
| callCheckMethod(&$errmsg, $opts) X-Ref |
| This method maps the XML dependency definition to the corresponding one from PEAR_Dependency <pre> $opts => Array ( [type] => pkg [rel] => ge [version] => 3.4 [name] => HTML_Common [optional] => false ) </pre> param: string Error message param: array Options return: boolean |
| checkPackage(&$errmsg, $name, $req = null, $relation = 'has',$opt = false, $channel = 'pear.php.net') X-Ref |
| Package dependencies check method param: string $errmsg Empty string, it will be populated with an error message, if any param: string $name Name of the package to test param: string $req The package version required param: string $relation How to compare versions with each other param: bool $opt Whether the relationship is optional param: string $channel Channel name return: mixed bool false if no error or the error string |
| checkPackageUninstall(&$error, &$warning, $package, $channel = 'pear.php.net') X-Ref |
| Check package dependencies on uninstall param: string $error The resultant error string param: string $warning The resultant warning string param: string $name Name of the package to test param: string $channel Channel name of the package return: bool true if there were errors |
| checkExtension(&$errmsg, $name, $req = null, $relation = 'has',$opt = false) X-Ref |
| Extension dependencies check method param: string $name Name of the extension to test param: string $req_ext_ver Required extension version to compare with param: string $relation How to compare versions with eachother param: bool $opt Whether the relationship is optional return: mixed bool false if no error or the error string |
| checkOS(&$errmsg, $os) X-Ref |
| Operating system dependencies check method param: string $os Name of the operating system return: mixed bool false if no error or the error string |
| checkPHP(&$errmsg, $req, $relation = 'ge') X-Ref |
| PHP version check method param: string $req which version to compare param: string $relation how to compare the version return: mixed bool false if no error or the error string |
| checkProgram(&$errmsg, $program) X-Ref |
| External program check method. Looks for executable files in directories listed in the PATH environment variable. param: string $program which program to look for return: mixed bool false if no error or the error string |
| checkSAPI(&$errmsg, $name, $req = null, $relation = 'has') X-Ref |
| SAPI backend check method. Version comparison is not yet available here. param: string $name name of SAPI backend param: string $req which version to compare param: string $relation how to compare versions (currently return: mixed bool false if no error or the error string |
| checkZend(&$errmsg, $req, $relation = 'ge') X-Ref |
| Zend version check method param: string $req which version to compare param: string $relation how to compare the version return: mixed bool false if no error or the error string |
| signOperator($operator) X-Ref |
| Converts text comparing operators to them sign equivalents Example: 'ge' to '>=' param: string Operator return: string Sign equivalent |
| codeFromRelation($relation, $version, $req, $opt = false) X-Ref |
| Convert relation into corresponding code param: string Relation param: string Version param: string Requirement param: bool Optional dependency indicator return: integer |
| Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
|