Xataface 2.0
Xataface Application Framework
Public Member Functions | Data Fields
Dataface_ImportRecord Class Reference

Public Member Functions

 Dataface_ImportRecord ($classpath, $data)
 toArray ()
 load ($data)
 getValues ()
 setValue ($key, $value)
 getValue ($key)
 val ($key)
 commit ()
 getClassPath ()

Data Fields

 $classpath = null
 $values = array()

Detailed Description

A base class for an import record. More complex import filters may return arrays of ImportRecord objects instead of Dataface_Record objects. This allows them to define exactly how the record is committed to the database.

Author:
Steve Hannah <steve@weblite.ca> March 18th, 2008

Definition at line 11 of file ImportRecord.php.


Member Function Documentation

commit ( )

Abstract method. Commits this import data to the database.

Definition at line 95 of file ImportRecord.php.

Dataface_ImportRecord ( classpath,
data 
)

Definition at line 40 of file ImportRecord.php.

getClassPath ( )

Definition at line 99 of file ImportRecord.php.

getValue ( key)

Returns a value from this import record.

Definition at line 86 of file ImportRecord.php.

getValues ( )

Definition at line 71 of file ImportRecord.php.

load ( data)

Loads the record from an associative array.

Definition at line 63 of file ImportRecord.php.

setValue ( key,
value 
)
Returns:
Associative array of values in this import record.

Definition at line 78 of file ImportRecord.php.

toArray ( )

Exports the data from this record to an associative array so that it can be serialized.

Definition at line 50 of file ImportRecord.php.

val ( key)

Definition at line 89 of file ImportRecord.php.


Field Documentation

$classpath = null

Definition at line 18 of file ImportRecord.php.

$values = array()

Definition at line 24 of file ImportRecord.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations