PEAR_Dependency::callCheckMethod

PEAR_Dependency::callCheckMethod() – xml の依存性定義を対応させる

Synopsis

require_once 'PEAR/Dependency.php';

void PEAR_Dependency::callCheckMethod ( mixed &$errmsg , array $opts )

Description

このメソッドは、xml の依存性定義を PEAR_Dependency に対応させます。

Parameter

mixed &$errmsg

チェックに失敗した場合に、この変数にエラーメッセージが含まれます。

array $opts

XML パッケージ定義のパース結果に含まれるすべての依存性エントリの配列。 以下のような形式です。

<?php
$opts 
=> Array
   (
       [
'type'] => 'pkg',
       [
'rel'] => 'ge',
       [
'version'] => '3.4',
       [
'name'] => 'HTML_Common'
    
);
?>

Return value

すべての依存性が解決できた(!) ときに FALSE、 未解決の依存性がある場合に PEAR_DEPENDENCY_* 定数を返します。

Note

This function can not be called statically.