irm-1.6-b3/MDB/mysql.php
/**
    * convert a value to a RDBMS indepdenant MDB type
    *
    * @param mixed  $value   value to be converted
    * @param int    $type    constant that specifies which type to convert to
    * @return mixed converted value
    * @access public
    */
convert a value to a RDBMS indepdenant MDB type
@param mixed  $value   value to be converted
@param int    $type    constant that specifies which type to convert to
@return mixed converted value
@access public
convert a value to a RDBMS indepdenant MDB type @param mixed $value value to be converted @param int $type constant that specifies which type to convert to @return mixed converted value @access public
function convertResult($value, $type)
    {
        switch($type) {
            case MDB_TYPE_DECIMAL:
                return(sprintf('%.'.$this->decimal_places.'f', doubleval($value)/$this->decimal_factor));
            default:
                return($this->_baseConvertResult($value, $type));
        }
    }
function convertResult ( $ value , $ type ) { switch ( $ type ) { case MDB_TYPE_DECIMAL : return ( sprintf ( '%.' . $ this -> decimal_places . 'f' , doubleval ( $ value ) / $ this -> decimal_factor ) ) ; default : return ( $ this -> _baseConvertResult ( $ value , $ type ) ) ; } }
convert a value to a RDBMS indepdenant MDB type
 @param mixed  $value   value to be converted
 @param int    $type    constant that specifies which type to convert to
 @return mixed converted value
 @access public
convert a value to a RDBMS indepdenant MDB type @param mixed $value value to be converted @param int $type constant that specifies which type to convert to @return mixed converted value @access public