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

Class: PEAR_Validate

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

Class Overview


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


Author(s):

Version:

  • Release: 1.9.4

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 39]
Validation class for package.xml - channel-level advanced validation


[ Top ]


Class Variables

$packageregex =  _PEAR_COMMON_PACKAGE_NAME_PREG

[line 41]


Type:   mixed


[ Top ]



Method Detail

getFailures   [line 155]

void getFailures( )


[ Top ]

getValidStates   [line 113]

array getValidStates( )

Get a list of valid stability levels
  • Final:

[ Top ]

setPackageFile   [line 134]

void setPackageFile( PEAR_PackageFile_v1|PEAR_PackageFile_v2 &$pf)


Parameters:


[ Top ]

validate   [line 165]

void validate( [int $state = null])


Parameters:

int   $state     one of the PEAR_VALIDATE_* constants

[ Top ]

validateChangelog   [line 609]

void validateChangelog( )

  • Access: protected

[ Top ]

validateDate   [line 440]

void validateDate( )

  • Access: protected

[ Top ]

validateDependencies   [line 574]

void validateDependencies( )

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

[ Top ]

validateDeps   [line 625]

void validateDeps( )

  • Access: protected

[ Top ]

validateDescription   [line 549]

void validateDescription( )

  • Access: protected

[ Top ]

validateFilelist   [line 617]

void validateFilelist( )

  • Access: protected

[ Top ]

validateLicense   [line 557]

void validateLicense( )

  • Access: protected

[ Top ]

validateMainFilelist   [line 592]

void validateMainFilelist( )

for package.xml 2.0 only
  • Access: protected

[ Top ]

validateMaintainers   [line 430]

void validateMaintainers( )

  • Access: protected

[ Top ]

validateNotes   [line 565]

void validateNotes( )

  • Access: protected

[ Top ]

validatePackageName   [line 201]

void validatePackageName( )

  • Access: protected

Overridden in child classes as:

PEAR_Validator_PECL::validatePackageName()

[ Top ]

validateReleaseFilelist   [line 601]

void validateReleaseFilelist( )

for package.xml 2.0 only
  • Access: protected

[ Top ]

validateStability   [line 516]

void validateStability( )

  • Access: protected

[ Top ]

validateState   [line 497]

void validateState( )

  • Access: protected

[ Top ]

validateSummary   [line 541]

void validateSummary( )

  • Access: protected

[ Top ]

validateTime   [line 467]

void validateTime( )

  • Access: protected

[ Top ]

validateVersion   [line 245]

void validateVersion( )

  • Access: protected

Overridden in child classes as:

PEAR_Validator_PECL::validateVersion()

[ Top ]

validGroupName   [line 90]

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:

Parameters:

string   $name     

[ Top ]

validPackageName   [line 73]

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 102]

bool validState( string $state)

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

Parameters:

string   $state     

[ Top ]

validVersion   [line 126]

bool validVersion( string $ver)

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

by version_compare

  • Final:

Parameters:

string   $ver     

[ Top ]

_validPackageName   [line 63]

bool _validPackageName( string $name)

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

Parameters:

string   $name     

[ Top ]


Documentation generated on Wed, 06 Jul 2011 23:31:39 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.