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

Public Member Functions

 evaluate ($expr, $fieldname, Dataface_Record $record)
 copy ($record, $vals=array(), $force=true)
 buildCopyQuery ($record, $vals=array(), $force=true)

Static Public Member Functions

static & getInstance ()

Data Fields

 $warnings

Detailed Description

Definition at line 3 of file CopyTool.php.


Member Function Documentation

buildCopyQuery ( record,
vals = array(),
force = true 
)

Builds an SQL query to copy the given record. This honours permissions and will only copy columns for which 'view' access is available in the source record and 'edit' access is available in the destination record.

Individual column failures (due to permissions) are recorded in the $warnings variable of this class. It will be an array of Dataface_Error objects.

Parameters:
Dataface_Record$recordThe record being copied.
array$vallsValues that should be placed in the copied version.
boolean$forceIf true this will perform the copy despite individual column warnings.
Returns:
string The SQL query to copy the record.

Definition at line 127 of file CopyTool.php.

copy ( record,
vals = array(),
force = true 
)

Definition at line 62 of file CopyTool.php.

evaluate ( expr,
fieldname,
Dataface_Record record 
)

Definition at line 15 of file CopyTool.php.

static& getInstance ( ) [static]

Definition at line 6 of file CopyTool.php.


Field Documentation

$warnings

Definition at line 4 of file CopyTool.php.


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