1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
\r
4 <link href="style.css" REL="stylesheet" TYPE="text/css" MEDIA="screen">
\r
5 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
\r
6 <title>Kiriwrite Documentation - Developer Documentation - 3.32: copypage</title>
\r
9 <div class="menubarback">
\r
10 <div class="menubar">
\r
11 <span class="apptitle">Kiriwrite</span>
\r
12 <a href="index.html">Index</a> | <a href="user.html">User
\r
13 Documentation</a> | <a href="tutorial.html">Tutorial Documentation</a> |
\r
14 <a href="developer.html">Developer Documentation</a>
\r
17 <div class="pageinformation">
\r
18 <span class="pagetitle">3.32 copypage</span><br><br>
\r
20 Copies pages from one database to another database.<br><br>
\r
22 <span class="heading">Parameters:</span><br><br>
\r
25 $kiriwrite_dbmodule->copypage(options);
\r
28 <span class="heading">Usage:</span><br><br>
\r
31 $kiriwrite_dbmodule->selectdb(“database”);<br>
\r
32 $kiriwrite_dbmodule->selectseconddb(“newdatabase”);<br>
\r
33 $kiriwrite_dbmodule->copypage({ PageFilename => “page.html” });
\r
39 Specifies the following options as a hash.<br><br>
\r
41 <table class="infotable">
\r
43 <td class="tableheading">Value</td>
\r
44 <td class="tableheading">Description</td>
\r
47 <td class="tabledata">PageFilename</td>
\r
48 <td class="tabledata">Specifies the page with the filename to copy.</td>
\r
54 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.<br><br>
\r
56 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.<br><br>
\r
58 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.<br><br>
\r
60 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.
\r