Source for file Add.php
Documentation is available at Add.php
* Description: Add Function
* $addFunction = new Add();
* $addFunction->setChart($myChart->getChart());
* $addFunction->setPeriod(0); //all points
* @copyright (c) 1995-2010 by Steema Software SL. All Rights Reserved. <info@steema.com>
* @link http://www.steema.com
function __get( $property ) {
$method = "get{$property}";
function __set ( $property,$value ) {
$method = "set{$property}";
return $this->$method($value);
* Performs function operation on SourceSeries series.
* @param sourceSeries Series
public function calculate($sourceSeries, $firstIndex, $lastIndex)
for($t = $firstIndex; $t <= $lastIndex; $t++ )
$result += $v->value[$t];
* Performs function operation on list of series (SourceSeriesList).
* @param sourceSeriesList ArrayList
for($t = 0; $t < sizeof($sourceSeriesList); $t++ )
$v = $this->valueList($sourceSeriesList->offsetget($t));
$result += $v->value[$valueIndex];
|