<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Upload any document</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.hw-insertanchors.html">hw_insertanchors</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.hw-insertobject.html">hw_InsertObject</a></div> <div class="up"><a href="ref.hw.html">Hyperwave Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.hw-insertdocument" class="refentry"> <div class="refnamediv"> <h1 class="refname">hw_InsertDocument</h1> <p class="verinfo">(PHP 4)</p><p class="refpurpose"><span class="refname">hw_InsertDocument</span> — <span class="dc-title">Upload any document</span></p> </div> <div class="refsect1 description" id="refsect1-function.hw-insertdocument-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><strong>hw_insertdocument</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$connection</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$parent_id</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$hw_document</code></span> )</div> <p class="para rdfs-comment"> Uploads a document into the given collection. </p> <p class="para"> The document has to be created before with <span class="function"><a href="function.hw-new-document.html" class="function">hw_new_document()</a></span>. Make sure that the object record of the new document contains at least the attributes: Type, DocumentType, Title and Name. Possibly you also want to set the MimeType. </p> </div> <div class="refsect1 parameters" id="refsect1-function.hw-insertdocument-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">connection</code></em></span> <dd> <p class="para"> The connection identifier. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">parent_id</code></em></span> <dd> <p class="para"> The collection identifier. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">hw_document</code></em></span> <dd> <p class="para"> The document identifier. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.hw-insertdocument-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> The functions returns the object id of the new document or <strong><code>FALSE</code></strong>. </p> </div> <div class="refsect1 seealso" id="refsect1-function.hw-insertdocument-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.hw-pipedocument.html" class="function" rel="rdfs-seeAlso">hw_pipedocument()</a> - Retrieve any document</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.hw-insertanchors.html">hw_insertanchors</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.hw-insertobject.html">hw_InsertObject</a></div> <div class="up"><a href="ref.hw.html">Hyperwave Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>