// ----- Check archive
if (!
$this->
privCheckFormat()) { return(0
);
} // ----- Look if the $p_archive_to_add is an instantiated PclZip object
if ($p_archive_to_add instanceof pclzip
) { // ----- Merge the archive
$v_result =
$this->
privMerge($p_archive_to_add);
} // ----- Look if the $p_archive_to_add is a string (so a filename)
else if (is_string($p_archive_to_add)) { // ----- Create a temporary archive
$v_object_archive =
new PclZip($p_archive_to_add);
// ----- Merge the archive
$v_result =
$this->
privMerge($v_object_archive);
}