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

Class: Calendar_Validator

Source Location: /Calendar-0.5.2/Validator.php

Class Overview


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


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 44]
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 72]

Calendar_Validator Calendar_Validator( object subclass &$calendar)

Constructs Calendar_Validator
  • Access: public

Parameters:

object subclass   &$calendar   —  of Calendar

[ Top ]

fetch   [line 240]

mixed fetch( )

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

[ Top ]

isValid   [line 83]

boolean isValid( )

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

[ Top ]

isValidDay   [line 147]

boolean isValidDay( )

Check whether this is a valid day
  • Access: public

[ Top ]

isValidHour   [line 171]

boolean isValidHour( )

Check whether this is a valid hour
  • Access: public

[ Top ]

isValidMinute   [line 194]

boolean isValidMinute( )

Check whether this is a valid minute
  • Access: public

[ Top ]

isValidMonth   [line 124]

boolean isValidMonth( )

Check whether this is a valid month
  • Access: public

[ Top ]

isValidSecond   [line 217]

boolean isValidSecond( )

Check whether this is a valid second
  • Access: public

[ Top ]

isValidYear   [line 101]

boolean isValidYear( )

Check whether this is a valid year
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:54:44 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.