![]() |
Xataface 2.0
Xataface Application Framework
|
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 |
Definition at line 3 of file CopyTool.php.
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.
Dataface_Record | $record | The record being copied. |
array | $valls | Values that should be placed in the copied version. |
boolean | $force | If true this will perform the copy despite individual column warnings. |
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.
$warnings |
Definition at line 4 of file CopyTool.php.