![]() |
Bearsampp 2026.9.23
|
Data Fields | |
| $_curState = 0 | |
| $_filesValid = 0 | |
| $_isValid = 0 | |
| $_packageInfo | |
| $_pf | |
| $_stack | |
Definition at line 28 of file Validator.php.
| _analyzeBundledPackages | ( | ) |
Definition at line 1720 of file Validator.php.
References _fileNotFound(), PEAR_ERROR_RETURN, and PEAR_VALIDATE_NORMAL.
Referenced by validate().
| _analyzePhpFiles | ( | ) |
Definition at line 1767 of file Validator.php.
References $_isValid, _buildProvidesArray(), _cannotValidateNoPathSet(), _fileNotFound(), _tagCannotBeEmpty(), analyzeSourceCode(), and PEAR_Installer_Role\getPhpRoles().
Referenced by validate().
| _AtLeast2BundledPackages | ( | ) |
Definition at line 1503 of file Validator.php.
Referenced by _validateBundle().
| _binaryPackageMustBePackagename | ( | ) |
Definition at line 1646 of file Validator.php.
Referenced by _validateRelease().
| _buildProvidesArray | ( | $srcinfo | ) |
Build a "provides" array from data returned by analyzeSourceCode(). The format of the built array is like this:
array( 'class;MyClass' => 'array('type' => 'class', 'name' => 'MyClass'), ... )
| array | $srcinfo | array with information about a source file as returned by the analyzeSourceCode() method. |
@access private
Definition at line 2081 of file Validator.php.
Referenced by _analyzePhpFiles().
| _bundledPackagesMustBeFilename | ( | ) |
Definition at line 1639 of file Validator.php.
Referenced by _validateBundle().
| _cannotConflictWithAllOs | ( | $type | ) |
Definition at line 1689 of file Validator.php.
Referenced by _validateOsDep().
| _cannotHaveSrcpackage | ( | $release | ) |
Definition at line 1601 of file Validator.php.
Referenced by _validateRelease().
| _cannotProvideExtension | ( | $release | ) |
Definition at line 1589 of file Validator.php.
Referenced by _validateRelease().
| _cannotValidateNoPathSet | ( | ) |
Definition at line 1665 of file Validator.php.
Referenced by _analyzePhpFiles().
| _ChannelOrUri | ( | $name | ) |
Definition at line 1509 of file Validator.php.
| _conflictingDepsCannotHaveVersioning | ( | $type | ) |
Definition at line 1625 of file Validator.php.
| _DepchannelCannotBeUri | ( | $type | ) |
Definition at line 1632 of file Validator.php.
Referenced by _validatePackageDep().
| _filelistCannotContainFile | ( | $filelist | ) |
Definition at line 1433 of file Validator.php.
Referenced by validate().
| _filelistMustContainDir | ( | $filelist | ) |
Definition at line 1440 of file Validator.php.
Referenced by validate().
| _fileNotAllowed | ( | $type | ) |
Definition at line 1370 of file Validator.php.
Referenced by _validateFilelist().
| _fileNotFound | ( | $file | ) |
Definition at line 1653 of file Validator.php.
Referenced by _analyzeBundledPackages(), and _analyzePhpFiles().
| _ignoreAndInstallAs | ( | $file | ) |
Definition at line 1714 of file Validator.php.
Referenced by _validateFilelist().
| _ignoreNotAllowed | ( | $type | ) |
Definition at line 1363 of file Validator.php.
Referenced by _validateFilelist().
| _invalidDepGroupName | ( | $name | ) |
Definition at line 1695 of file Validator.php.
Referenced by _validateDependencies().
| _invalidDirName | ( | $dir | ) |
Definition at line 1426 of file Validator.php.
Referenced by _validateFilelist().
| _invalidFileInstallAs | ( | $file, | |
| $as ) |
Definition at line 1419 of file Validator.php.
Referenced by _validateFilelist().
| _invalidFileName | ( | $file, | |
| $dir ) |
Definition at line 1412 of file Validator.php.
Referenced by _validateFilelist().
| _invalidFileRole | ( | $file, | |
| $dir, | |||
| $role ) |
Definition at line 1404 of file Validator.php.
References PEAR_Installer_Role\getValidRoles().
Referenced by _validateFilelist().
| _invalidInternalStructure | ( | ) |
Definition at line 1398 of file Validator.php.
| _invalidState | ( | $type, | |
| $value ) |
Definition at line 1527 of file Validator.php.
Referenced by _validateStabilityVersion().
| _invalidTagOrder | ( | $oktags, | |
| $actual, | |||
| $root ) |
Definition at line 1356 of file Validator.php.
Referenced by _stupidSchemaValidate().
| _invalidTask | ( | $task, | |
| $ret, | |||
| $file ) |
Definition at line 1544 of file Validator.php.
References PEAR_TASK_ERROR_INVALID, PEAR_TASK_ERROR_MISSING_ATTRIB, PEAR_TASK_ERROR_NOATTRIBS, and PEAR_TASK_ERROR_WRONG_ATTRIB_VALUE.
Referenced by _validateFilelist().
| _invalidVersion | ( | $type, | |
| $value ) |
Definition at line 1521 of file Validator.php.
Referenced by _validateCompatible(), _validateExtensionDep(), _validatePackageDep(), _validatePearinstallerDep(), _validatePhpDep(), and _validateStabilityVersion().
| _multipleInstallAs | ( | $file | ) |
Definition at line 1708 of file Validator.php.
Referenced by _validateFilelist().
| _multipleToplevelDirNotAllowed | ( | ) |
Definition at line 1701 of file Validator.php.
Referenced by validate().
| _mustProvideExtension | ( | $release | ) |
Definition at line 1595 of file Validator.php.
Referenced by _validateRelease().
| _mustSrcPackage | ( | $release | ) |
Definition at line 1607 of file Validator.php.
Referenced by _validateRelease().
| _mustSrcuri | ( | $release | ) |
Definition at line 1613 of file Validator.php.
Referenced by _validateRelease().
| _NoBundledPackages | ( | ) |
Definition at line 1497 of file Validator.php.
Referenced by _validateBundle().
| _NoChannel | ( | $type, | |
| $name ) |
Definition at line 1461 of file Validator.php.
Referenced by _validateDependencies().
| _NoChannelGroup | ( | $type, | |
| $name, | |||
| $group ) |
Definition at line 1477 of file Validator.php.
Referenced by _validateDependencies().
| _noChildTag | ( | $child, | |
| $tag ) |
Definition at line 1515 of file Validator.php.
| _noPackageVersion | ( | ) |
Definition at line 1491 of file Validator.php.
Referenced by validate().
| _notInContents | ( | $file, | |
| $tag ) |
Definition at line 1659 of file Validator.php.
Referenced by _validateFilelist().
| _oldStyleFileNotAllowed | ( | ) |
Definition at line 1377 of file Validator.php.
Referenced by _validateFilelist().
| _pearVersionTooLow | ( | $version | ) |
Definition at line 1348 of file Validator.php.
Referenced by validate().
| _processAttribs | ( | $choice, | |
| $tag, | |||
| $context ) |
Definition at line 408 of file Validator.php.
References _tagHasNoAttribs(), and _tagMissingAttribute().
Referenced by _stupidSchemaValidate().
| _processStructure | ( | $key | ) |
Definition at line 443 of file Validator.php.
References _processStructure().
Referenced by _processStructure(), and _stupidSchemaValidate().
| _stupidSchemaValidate | ( | $structure, | |
| $xml, | |||
| $root ) |
Definition at line 305 of file Validator.php.
References _invalidTagOrder(), _processAttribs(), and _processStructure().
Referenced by _validateArchDep(), _validateCompatible(), _validateDependencies(), _validateExtensionDep(), _validateFilelist(), _validateInstallConditions(), _validateMaintainers(), _validateOsDep(), _validatePackageDep(), _validatePearinstallerDep(), _validatePhpDep(), _validateRelease(), _validateStabilityVersion(), and validate().
| _subpackageCannotProvideExtension | ( | $name | ) |
Definition at line 1575 of file Validator.php.
Referenced by _validateSubpackageDep().
| _subpackagesCannotConflict | ( | $name | ) |
Definition at line 1582 of file Validator.php.
Referenced by _validateSubpackageDep().
| _tagCannotBeEmpty | ( | $tag | ) |
Definition at line 1447 of file Validator.php.
Referenced by _analyzePhpFiles(), and validate().
| _tagHasNoAttribs | ( | $tag, | |
| $context ) |
Definition at line 1391 of file Validator.php.
Referenced by _processAttribs().
| _tagMissingAttribute | ( | $tag, | |
| $attr, | |||
| $context ) |
Definition at line 1384 of file Validator.php.
Referenced by _processAttribs().
| _unknownChannel | ( | $channel | ) |
Definition at line 1485 of file Validator.php.
Referenced by validate().
| _unknownTask | ( | $task, | |
| $file ) |
Definition at line 1569 of file Validator.php.
Referenced by _validateFilelist().
| _uriDepsCannotHaveVersioning | ( | $type | ) |
Definition at line 1619 of file Validator.php.
Referenced by _validatePackageDep().
| _UrlOrChannel | ( | $type, | |
| $name ) |
Definition at line 1453 of file Validator.php.
Referenced by _validateDependencies().
| _UrlOrChannelGroup | ( | $type, | |
| $name, | |||
| $group ) |
Definition at line 1469 of file Validator.php.
Referenced by _validateDependencies().
| _usesroletaskMustHaveChannelOrUri | ( | $role, | |
| $tag ) |
Definition at line 1671 of file Validator.php.
Referenced by validate().
| _usesroletaskMustHavePackage | ( | $role, | |
| $tag ) |
Definition at line 1677 of file Validator.php.
Referenced by validate().
| _usesroletaskMustHaveRoleTask | ( | $tag, | |
| $type ) |
Definition at line 1683 of file Validator.php.
Referenced by validate().
| _validateArchDep | ( | $dep, | |
| $installcondition = false ) |
Definition at line 766 of file Validator.php.
References _stupidSchemaValidate().
| _validateBundle | ( | $list | ) |
Definition at line 964 of file Validator.php.
References _AtLeast2BundledPackages(), _bundledPackagesMustBeFilename(), and _NoBundledPackages().
Referenced by _validateFilelist().
| _validateCompatible | ( | ) |
Definition at line 925 of file Validator.php.
References _invalidVersion(), and _stupidSchemaValidate().
Referenced by validate().
| _validateDependencies | ( | ) |
Definition at line 805 of file Validator.php.
References _invalidDepGroupName(), _NoChannel(), _NoChannelGroup(), _stupidSchemaValidate(), _UrlOrChannel(), _UrlOrChannelGroup(), and PEAR_Validate\validGroupName().
Referenced by validate().
| _validateExtensionDep | ( | $dep, | |
| $group = false, | |||
| $installcondition = false ) |
Definition at line 691 of file Validator.php.
References _invalidVersion(), and _stupidSchemaValidate().
| _validateFilelist | ( | $list = false, | |
| $allowignore = false, | |||
| $dirs = '' ) |
Definition at line 979 of file Validator.php.
References _fileNotAllowed(), _ignoreAndInstallAs(), _ignoreNotAllowed(), _invalidDirName(), _invalidFileInstallAs(), _invalidFileName(), _invalidFileRole(), _invalidTask(), _multipleInstallAs(), _notInContents(), _oldStyleFileNotAllowed(), _stupidSchemaValidate(), _unknownTask(), _validateBundle(), _validateFilelist(), _validateRole(), and PEAR_VALIDATE_DOWNLOADING.
Referenced by _validateFilelist(), _validateRelease(), and validate().
| _validateInstallConditions | ( | $cond, | |
| $release ) |
Definition at line 776 of file Validator.php.
References _stupidSchemaValidate().
Referenced by _validateRelease().
| _validateMaintainers | ( | ) |
Definition at line 492 of file Validator.php.
References _stupidSchemaValidate().
Referenced by validate().
| _validateOsDep | ( | $dep, | |
| $installcondition = false ) |
Definition at line 750 of file Validator.php.
References _cannotConflictWithAllOs(), and _stupidSchemaValidate().
| _validatePackageDep | ( | $dep, | |
| $group, | |||
| $type = '<package>' ) |
Definition at line 595 of file Validator.php.
References _DepchannelCannotBeUri(), _invalidVersion(), _stupidSchemaValidate(), and _uriDepsCannotHaveVersioning().
Referenced by _validateSubpackageDep().
| _validatePearinstallerDep | ( | $dep | ) |
Definition at line 551 of file Validator.php.
References _invalidVersion(), and _stupidSchemaValidate().
| _validatePhpDep | ( | $dep, | |
| $installcondition = false ) |
Definition at line 516 of file Validator.php.
References _invalidVersion(), and _stupidSchemaValidate().
| _validateRelease | ( | ) |
Definition at line 1218 of file Validator.php.
References _binaryPackageMustBePackagename(), _cannotHaveSrcpackage(), _cannotProvideExtension(), _mustProvideExtension(), _mustSrcPackage(), _mustSrcuri(), _stupidSchemaValidate(), _validateFilelist(), and _validateInstallConditions().
Referenced by validate().
| _validateRole | ( | $role | ) |
This is here to allow role extension through plugins
| string |
Definition at line 1343 of file Validator.php.
References PEAR_Installer_Role\getValidRoles().
Referenced by _validateFilelist().
| _validateStabilityVersion | ( | ) |
Definition at line 467 of file Validator.php.
References _invalidState(), _invalidVersion(), and _stupidSchemaValidate().
Referenced by validate().
| _validateSubpackageDep | ( | $dep, | |
| $group ) |
Definition at line 680 of file Validator.php.
References _subpackageCannotProvideExtension(), _subpackagesCannotConflict(), and _validatePackageDep().
| analyzeSourceCode | ( | $file, | |
| $string = false ) |
Analyze the source code of the given PHP file
| string | Filename of the PHP file |
| boolean | whether to analyze $file as the file contents |
Definition at line 1841 of file Validator.php.
References PEAR_COMMON_ERROR_INVALIDPHP.
Referenced by _analyzePhpFiles(), and PEAR_Common\analyzeSourceCode().
| validate | ( | & | $pf, |
| $state = PEAR_VALIDATE_NORMAL ) |
| PEAR_PackageFile_v2 | |
| int |
Definition at line 58 of file Validator.php.
References $_packageInfo, _analyzeBundledPackages(), _analyzePhpFiles(), _filelistCannotContainFile(), _filelistMustContainDir(), _multipleToplevelDirNotAllowed(), _noPackageVersion(), _pearVersionTooLow(), _stupidSchemaValidate(), _tagCannotBeEmpty(), _unknownChannel(), _usesroletaskMustHaveChannelOrUri(), _usesroletaskMustHavePackage(), _usesroletaskMustHaveRoleTask(), _validateCompatible(), _validateDependencies(), _validateFilelist(), _validateMaintainers(), _validateRelease(), _validateStabilityVersion(), PEAR_VALIDATE_NORMAL, and PEAR_VALIDATE_PACKAGING.
| $_curState = 0 |
Definition at line 53 of file Validator.php.
| $_filesValid = 0 |
Definition at line 49 of file Validator.php.
| $_isValid = 0 |
Definition at line 45 of file Validator.php.
Referenced by _analyzePhpFiles().
| $_packageInfo |
Definition at line 33 of file Validator.php.
Referenced by validate().
| $_pf |
Definition at line 37 of file Validator.php.
| $_stack |
Definition at line 41 of file Validator.php.