mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-19 10:28:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@116938 c90b9560-bf6c-de11-be94-00142212c4b1
72 lines
2.7 KiB
XML
72 lines
2.7 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.4 $ -->
|
|
<!-- 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>
|
|
<title>hw_getobject</title>
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>hw_getobject</methodname>
|
|
<methodparam><type>int</type><parameter>connection</parameter></methodparam>
|
|
<methodparam><type>mixed</type><parameter>objectID</parameter></methodparam>
|
|
<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
|
|
-->
|