File/TypeValidator.php

Description

This file contains the static TypeValidator class and the global function is_date().

System requirements:

  • PHP 5

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The Connector library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

Classes
Class Description
 class TypeValidator Use the static TypeValidator class to validate an associated array of parameters against a type definition map.
Functions
is_date (line 242)

Shortcut type validation for DateTime.

  • return: true if $value is a DateTime variable, false otherwise.
bool is_date (mixed $value)
  • mixed $value: The variable to validate.

Documentation generated on Wed, 03 Jun 2009 12:41:56 +0200 by phpDocumentor 1.4.1