1.8 kiriwrite_page_multicopy

kiriwrite_page_multicopy will copy pages from one database to another database. If no confirm value is specified then it will write a form asking if the selected pages should be copied to another database and which database the pages should be copied to. If no databases or pages were specified then an error is returned.

kiriwrite_page_multicopy will return data that is intended for kiriwrite_output_page. All parameters are required for this subroutine.

Parameters:

kiriwrite_page_multicopy(database, olddatabase, confirm, filelist);

Usage:

$pagedata = kiriwrite_page_multicopy(“database”, “newdatabase”, 0, ['page1.html','page2.html','page3.html','page4.html']);
$pagedata = kiriwrite_page_multicopy(“database”, “newdatabase”, 1, ['page1.html','page2.html','page3.html','page4.html']);

database
Specifies the database to copy the pages from.

newdatabase
Specifies the new database to copy the pages to.

confirm
Specifies if the action to delete multiple pages should be confirmed by passing a '1'.

filelist
Specifies an array giving the list of pages to copy.