C# Class PHP.Library.Data.PhpMyDbResult

Represents a result of a MySQL command.
Inheritance: PHP.Library.Data.PhpDbResult
Afficher le fichier Open project: DEVSENSE/PhalangerMySql Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

Collect additional information about current row of Reader.
protected GetCustomData ( ) : object
Résultat object

GetFieldFlags() public méthode

Gets flags of the current field.
public GetFieldFlags ( ) : ColumnFlags
Résultat ColumnFlags

GetFieldFlags() public méthode

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

GetRealTableName() public méthode

field RealTableName
public GetRealTableName ( int fieldIndex ) : string
fieldIndex int
Résultat string

GetValues() protected méthode

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

IsNumericType() public méthode

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

MapFieldTypeName() protected méthode

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.
Résultat string

PhpMyDbResult() public méthode

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.
Résultat System