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

Source for file ValuesLists.php

Documentation is available at ValuesLists.php

  1. <?php
  2.  
  3. /**
  4.  * ValuesLists class
  5.  *
  6.  * Description: ValueLists is a collection of ValueList objects.
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2010 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @subpackage styles
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16.  class ValuesLists extends ArrayObject {
  17.  
  18.     // Interceptors
  19.     function __get$property {
  20.       $method ="get{$property}";
  21.       if method_exists$this$method ) ) {
  22.         return $this->$method();
  23.       }
  24.     }
  25.  
  26.     function __set $property,$value {
  27.       $method ="set{$property}";
  28.       if method_exists$this$method ) ) {
  29.         return $this->$method($value);
  30.       }
  31.     }
  32.  
  33.     public function getValueList($index{
  34.         return parent::offsetGet($index);
  35.     }
  36.  
  37.     public function indexOf($value{
  38.         for $t 0$t sizeof($this)$t++{
  39.             if ($this->getValueList($t== $value{
  40.                 return $t;
  41.             }
  42.         }
  43.         return -1;
  44.     }
  45. }
  46. ?>

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