<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.rrdgraph.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'rrdgraph.setoptions.php',
    1 => 'RRDGraph::setOptions',
    2 => 'Sets the options for rrd graph export',
  ),
  'up' => 
  array (
    0 => 'class.rrdgraph.php',
    1 => 'RRDGraph',
  ),
  'prev' => 
  array (
    0 => 'rrdgraph.saveverbose.php',
    1 => 'RRDGraph::saveVerbose',
  ),
  'next' => 
  array (
    0 => 'class.rrdupdater.php',
    1 => 'RRDUpdater',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/rrd/rrdgraph/setoptions.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="rrdgraph.setoptions" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">RRDGraph::setOptions</h1>
  <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">RRDGraph::setOptions</span> &mdash; <span class="dc-title">Sets the options for rrd graph export</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-rrdgraph.setoptions-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>RRDGraph::setOptions</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$options</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="simpara">

  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-rrdgraph.setoptions-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">options</code></dt>
    <dd>
     <span class="simpara">
      List of options for the image generation from the RRD database file. It can
      be list of strings or list of strings with keys for better readability. Read
      the rrd graph man pages for list of available options.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-rrdgraph.setoptions-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="simpara">
   Es wird kein Wert zurückgegeben.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-rrdgraph.setoptions-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="methodname"><strong>RRDGraph::setOptions()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$graphObj</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setOptions</span><span style="color: #007700">(array(<br />    </span><span style="color: #DD0000">"--start" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"920804400"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"--end" </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">920808000</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"--vertical-label" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"m/s"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"DEF:myspeed=</span><span style="color: #0000BB">$rrdFile</span><span style="color: #DD0000">:speed:AVERAGE"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"CDEF:realspeed=myspeed,1000,*"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"LINE2:realspeed#FF0000"<br /></span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>

   <div class="example" id="example-2">
    <p><strong>Beispiel #2 Set multiple color options</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$graphObj</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setOptions</span><span style="color: #007700">(array(<br />    </span><span style="color: #DD0000">"--start" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"920804400"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"--end" </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">920808000</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"--vertical-label" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"m/s"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"--color=BACK#00000000"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"--color=GRID#00000000"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"--color=MGRID#00000000"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"DEF:myspeed=</span><span style="color: #0000BB">$rrdFile</span><span style="color: #DD0000">:speed:AVERAGE"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"CDEF:realspeed=myspeed,1000,*"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"LINE2:realspeed#FF0000"<br /></span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
     Don&#039;t use key value syntax for same rrd option. It looks more readable, but
     it doesn&#039;t work.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$graphObj</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setOptions</span><span style="color: #007700">(array(<br />    </span><span style="color: #DD0000">"--color" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"BACK#00000000"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"--color" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"GRID#00000000"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"--color" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"MGRID#00000000"<br /></span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
     In nature of php it&#039;s same as
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$graphObj</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setOptions</span><span style="color: #007700">(array(<br />    </span><span style="color: #DD0000">"--color" </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"MGRID#00000000"<br /></span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>

</div><?php manual_footer($setup); ?>