PEAR_Validate::validState()

PEAR_Validate::validState()  -- Determine whether $state represents a valid stability level

Referentiesamenvatting

require_once '/Validate.php';

bool PEAR_Validate::validState (string $state)

Beschrijving

This utility method can be used to determine whether a string is a valid state. Currently, states must be one of snapshot, devel, alpha, beta, and stable.

Parameter

string $state

State string to validate.

Throws

throws no exceptions thrown

Final

final - this method should not be overridden.

Note

Deze functie zou statisch moeten worden aangeroepen.