[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/library/ezc/Graph/src/datasets/property/ -> color.php (source)

   1  <?php
   2  /**
   3   * File containing the abstract ezcGraphDataSetColorProperty class
   4   *
   5   * @package Graph
   6   * @version 1.5
   7   * @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
   8   * @license http://ez.no/licenses/new_bsd New BSD License
   9   */
  10  /**
  11   * Class for color properties of datasets
  12   *
  13   * This class is used to store properties for datasets, which should be
  14   * validated as objects extending the ezcGraphColor class.
  15   *
  16   * For a basic usage example of those dataset properties take a look at the API
  17   * documentation of the ezcGraphDataSetProperty class.
  18   *
  19   * @version 1.5
  20   * @package Graph
  21   */
  22  class ezcGraphDataSetColorProperty extends ezcGraphDataSetProperty
  23  {
  24      /**
  25       * Converts value to an {@link ezcGraphColor} object
  26       * 
  27       * @param & $value 
  28       * @return void
  29       */
  30      protected function checkValue( &$value )
  31      {
  32          $value = ezcGraphColor::create( $value );
  33          return true;
  34      }
  35  }
  36  
  37  ?>


Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7