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

Source for file DataImportFormat.php

Documentation is available at DataImportFormat.php

  1. <?php
  2.  
  3.  /**
  4.  * DataImportFormat class
  5.  *
  6.  * Description: Chart data import
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @subpackage imports
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16.  class DataImportFormat {
  17.  
  18.     public /*protected*/ $chart;
  19.     protected $series;
  20.     protected $stream;
  21.  
  22.     // Interceptors
  23.     function __get$property {
  24.       $method ="get{$property}";
  25.       if method_exists$this$method ) ) {
  26.         return $this->$method();
  27.       }
  28.     }
  29.  
  30.     function __set $property,$value {
  31.       $method ="set{$property}";
  32.       if method_exists$this$method ) ) {
  33.         return $this->$method($value);
  34.       }
  35.     }
  36.  
  37.     /** Creates a new instance of DataImportFormat */
  38.     public function DataImportFormat($c=null,$s=null{
  39.         $this->chart $c;
  40.         if ($s!=null)
  41.             $this->series = $s;
  42.     }
  43.  
  44.  
  45.     public function openFile($file)
  46.     {
  47.         $this->open($file);
  48.     }
  49.  
  50. /*
  51.     public function openFileName($fileName) /* TODO throws FileNotFoundException,
  52.                 IOException, ClassNotFoundException {
  53.             BufferedInputStream bf=new BufferedInputStream(new FileInputStream(fileName));
  54.             open(bf);
  55.     }
  56.  
  57.     public function openFile($file) throws FileNotFoundException,
  58.                         IOException, ClassNotFoundException {
  59.             open(file.getPath());
  60.     }
  61.  
  62.     /*override this method
  63.     public function openStream($stream) throws IOException,
  64.                         ClassNotFoundException {
  65.     }                     */
  66. }
  67. ?>

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