irm-1.6-b3/MDB/Common.php
/**
     * convert a result row
     *
     * @param resource $result result identifier
     * @param array $row array with data
     * @return mixed MDB_OK on success,  a MDB error on failure
     * @access public
     */
convert a result row
@param resource $result result identifier
@param array $row array with data
@return mixed MDB_OK on success,  a MDB error on failure
@access public
convert a result row @param resource $result result identifier @param array $row array with data @return mixed MDB_OK on success a MDB error on failure @access public
function convertResultRow($result, $row)
    {
        $result_value = intval($result);
        if (isset($this->result_types[$result_value])) {
            $current_column = -1;
            foreach($row as $key => $column) {
                ++$current_column;
                if (!isset($this->result_types[$result_value][$current_column])
                   ||!isset($column)
                ) {
                    continue;
                }
                switch ($type = $this->result_types[$result_value][$current_column]) {
                    case MDB_TYPE_TEXT:
                    case MDB_TYPE_BLOB:
                    case MDB_TYPE_CLOB:
                        break;
                    case MDB_TYPE_INTEGER:
                        $row[$key] = intval($row[$key]);
                        break;
                    default:
                        $value = $this->convertResult($row[$key], $type);
                        if (MDB::isError($value)) {
                            return $value;
                        }
                        $row[$key] = $value;
                        break;
                }
            }
        }
        return ($row);
    }
function convertResultRow ( $ result , $ row ) { $ result_value = intval ( $ result ) ; if ( isset ( $ this -> result_types [ $ result_value ] ) ) { $ current_column = - 1 ; foreach ( $ row as $ key => $ column ) { ++ $ current_column ; if ( ! isset ( $ this -> result_types [ $ result_value ] [ $ current_column ] ) || ! isset ( $ column ) ) { continue ; } switch ( $ type = $ this -> result_types [ $ result_value ] [ $ current_column ] ) { case MDB_TYPE_TEXT : case MDB_TYPE_BLOB : case MDB_TYPE_CLOB : break ; case MDB_TYPE_INTEGER : $ row [ $ key ] = intval ( $ row [ $ key ] ) ; break ; default : $ value = $ this -> convertResult ( $ row [ $ key ] , $ type ) ; if ( MDB :: isError ( $ value ) ) { return $ value ; } $ row [ $ key ] = $ value ; break ; } } } return ( $ row ) ; }
convert a result row
 @param resource $result result identifier
 @param array $row array with data
 @return mixed MDB_OK on success,  a MDB error on failure
 @access public
convert a result row @param resource $result result identifier @param array $row array with data @return mixed MDB_OK on success a MDB error on failure @access public