PEAR Manual
Prev |  | Next

# PEAR_Validate::setPackageFile()

PEAR_Validate::setPackageFile() -- setPackageFile

## Synopsis

    require_once '/Validate.php';

``void PEAR_Validate::setPackageFile` (PEAR_PackageFile_v1|PEAR_PackageFile_v2 &$pf)`

## Description

Sets the packagefile object that will be used to retrieve data for validation.

## Parameter

PEAR_PackageFile_v1|PEAR_PackageFile_v2 `&$pf`

## Throws

throws no exceptions thrown

## Note

This function can not be called statically.

Prev | Home | Next
PEAR_Validate::getValidStates() | Up | PEAR_Validate::validate()