php-doc-en/reference/rrd/rrdupdater/update.xml
Jakub Vrana 4b7f1ad3b9 Fix protos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@309024 c90b9560-bf6c-de11-be94-00142212c4b1
2011-03-08 16:49:15 +00:00

103 lines
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="rrdupdater.update" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>RRDUpdater::update</refname>
<refpurpose>Update the RRD database file</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>bool</type><methodname>RRDUpdater::update</methodname>
<methodparam><type>array</type><parameter>values</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>time</parameter>
<initializer>time()</initializer>
</methodparam>
</methodsynopsis>
<para>
Updates the RRD file defined via <methodname>RRDUpdater::__construct</methodname>.
The file is updated with a specific values.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>values</parameter></term>
<listitem>
<para>
Data for update. Key is data source name.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>time</parameter></term>
<listitem>
<para>
Time value for updating the RRD with a particulat data. Default value
is current time.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="errors">
&reftitle.errors;
<para>
Throws a <classname>Exception</classname> on error.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><methodname>RRDUpdater::update</methodname> examples</title>
<programlisting role="php">
<![CDATA[
<?php
$updator = new RRDUpdater("speed.rrd");
//updates the data source "speed" with value "12411"
//for time defined by timestamp "920807700"
$updator->update(array("speed" => "12411"), "920807700");
?>
]]>
</programlisting>
</example>
</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:"~/.phpdoc/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
-->