private array $typeMap = array (
'numeric' => 'int',
'int2' => 'int',
'int4' => 'int',
'int8' => 'int',
'float8' => 'float',
'timestamp' => 'Hazaar\\DateTime',
'timestamptz' => 'Hazaar\\DateTime',
'date' =>
array (
0 => 'Hazaar\\DateTime',
1 =>
array (
'format' => 'Y-m-d',
),
),
'bool' => 'boolean',
'money' => 'Hazaar\\Money',
'bytea' =>
array (
0 => 'string',
1 =>
array (
'prepare' => 'stream_get_contents',
),
),
)
public __construct(\PDOStatement $statement): void
Parameter | Type | Description |
---|
$statement | \PDOStatement | |
public toString(): string
public columnCount(): int
public fetch(int $fetchStyle = '\PDO::FETCH_ASSOC', int $cursorOrientation = '\PDO::FETCH_ORI_NEXT', int $cursorOffset = 0, false $): void
Parameter | Type | Description |
---|
$fetchStyle | int | |
$cursorOrientation | int | |
$cursorOffset | int | |
$ | false | |
public fetchAll(int $fetchMode = '\PDO::FETCH_ASSOC', mixed $fetchArgument): void
Parameter | Type | Description |
---|
$fetchMode | int | |
$fetchArgument | mixed | |
public fetchColumn(int $columnNumber = 0): mixed
Parameter | Type | Description |
---|
$columnNumber | int | |
public fetchObject(string $className = 'stdClass', array $constructorArgs = []): object
Parameter | Type | Description |
---|
$className | string | |
$constructorArgs | array | |
private processStatement(\PDOStatement $statement): bool
Parameter | Type | Description |
---|
$statement | \PDOStatement | |
Generated by Hazaar API Doc Generator