PhpRiot
Follow phpriot on Twitter
Sponsored Link
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store
Free iPad/iPhone App
Available on the App Store

  • PHP manual
  • Zend Framework manual
  • Smarty manual
  • PHP articles
  • PHP training

RRDGraph::setOptions

(PECL rrd >= 0.9.0)

RRDGraph::setOptionsSets the options for rrd graph export

Description

public void RRDGraph::setOptions ( array $options )

Parameters

options

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.

Return Values

No value is returned.

Examples

Example #1 RRDGraph::setOptions examples

<?php
$graphObj
->setOptions(array(
        
"--start" => "920804400",
      
"--end" => 920808000,
    
"--vertical-label" => "m/s",
    
"DEF:myspeed=$rrdFile:speed:AVERAGE",
    
"CDEF:realspeed=myspeed,1000,*",
    
"LINE2:realspeed#FF0000"
));
?>

PHP Manual