<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/hw.xml, last change in rev 1.2 --> <refentry id="function.hw-insertdocument"> <refnamediv> <refname>hw_InsertDocument</refname> <refpurpose>upload any document</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>hw_insertdocument</methodname> <methodparam><type>int</type><parameter>connection</parameter></methodparam> <methodparam><type>int</type><parameter>parent_id</parameter></methodparam> <methodparam><type>int</type><parameter>hw_document</parameter></methodparam> </methodsynopsis> <para> Uploads a document into the collection with <parameter>parent_id</parameter>. The document has to be created before with <function>hw_new_document</function>. 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. The functions returns the object id of the new document or &false;. </para> <para> See also <function>hw_pipedocument</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->