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

Source for file Subtract.php

Documentation is available at Subtract.php

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

Documentation generated on Wed, 16 Jun 2010 12:08:25 +0200 by phpDocumentor 1.4.1