irm-1.6-b3/MDB/oci8.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_DATE:
                return(substr($value, 0, strlen('YYYY-MM-DD')));
            case MDB_TYPE_TIME:
                return(substr($value, strlen('YYYY-MM-DD '), strlen('HH:MI:SS')));
            default:
                return($this->_baseConvertResult($value, $type));
        }
    }
function convertResult ( $ value , $ type ) { switch ( $ type ) { case MDB_TYPE_DATE : return ( substr ( $ value , 0 , strlen ( 'YYYY-MM-DD' ) ) ) ; case MDB_TYPE_TIME : return ( substr ( $ value , strlen ( 'YYYY-MM-DD ' ) , strlen ( 'HH:MI:SS' ) ) ) ; default : return ( $ this -> _baseConvertResult ( $ value , $ type ) ) ; } }
convert a value to a RDBMS indepdenant MDB type
convert a value to a RDBMS indepdenant MDB type