<!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>Convert attributes from object record to object array</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.hw-new-document.html">hw_New_Document</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.hw-output-document.html">hw_Output_Document</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-objrec2array" class="refentry"> <div class="refnamediv"> <h1 class="refname">hw_objrec2array</h1> <p class="verinfo">(PHP 4)</p><p class="refpurpose"><span class="refname">hw_objrec2array</span> — <span class="dc-title">Convert attributes from object record to object array</span></p> </div> <div class="refsect1 description" id="refsect1-function.hw-objrec2array-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><strong>hw_objrec2array</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$object_record</code></span> [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$format</code></span> ] )</div> <p class="para rdfs-comment"> Converts an <em><code class="parameter">object_record</code></em> into an object array. </p> </div> <div class="refsect1 parameters" id="refsect1-function.hw-objrec2array-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">object_record</code></em></span> <dd> <p class="para"> The object record. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">format</code></em></span> <dd> <p class="para"> An associative array with the attribute name as its key and the value being one of <em>HW_ATTR_LANG</em> or <em>HW_ATTR_NONE</em>. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.hw-objrec2array-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns an array. The keys of the resulting array are the attributes names. Multi-value attributes like 'Title' in different languages form its own array. The keys of this array are the left part to the colon of the attribute value. This left part must be two characters long. </p> <p class="para"> Other multi-value attributes without a prefix form an indexed array. If the optional parameter is missing the attributes 'Title', 'Description' and 'Keyword' are treated as language attributes and the attributes 'Group', 'Parent' and 'HtmlAttr' as non-prefixed multi-value attributes. By passing an array holding the type for each attribute you can alter this behaviour. </p> </div> <div class="refsect1 seealso" id="refsect1-function.hw-objrec2array-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.hw-array2objrec.html" class="function" rel="rdfs-seeAlso">hw_array2objrec()</a> - Convert attributes from object array to object record</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-new-document.html">hw_New_Document</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.hw-output-document.html">hw_Output_Document</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>