Overview

Packages

  • Pinoco
    • PAL

Classes

  • Pinoco
  • Pinoco_Delegate
  • Pinoco_DynamicVars
  • Pinoco_HttpRequestVars
  • Pinoco_List
  • Pinoco_MIMEType
  • Pinoco_NativeRenderer
  • Pinoco_NothingVars
  • Pinoco_NullRenderer
  • Pinoco_OptionalParam
  • Pinoco_Pagination
  • Pinoco_PDOStatementWrapper
  • Pinoco_PDOWrapper
  • Pinoco_Renderer
  • Pinoco_Router
  • Pinoco_TALRenderer
  • Pinoco_TestEnvironment
  • Pinoco_Validator
  • Pinoco_ValidatorContext
  • Pinoco_Vars

Interfaces

  • Pinoco_ArrayConvertible

Functions

  • __pinoco_autoload_impl
  • Overview
  • Package
  • Class
  • Tree

Class Pinoco_PDOStatementWrapper

PDO Statement wrapper overrides PDO statement object. You can use also native functions.

Package: Pinoco
Copyright: Copyright 2010-2012, Hisateru Tanaka <tanakahisateru@gmail.com>
License: License (http://www.opensource.org/licenses/mit-license.php)
Author: Hisateru Tanaka <tanakahisateru@gmail.com>
Located at Pinoco/PDOStatementWrapper.php
Methods summary
public
# __construct( PDOStatement $stmt )

Constructor

Constructor

Parameters

$stmt
PDOStatement
$stmt
public
# __call( mixed $name, mixed $args )
public integer
# execute( mixed $args,… )

Executes prepared query with parameters.
No arguments: no-params.
Single argument:
array or array like: expanded as params. (both of map and seq)
array incompatible: applied as single argument.
Multiple arguments: applied to params as is. (only sequential)

Executes prepared query with parameters. No arguments: no-params. Single argument: array or array like: expanded as params. (both of map and seq) array incompatible: applied as single argument. Multiple arguments: applied to params as is. (only sequential)

Parameters

$args,…
mixed
$args,...

Returns

integer
public integer
# exec( mixed $args,… )

Alias to execute.

Alias to execute.

Parameters

$args,…
mixed
$args,...

Returns

integer
public Pinoco_PDOStatementWrapper
# query( mixed $args,… )

Calls execute and returns self.

Calls execute and returns self.

Parameters

$args,…
mixed
$args,...

Returns

Pinoco_PDOStatementWrapper
public Pinoco_Vars|boolean
# fetch( integer $orientation = PDO::FETCH_ORI_NEXT, integer $offset = 0 )

Fetches the next row in result set. If false returned, you should close cursor using closeCursor().

Fetches the next row in result set. If false returned, you should close cursor using closeCursor().

Parameters

$orientation
integer
$orientation
$offset
integer
$offset

Returns

Pinoco_Vars|boolean
public Pinoco_List
# fetchAll( )

Fetches all results.

Fetches all results.

Returns

Pinoco_List
public Pinoco_Vars
# fetchOne( )

Fetches single result.

Fetches single result.

Returns

Pinoco_Vars
Magic methods summary
public boolean
# bindColumn( mixed & $param = , integer $type = , integer $maxlen = , mixed $driverdata = )

Parameters

$param
integer
$type
$type
integer
$maxlen
$maxlen
mixed
$driverdata
$driverdata

Returns

boolean
public boolean
# bindParam( mixed & $variable = , integer $data_type = PDO::PARAM_STR, integer $length = , mixed $driver_options = )

Parameters

$variable
integer
$data_type
$data_type
integer
$length
$length
mixed
$driver_options
$driver_options

Returns

boolean
public boolean
# bindValue( mixed $value = , integer $data_type = PDO::PARAM_STR )

Parameters

$value
integer
$data_type
$data_type

Returns

boolean
public boolean
# closeCursor( )

Returns

boolean
public integer
# columnCount( )

Returns

integer
public boolean
# debugDumpParams( )

Returns

boolean
public string
# errorCode( )

Returns

string
public array
# errorInfo( )

Returns

array
public string
# fetchColumn( )

Returns

string
public mixed
# fetchObject( array $ctor_args = )

Parameters

$ctor_args

Returns

mixed
public mixed
# getAttribute( )

Returns

mixed
public array
# getColumnMeta( )

Returns

array
public boolean
# nextRowset( )

Returns

boolean
public integer
# rowCount( )

Returns

integer
public boolean
# setAttribute( )

Returns

boolean
public boolean
# setFetchMode( )

Returns

boolean
Magic properties summary
public read-only string $queryString
#
Pinoco 0.8.0 Documentation API documentation generated by ApiGen 2.8.0