PEAR_Validate::validPackageName()
PEAR_Validate::validPackageName()
-- utility method to validate a package name string
概要
require_once '/Validate.php'; |
void
PEAR_Validate::validPackageName
(string
$name, string
[$validatepackagename = FALSE])
説明
Validate a package name string. The second parameter should be the name of the
channel validation package, as defined by channel.xml for the current channel.
If the package name being validated is the same as the validation package (case-insensitive),
then it will be validated using the default rules for PEAR packages.
パラメータ
- string
$name package name to validate
- string
$validatepackagename name of channel-specific validation package
例外・エラー
throws
no exceptions thrown
Final
final - this method should not be overridden.
注意
この関数は、スタティックにコールする
ことはできません。