com.lokorin.lokorin.lib
[ class tree: com.lokorin.lokorin.lib ] [ index: com.lokorin.lokorin.lib ] [ all elements ]

Class: Validatable

Source Location: /_includes/lib_forms.php

Interface Overview


Meant as an interface for validatable objects.


Author(s):

  • Andreas Launila

Methods



Class Details

[line 26]
Meant as an interface for validatable objects.



Tags:

author:  Andreas Launila


[ Top ]


Class Methods


method getError [line 38]

string getError( )

Returns the reason for an object is not in a valid state. This assumes that the isValid() function returns false (so check that first).



Tags:

return:  An error message.
access:  public


[ Top ]

method isValid [line 31]

boolean isValid( )

Checks if the object's state is valid or not.



Tags:

return:  True if the object's state is valid, false otherwise.
access:  public


[ Top ]


Documentation generated on Sun, 16 Apr 2006 21:03:31 +0200 by phpDocumentor 1.3.0RC4