uTools-Manuals/docs/php/hwapi_attribute_new.html
2019-04-08 23:22:26 +08:00

72 lines
2.0 KiB
HTML

<!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>Creates instance of class hw_api_attribute</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.hwapi-attribute-new" class="refentry">
<div class="refnamediv">
<h1 class="refname">hwapi_attribute_new</h1>
<p class="verinfo">(PHP 5 &lt; 5.2.0)</p><p class="refpurpose"><span class="refname">hwapi_attribute_new</span> &mdash; <span class="dc-title">Creates instance of class hw_api_attribute</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.hwapi-attribute-new-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>hwapi_attribute_new</strong></span>
([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>
]] ) : <span class="type"><span class="type HW_API_Attribute">HW_API_Attribute</span></span></div>
<p class="para rdfs-comment">
Creates a new instance of hw_api_attribute with the given name and value.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.hwapi-attribute-new-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">name</code></dt>
<dd>
<p class="para">
The attribute name.
</p>
</dd>
<dt>
<code class="parameter">value</code></dt>
<dd>
<p class="para">
The attribute value.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.hwapi-attribute-new-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns an instance of <strong class="classname">hw_api_attribute</strong>.
</p>
</div>
</div></div></div></body></html>