API docs     >     Files     >     Views

Views->copyTo

Description

copyTo ( $fromFileId, $fromFileVersion, $toFileId, $toFileVersion )
Copies all assigned Views from a File to another

Parameters

$fromFileId
int
File-Id to copy the Views from
$fromFileVersion
int
File-Version to copy the Views from
$toFileId
int
File-Id to copy the Views to
$toFileVersion
int
File-Version to copy the Views to

Returns

bool
TRUE on success or FALSE if an error has occured