2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2003-02-18 15:31:16 +00:00
|
|
|
<!-- $Revision: 1.4 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/hw.xml, last change in rev 1.2 -->
|
|
|
|
<refentry id="function.hw-getobject">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>hw_GetObject</refname>
|
|
|
|
<refpurpose>object record</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
2003-02-18 15:31:16 +00:00
|
|
|
<title>hw_getobject</title>
|
2002-04-15 00:12:54 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>array</type><methodname>hw_getobject</methodname>
|
|
|
|
<methodparam><type>int</type><parameter>connection</parameter></methodparam>
|
2003-02-05 02:16:07 +00:00
|
|
|
<methodparam><type>mixed</type><parameter>objectID</parameter></methodparam>
|
2002-04-15 00:12:54 +00:00
|
|
|
<methodparam><type>string</type><parameter>query</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
Returns the object record for the object with ID
|
|
|
|
<parameter>objectID</parameter> if the second parameter is an integer.
|
|
|
|
If the second parameter is an array of integer the function will
|
|
|
|
return an array of object records. In such a case the last
|
|
|
|
parameter is also evaluated which is a query string.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The query string has the following syntax:</para>
|
|
|
|
<simpara>
|
|
|
|
<expr> ::= "(" <expr> ")" |</simpara> <simpara>
|
|
|
|
"!" <expr> | /* NOT */</simpara><simpara>
|
|
|
|
<expr> "||" <expr> | /* OR */</simpara><simpara>
|
|
|
|
<expr> "&&" <expr> | /* AND */</simpara><simpara>
|
|
|
|
<attribute> <operator> <value></simpara><simpara>
|
|
|
|
|
|
|
|
<attribute> ::= /* any attribute name (Title, Author, DocumentType ...) */</simpara><simpara>
|
|
|
|
|
|
|
|
<operator> ::= "=" | /* equal */</simpara><simpara>
|
|
|
|
"<" | /* less than (string compare) */</simpara><simpara>
|
|
|
|
">" | /* greater than (string compare) */</simpara><simpara>
|
|
|
|
"~" /* regular expression matching */</simpara><simpara></simpara>
|
|
|
|
<para>
|
|
|
|
The query allows to further select certain objects from the list
|
|
|
|
of given objects. Unlike the other
|
|
|
|
query functions, this query may use not indexed attributes. How many
|
|
|
|
object records are returned depends on the query and if access to
|
|
|
|
the object is allowed.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
See also <function>hw_getandlock</function>,
|
|
|
|
and <function>hw_getobjectbyquery</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
|
|
|
|
-->
|