Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 5675

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Restores the RRD file from XML dump.</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.rrd-lastupdate.html">rrd_lastupdate</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.rrd-tune.html">rrd_tune</a></div>
 <div class="up"><a href="ref.rrd.html">RRD Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.rrd-restore" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">rrd_restore</h1>
  <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_restore</span> &mdash; <span class="dc-title">Restores the RRD file from XML dump.</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.rrd-restore-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>rrd_restore</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$xml_file</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$rrd_file</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   Restores the RRD file from the XML dump.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.rrd-restore-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   <dt>

    <span class="term"><em><code class="parameter">xml_file</code></em></span>
    <dd>

     <p class="para">
      XML filename with the dump of the original RRD database file.
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term"><em><code class="parameter">rrd_file</code></em></span>
    <dd>

     <p class="para">
      Restored RRD database file name.
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term"><em><code class="parameter">options</code></em></span>
    <dd>

     <p class="para">
      Array of options for restoring. See man page for rrd restore.
     </p>
    </dd>

   </dt>

  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.rrd-restore-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
  Returns <strong><code>TRUE</code></strong> on success, <strong><code>FALSE</code></strong> otherwise.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.rrd-lastupdate.html">rrd_lastupdate</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.rrd-tune.html">rrd_tune</a></div>
 <div class="up"><a href="ref.rrd.html">RRD Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>