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

Class: Calendar_Validation_Error

Source Location: /Calendar-0.5.5/Validator.php

Class Overview


For Validation Error messages


Author(s):

Copyright:

  • 2003-2007 Harry Fuecks

Methods


Inherited Variables

Inherited Methods


Class Details

[line 294]
For Validation Error messages


[ Top ]


Method Detail

Calendar_Validation_Error (Constructor)   [line 326]

Calendar_Validation_Error Calendar_Validation_Error( string $unit, int $value, string $message)

Constructs Calendar_Validation_Error
  • Access: protected

Parameters:

string   $unit     Date unit (e.g. month,hour,second)
int   $value     Value of unit which failed test
string   $message     Validation error message

[ Top ]

getMessage   [line 361]

string getMessage( )

Returns the validation error message
  • Access: public

[ Top ]

getUnit   [line 339]

string getUnit( )

Returns the Date unit
  • Access: public

[ Top ]

getValue   [line 350]

int getValue( )

Returns the value of the unit
  • Access: public

[ Top ]

toString   [line 372]

string toString( )

Returns a string containing the unit, value and error message
  • 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.