示例#1
0
 /**
  * Create a DateData preprocessor [Constructor]
  *
  * @param string $format See  {@link http://www.php.net/manual/en/function.date.php
  *   PHP Manual} for a description
  */
 function Image_Graph_DataPreprocessor_Date($format)
 {
     parent::__construct();
     $this->_format = $format;
 }
示例#2
0
 /**
  * Image_Graph_NumberText [Constructor].
  *
  * Supported languages see {@link http://pear.php.net/package/Numbers_Words Numbers_Words}
  *
  * @param string $langugage The language identifier for the language.
  */
 function Image_Graph_DataPreprocessor_NumberText($language = 'en_US')
 {
     parent::Image_Graph_DataPreprocessor();
     $this->_language = $language;
     require_once 'Numbers/Words.php';
 }
示例#3
0
 /**
  * Image_Graph_ArrayData [Constructor].
  *
  * @param array $array The array to use as a lookup table
  */
 function Image_Graph_DataPreprocessor_Array($array)
 {
     parent::__construct();
     $this->_dataArray = $array;
 }
 /**
  * Create a RomanNumerals preprocessor
  *
  * See {@link http://pear.php.net/package/Numbers_Roman Numbers_Roman}
  */
 function Image_Graph_DataPreprocessor_RomanNumerals()
 {
     parent::__construct();
     include_once 'Numbers/Roman.php';
 }
示例#5
0
 /**
  * Create a (s)printf format data preprocessor
  *
  * @param string $format See {@link http://www.php.net/manual/en/function.sprintf.php
  *   PHP Manual} for a description
  */
 function Image_Graph_DataPreprocessor_Formatted($format)
 {
     parent::Image_Graph_DataPreprocessor();
     $this->_format = $format;
 }
示例#6
0
 /**
  * Create a FunctionData preprocessor
  *
  * @param string $function The name of the PHP function to use as
  *   a preprocessor, this function must take a single parameter and return a
  *   formatted version of this parameter
  */
 function Image_Graph_DataPreprocessor_Function($function)
 {
     parent::Image_Graph_DataPreprocessor();
     $this->_dataFunction = $function;
 }
 /**
  * Create a (s)printf format data preprocessor
  *
  * @param string $format See {@link http://www.php.net/manual/en/function.sprintf.php
  *   PHP Manual} for a description
  */
 function __construct($format)
 {
     parent::__construct();
     $this->_format = $format;
 }
示例#8
0
 /**
  * Create a FunctionData preprocessor
  * @param string $function The name of the PHP function to use as a preprocessor, this function must take a single parameter
  * and return a formatted version of this parameter 
  */
 function &Image_Graph_DataPreprocessor_Function($function)
 {
     parent::__construct();
     $this->_dataFunction = $function;
 }
 /**
  * Create a RomanNumerals preprocessor
  *
  * See {@link http://pear.php.net/package/Numbers_Roman Numbers_Roman}
  */
 function __construct()
 {
     parent::__construct();
     include_once 'Numbers/Roman.php';
 }
示例#10
0
 /**
  * Image_Graph_ArrayData [Constructor].
  *
  * @param array $array The array to use as a lookup table
  */
 function __construct($array)
 {
     parent::__construct();
     $this->_dataArray = $array;
 }
 /**
  * Image_Graph_NumberText [Constructor].
  *
  * Supported languages see {@link http://pear.php.net/package/Numbers_Words Numbers_Words}
  *
  * @param string $language The language identifier for the language.
  */
 function Image_Graph_DataPreprocessor_NumberText($language = 'en_US')
 {
     parent::__construct();
     $this->_language = $language;
     include_once 'Numbers/Words.php';
 }
示例#12
0
 /**
  * Create a FunctionData preprocessor
  *
  * @param string $function The name of the PHP function to use as
  *   a preprocessor, this function must take a single parameter and return a
  *   formatted version of this parameter
  */
 function __construct($function)
 {
     parent::__construct();
     $this->_dataFunction = $function;
 }
示例#13
0
 /**
  * Image_Graph_NumberText [Constructor].
  *
  * Supported languages see {@link http://pear.php.net/package/Numbers_Words Numbers_Words}
  *
  * @param string $langugage The language identifier for the language.
  */
 function __construct($language = 'en_US')
 {
     parent::__construct();
     $this->_language = $language;
     require_once 'Numbers/Words.php';
 }