spoof
 All Data Structures Namespaces Files Functions Variables Pages
IValue Interface Reference
Inheritance diagram for IValue:

Public Member Functions

 __construct ($value, $type)
 getType ()
 getValue ()

Detailed Description

Database value interface


Constructor & Destructor Documentation

__construct (   $value,
  $type 
)

Constructor creates an instance with specified type and value. Type must match the actual type of the value parameter. This object will not explicitly cast the type.

Parameters:
$valuemixed value of the object
$typeint type of the value
Exceptions:
DBExceptionwhen specified type and actual type do not match
DBExceptionwhen invalid type is supplied

Implemented in Value.


Member Function Documentation

getType ( )

Returns the value type

Returns:
integer value type

Implemented in Value.

getValue ( )

Returns value

Returns:
mixed value

Implemented in Value.


The documentation for this interface was generated from the following file: