hw_cp
Name
hw_cp — Copies a list of objects into a destination
collection object.
Synopsis
int hw_cp
(hw_link, object_list, dest_collection);
resource hw_link: Connection
ID to the Hyperwave server
array object_list: Array of
object IDs to copy
int dest_collection: Object
ID of destination collection
Returns
Number of objects copied; FALSE on error
Description
hw_cp() copies one or more objects into a
collection object. Place the IDs of the objects to be
copied into an array, and pass the array as the
hw_cp() along with the ID of the destination
collection object. object_list
is the array of source object IDs, and dest_collection is the ID of the target
collection.
Version
PHP 3 since 3.0.3, PHP 4
Example
Example 467. Copy a list of
objects
if (($num = hw_cp($hw_link, array(45, 54, 55), 287)) === FALSE) {
echo "Could not copy objects; reason: " . hw_errormsg($hw_link) . "\n";
} else {
echo "Copied $num objects.\n";
}
PHP Functions Essential Reference. Copyright © 2002 by New Riders Publishing
(Authors: Zak Greant, Graeme Merrall, Torben Wilson, Brett Michlitsch).
This material may be distributed only subject to the terms and conditions set forth
in the Open Publication License, v1.0 or later (the latest version is presently available at
http://www.opencontent.org/openpub/).
The authors of this book have elected not to choose any options under the OPL. This online book was obtained
from
http://www.fooassociates.com/phpfer/
and is designed to provide information about the PHP programming language, focusing on PHP version 4.0.4
for the most part. The information is provided on an as-is basis, and no warranty or fitness is implied. All
persons and entities shall have neither liability nor responsibility to any person or entity with respect to
any loss or damage arising from the information contained in this book.