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

Source for file MarkPositions.php

Documentation is available at MarkPositions.php

  1. <?php
  2.  
  3. /**
  4.  * MarkPositions class
  5.  *
  6.  * Description: Series Marks Positions
  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 styles
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16. class MarkPositions extends ArrayObject
  17. {
  18.  
  19.    public function getPosition($index)
  20.    {
  21.       return($index sizeof($this)) $this->offsetget($indexnull;
  22.    }
  23.  
  24.    public function setPosition($index$value)
  25.    {
  26.       $this->offsetset($index$value);
  27.    }
  28.  
  29.    public function removeRange($startIndex$count)
  30.    {
  31.       parent::removeRange($startIndex$startIndex $count 1);
  32.    }
  33.  
  34.    /**
  35.    * Checks for Custom Marks.
  36.    *
  37.    * @return boolean true if Custom exists
  38.    */
  39.    public function existCustom()
  40.    {
  41.       for($t 0$t sizeof($this)$t++)
  42.       {
  43.          $m $this->getPosition($t);
  44.          if(($m != null&& $m->custom)
  45.          {
  46.             return true;
  47.          }
  48.       }
  49.       return false;
  50.    }
  51.  
  52.    public function clear()
  53.    {
  54.       unset($this);
  55.    }
  56. }
  57. ?>

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