TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Source for file Multiply.php

Documentation is available at Multiply.php

  1. <?php
  2.  
  3. /**
  4. *
  5. * <p>Title: Multiply class</p>
  6. *
  7. * <p>Description: Multiply Function.</p>
  8. *
  9. * <p>Example:
  10. * <pre><font face="Courier" size="4">
  11. * $multiplyFunction = new Multiply();
  12. * $multiplyFunction->setChart($myChart->getChart());
  13. * $multiplyFunction->setPeriod(0); //all points
  14. *
  15. * $tmp={$barSeries1,$barSeries2};
  16. * $lineSeries->setDataSource($tmp);
  17. *
  18. * $lineSeries->setFunction($multiplyFunction);
  19. * </font></pre></p>
  20. *
  21. * <p>Copyright (c) 2005-2008 by Steema Software SL. All Rights
  22. * Reserved.</p>
  23. *
  24. * <p>Company: Steema Software SL</p>
  25. *
  26. */
  27.  
  28. class Multiply extends ManySeries
  29. {
  30.     // Interceptors
  31.     function __get$property {
  32.       $method ="get{$property}";
  33.       if method_exists$this$method ) ) {
  34.         return $this->$method();
  35.       }
  36.     }
  37.  
  38.     function __set $property,$value {
  39.       $method ="set{$property}";
  40.       if method_exists$this$method ) ) {
  41.         return $this->$method($value);
  42.       }
  43.     }
  44.  
  45.    protected function calculateValue($result$value)
  46.    {
  47.       return $result $value;
  48.    }
  49.  
  50.    /**
  51.    * Gets descriptive text.
  52.    *
  53.    * @return String 
  54.    */
  55.    public function getDescription()
  56.    {
  57.       return Language::getString("FunctionMultiply");
  58.    }
  59. }
  60. ?>

Documentation generated on Wed, 16 Jun 2010 12:07:05 +0200 by phpDocumentor 1.4.1