Gumbo PHP Library API Documentation
Input
[
class tree
] [
index
] [
all elements
]
Todo List
Packages:
Buffer
Collection
Composite
Config
Converter
Curl
Date
DB
Debug
Encryption
Error
Factory
Filter
Flyweight
Http
Input
Iterator
List
Load
Lockable
Log
Map
Number
Observer
Output
Query
Record
Router
Session
Setting
Singleton
Template
Timer
Utility
Valid
Source for file Input.class.php
Documentation is available at
Input.class.php
<?php
/**
* Gumbo Library Framework
*
* LICENSE
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
*
*
@category
Gumbo
*
@package
Input
*
@copyright
Copyright (c) 2007, iBayou, Michael Luster
*
@license
http://www.opensource.org/licenses/bsd-license.php New BSD License
*
@author
Michael Luster <mluster79@yahoo.com>
*
@link
http://sourceforge.net/projects/phpgumbo
*
@version
0.0.1
*/
/**
* Input Interface
*
*
@category
Gumbo
*
@package
Input
*
@copyright
Copyright (c) 2007, iBayou, Michael Luster
*
@license
http://www.opensource.org/licenses/bsd-license.php New BSD License
*
@author
Michael Luster <mluster79@yahoo.com>
*
@link
http://sourceforge.net/projects/phpgumbo
*
@desc
Input Interface
*
@version
0.0.1
*/
gumbo_load
(
"Interface_Constraint"
)
;
interface
Gumbo_Interface_Input
{
/** ACTION METHODS **/
/**
* Cleans the Data by running through the Constraints
*
@precondition
!isChecked()
*
@return
bool
*/
public
function
clean
(
)
;
/**
* Adds a Constraint against the Data (additional arguments accepted for Constraint parameters)
*
@postcondition
!isChecked()
*
@postcondition
!isClean()
*
@param
Gumbo_Interface_Constraint
$obj
*/
public
function
addConstraint
(
Gumbo_Interface_Constraint
$obj
)
;
/**
* Adds a return Constraint, which returns a formatted value
*
@postcondition
!isChecked()
*
@postcondition
!isClean()
*
@param
Gumbo_Interface_Constraint
$obj
*/
public
function
addReturnConstraint
(
Gumbo_Interface_Constraint
$obj
)
;
/**
* Resets ALL Constraints
*
@postcondition
!getConstraints()
*
@postcondition
!isChecked()
*
@postcondition
!isClean()
*/
public
function
resetConstraints
(
)
;
/** MUTATOR METHODS **/
/**
* Sets the input data
*
@postcondition
!isChecked()
*
@postcondition
!isClean()
*
@param
mixed
$data
*/
public
function
setData
(
$data
)
;
/**
* Sets if ALL Exceptions should be caught, or stop at first Exception
*
@param
bool
$val
*/
public
function
setRunThru
(
$val
)
;
/** ACCESSOR METHODS **/
/**
* Returns the Data
*
@param
bool
$raw
as raw data
*
@return
mixed
*/
public
function
getData
(
$raw
=
false
)
;
/**
* Returns ALL the Constraints
*
@return
Gumbo_Interface_Constraint[]
*/
public
function
getConstraints
(
)
;
/**
* Returns if the Data is clean
*
@return
bool
*/
public
function
isClean
(
)
;
/**
* Returns if the Data was checked
*
@return
bool
*/
public
function
isChecked
(
)
;
/**
* Returns if all Exceptions should be caught, or stop at first Exception
*
@return
bool
*/
public
function
toRunThru
(
)
;
}
?>