3.32 copypage
Copies pages from one database to another database.
Parameters:
$kiriwrite_dbmodule->copypage(options);
Usage:
$kiriwrite_dbmodule->selectdb(“database”);
$kiriwrite_dbmodule->selectseconddb(“newdatabase”);
$kiriwrite_dbmodule->copypage({ PageFilename => “page.html” });
options
Specifies the following options as a hash.
Value |
Description |
PageFilename |
Specifies the page with the filename to copy. |
If the page does not exist in the database the page is being copied from then the error returned should be 'PageDoesNotExist' in the $error scalar.
If the page already exists in the database the page is being copied to then the error returned should be 'PageAlreadyExists' in the $error scalar.
If a database error occurs in the database the page is being copied from then the error returned should be 'OldDatabaseError' in the $error scalar and information about the error should be in the $errorext scalar.
If a database error occurs in the database the page is being copied to then the error returned should be 'NewDatabaseError' in the $error scalar and information about the error should be in the $errorext scalar.