PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_Validate

Source Location: /PEAR-1.10.12/PEAR/Validate.php

Class Overview


Validation class for package.xml - channel-level advanced validation


Author(s):

Version:

  • Release: 1.10.12

Copyright:

  • 1997-2009 The Authors

Variables

Methods


Child classes:

PEAR_Validator_PECL
Channel Validator for the pecl.php.net channel

Inherited Variables

Inherited Methods


Class Details

[line 38]
Validation class for package.xml - channel-level advanced validation


[ Top ]


Class Variables

$packageregex =  _PEAR_COMMON_PACKAGE_NAME_PREG

[line 40]


Type:   mixed


[ Top ]



Method Detail

getFailures   [line 150]

void getFailures( )


[ Top ]

getValidStates   [line 109]

array getValidStates( )

Get a list of valid stability levels
  • Final:
  • Access: public

[ Top ]

setPackageFile   [line 129]

void setPackageFile( PEAR_PackageFile_v1|PEAR_PackageFile_v2 &$pf)


Parameters:


[ Top ]

validate   [line 160]

void validate( [int $state = null])


Parameters:

int   $state   —  one of the PEAR_VALIDATE_* constants

[ Top ]

validateChangelog   [line 605]

void validateChangelog( )

  • Access: protected

[ Top ]

validateDate   [line 436]

void validateDate( )

  • Access: protected

[ Top ]

validateDependencies   [line 570]

void validateDependencies( )

for package.xml 2.0 only - channels can't use package.xml 1.0
  • Access: protected

[ Top ]

validateDeps   [line 621]

void validateDeps( )

  • Access: protected

[ Top ]

validateDescription   [line 545]

void validateDescription( )

  • Access: protected

[ Top ]

validateFilelist   [line 613]

void validateFilelist( )

  • Access: protected

[ Top ]

validateLicense   [line 553]

void validateLicense( )

  • Access: protected

[ Top ]

validateMainFilelist   [line 588]

void validateMainFilelist( )

for package.xml 2.0 only
  • Access: protected

[ Top ]

validateMaintainers   [line 426]

void validateMaintainers( )

  • Access: protected

[ Top ]

validateNotes   [line 561]

void validateNotes( )

  • Access: protected

[ Top ]

validatePackageName   [line 196]

void validatePackageName( )

  • Access: protected

Overridden in child classes as:

PEAR_Validator_PECL::validatePackageName()

[ Top ]

validateReleaseFilelist   [line 597]

void validateReleaseFilelist( )

for package.xml 2.0 only
  • Access: protected

[ Top ]

validateStability   [line 512]

void validateStability( )

  • Access: protected

[ Top ]

validateState   [line 493]

void validateState( )

  • Access: protected

[ Top ]

validateSummary   [line 537]

void validateSummary( )

  • Access: protected

[ Top ]

validateTime   [line 463]

void validateTime( )

  • Access: protected

[ Top ]

validateVersion   [line 241]

void validateVersion( )

  • Access: protected

Overridden in child classes as:

PEAR_Validator_PECL::validateVersion()

[ Top ]

validGroupName   [line 88]

void validGroupName( string $name)

This validates a bundle name, and bundle names must conform to the PEAR naming convention, so the method is final and static.
  • Final:
  • Access: public

Parameters:

string   $name   — 

[ Top ]

validPackageName   [line 72]

void validPackageName( string $name, [string $validatepackagename = false])

  • Final:

Parameters:

string   $name   —  package name to validate
string   $validatepackagename   —  name of channel-specific validation package

[ Top ]

validState   [line 99]

bool validState( string $state)

Determine whether $state represents a valid stability level
  • Final:
  • Access: public

Parameters:

string   $state   — 

[ Top ]

validVersion   [line 121]

bool validVersion( string $ver)

Determine whether a version is a properly formatted version number that can be used

by version_compare

  • Final:
  • Access: public

Parameters:

string   $ver   — 

[ Top ]

_validPackageName   [line 62]

bool _validPackageName( string $name)

Override this method to handle validation of normal package names
  • Access: protected

Parameters:

string   $name   — 

[ Top ]


Documentation generated on Sun, 19 Apr 2020 14:22:15 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.