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

Class: Calendar_Validator

Source Location: Program_Root/Validator.php

Calendar::getValidator()

Class Overview


Used to validate any given Calendar date object. Instances of this class

Methods


Inherited Variables

Inherited Methods


Class Details

Used to validate any given Calendar date object. Instances of this class

can be obtained from any data object using the getValidator method

access:  public
see:  Calendar::getValidator()

Class Methods


constructor Calendar_Validator

Constructs Calendar_Validator

Calendar_Validator Calendar_Validator( object subclass &$calendar)

API Tags:

access:  public

Parameters:

object subclass   &$calendar   of Calendar

method fetch

Iterates over any validation errors

mixed fetch( )

API Tags:

return:  either Calendar_Validation_Error or false
access:  public

method isValid

Calls all the other isValidXXX() methods in the validator except

isValidWeek()



boolean isValid( )

API Tags:

access:  public

method isValidDay

Check whether this is a valid day

boolean isValidDay( )

API Tags:

access:  public

method isValidHour

Check whether this is a valid hour

boolean isValidHour( )

API Tags:

access:  public

method isValidMinute

Check whether this is a valid minute

boolean isValidMinute( )

API Tags:

access:  public

method isValidMonth

Check whether this is a valid month

boolean isValidMonth( )

API Tags:

access:  public

method isValidSecond

Check whether this is a valid second

boolean isValidSecond( )

API Tags:

access:  public

method isValidWeek

Check whether this is a valid week.
This will trigger a PEAR error notice if the calendar unit is not a Calendar_Week or subclass thereof.


boolean isValidWeek( )

API Tags:

access:  public

method isValidYear

Check whether this is a valid year

boolean isValidYear( )

API Tags:

access:  public
Released under the PHP license (http://www.php.net/license/3_0.txt)
Documentation generated on Thu, 30 Oct 2003 16:36:08 +0100 by phpDocumentor 1.2.2