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

Class: Calendar_Validation_Error

Source Location: Program_Root/Validator.php

Calendar::fetch()

Class Overview


For Validation Error messages

Methods


Inherited Variables

Inherited Methods


Class Details

For Validation Error messages
access:  public
see:  Calendar::fetch()

Class Methods


constructor Calendar_Validation_Error

Constructs Calendar_Validation_Error

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

API Tags:

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

method getMessage

Returns the validation error message

string getMessage( )

API Tags:

access:  public

method getUnit

Returns the Date unit

string getUnit( )

API Tags:

access:  public

method getValue

Returns the value of the unit

int getValue( )

API Tags:

access:  public

method toString

Returns a string containing the unit, value and error message

string toString( )

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