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

Class: Calendar_Validator

Source Location: /Calendar-0.5.5/Validator.php

Class Overview


Used to validate any given Calendar date object. Instances of this class can be obtained from any data object using the getValidator method


Author(s):

Copyright:

  • 2003-2007 Harry Fuecks

Methods


Inherited Variables

Inherited Methods


Class Details

[line 62]
Used to validate any given Calendar date object. Instances of this class can be obtained from any data object using the getValidator method


[ Top ]


Method Detail

Calendar_Validator (Constructor)   [line 92]

Calendar_Validator Calendar_Validator( object &$calendar)

Constructs Calendar_Validator
  • Access: public

Parameters:

object   &$calendar     subclass of Calendar

[ Top ]

fetch   [line 270]

mixed fetch( )

Iterates over any validation errors
  • Return: either Calendar_Validation_Error or false
  • Access: public

[ Top ]

isValid   [line 104]

boolean isValid( )

Calls all the other isValidXXX() methods in the validator
  • Access: public

[ Top ]

isValidDay   [line 171]

boolean isValidDay( )

Check whether this is a valid day
  • Access: public

[ Top ]

isValidHour   [line 198]

boolean isValidHour( )

Check whether this is a valid hour
  • Access: public

[ Top ]

isValidMinute   [line 222]

boolean isValidMinute( )

Check whether this is a valid minute
  • Access: public

[ Top ]

isValidMonth   [line 147]

boolean isValidMonth( )

Check whether this is a valid month
  • Access: public

[ Top ]

isValidSecond   [line 246]

boolean isValidSecond( )

Check whether this is a valid second
  • Access: public

[ Top ]

isValidYear   [line 123]

boolean isValidYear( )

Check whether this is a valid year
  • Access: public

[ Top ]


Documentation generated on Thu, 24 Jun 2010 14:00:13 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.