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

Class: KFilterInterface

Source Location: /libraries/koowa/filter/interface.php

Interface Overview

KObjectHandlable
   |
   --KCommandInterface
      |
      --KFilterInterface

Filter interface


Author(s):

Methods


Inherited Methods

Class: KCommandInterface

KCommandInterface::execute()
Generic Command handler
KCommandInterface::getPriority()
Get the priority of the command

Class: KObjectHandlable

KObjectHandlable::getHandle()
Get the object handle

Class Details

[line 18]
Filter interface

Validate or sanitize data




Tags:

author:  Johan Janssens <johan@nooku.org>


[ Top ]


Class Methods


method sanitize [line 37]

mixed sanitize( mixed $value)

Sanitize a value or data collection



Tags:

access:  public


Parameters:

mixed   $value   Data to be sanitized

[ Top ]

method validate [line 29]

bool validate( mixed $value)

Validate a value or data collection

NOTE: This should always be a simple yes/no question (is $value valid?), so only true or false should be returned




Tags:

return:  True when the variable is valid
access:  public


Parameters:

mixed   $value   Data to be validated

[ Top ]


Documentation generated on Wed, 22 May 2013 03:01:58 +0200 by phpDocumentor 1.4.3