C# Class PHP.Library.Data.PhpMyDbResult

Represents a result of a MySQL command.
Inheritance: PHP.Library.Data.PhpDbResult
显示文件 Open project: DEVSENSE/PhalangerMySql Class Usage Examples

Public Methods

Method Description
GetFieldFlags ( ) : ColumnFlags

Gets flags of the current field.

GetFieldFlags ( int fieldIndex ) : ColumnFlags

Gets flags of a specified field.

GetRealTableName ( int fieldIndex ) : string

field RealTableName

IsNumericType ( string phpName ) : bool

Determines whether a type of a specified PHP name is a numeric type.

PhpMyDbResult ( PHP.Library.Data.PhpDbConnection connection, IDataReader reader, bool convertTypes ) : System

Creates an instance of a result resource.

Protected Methods

Method Description
GetCustomData ( ) : object

Collect additional information about current row of Reader.

GetValues ( string dataTypes, bool convertTypes ) : object[]

Gets row values.

MapFieldTypeName ( string typeName ) : string

Maps MySQL .NET Connector's type name to the one displayed by PHP.

Private Methods

Method Description
ConvertDateTime ( string dataType, System.DateTime value ) : string
ConvertDbValue ( string dataType, object sqlValue ) : object

Converts a value of a specified MySQL DB type to PHP value.

ValidResult ( PHP.Core.PhpResource handle ) : PhpMyDbResult

Method Details

GetCustomData() protected method

Collect additional information about current row of Reader.
protected GetCustomData ( ) : object
return object

GetFieldFlags() public method

Gets flags of the current field.
public GetFieldFlags ( ) : ColumnFlags
return ColumnFlags

GetFieldFlags() public method

Gets flags of a specified field.
public GetFieldFlags ( int fieldIndex ) : ColumnFlags
fieldIndex int An index of the field.
return ColumnFlags

GetRealTableName() public method

field RealTableName
public GetRealTableName ( int fieldIndex ) : string
fieldIndex int
return string

GetValues() protected method

Gets row values.
protected GetValues ( string dataTypes, bool convertTypes ) : object[]
dataTypes string Data type names.
convertTypes bool Whether to convert value to PHP types.
return object[]

IsNumericType() public method

Determines whether a type of a specified PHP name is a numeric type.
public IsNumericType ( string phpName ) : bool
phpName string PHP type name.
return bool

MapFieldTypeName() protected method

Maps MySQL .NET Connector's type name to the one displayed by PHP.
protected MapFieldTypeName ( string typeName ) : string
typeName string MySQL .NET Connector's name.
return string

PhpMyDbResult() public method

Creates an instance of a result resource.
Argument is a null reference.
public PhpMyDbResult ( PHP.Library.Data.PhpDbConnection connection, IDataReader reader, bool convertTypes ) : System
connection PHP.Library.Data.PhpDbConnection Database connection.
reader IDataReader Data reader from which to load results.
convertTypes bool Whether to convert resulting values to PHP types.
return System