spoof
 All Data Structures Namespaces Files Functions Variables Pages
Record Class Reference
Inheritance diagram for Record:
Collaboration diagram for Record:

Public Member Functions

 __construct ($type= 'Record')
 __set ($key, $value)
 __get ($key)
 toXML ()

Protected Attributes

 $__type

Detailed Description

A database record class. This is a simple class that extends PHP ArrayObject and is used to represent a database record.

See also:
ArrayObject

Constructor & Destructor Documentation

__construct (   $type = 'Record')

Constructor.

Parameters:
string$typeoptional type, default 'Record'

Implements IRecord.


Member Function Documentation

__get (   $key)

Gets associated value of the supplied key.

Parameters:
string$key
Returns:
mixed associated value
Exceptions:
OutOfBoundsExceptionwhen key doesn't exist

Implements IRecord.

__set (   $key,
  $value 
)

Sets key-value association.

Parameters:
string$key
mixed$value

Implements IRecord.

toXML ( )

Transforms object into XML representation.

Returns:
DOMDocument XML document object

Implements IRecord.


Field Documentation

$__type
protected

Record type. This is used when returning the output to differentiate the records for the user environment.

See also:
toXML()

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