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_PDOWrapper

PDOWrapper provides extra methods to PDO. Of course you can use also PDO 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/PDOWrapper.php
Methods summary
public static Pinoco_PDOWrapper
# newInstance( string $dsn, string $un = "", string $pw = "", array $opts = array() )

Wrapped PDO factory.

Wrapped PDO factory.

Parameters

$dsn
string
$dsn
$un
string
$un
$pw
string
$pw
$opts
array
$opts

Returns

Pinoco_PDOWrapper
public
# __construct( string $dsn, string $un = "", string $pw = "", array $opts = array() )

Constructor

Constructor

Parameters

$dsn
string
$dsn
$un
string
$un
$pw
string
$pw
$opts
array
$opts
public string|callable|null
# getAfterConnection( )

Returns initialize process when connection would be created.

Returns initialize process when connection would be created.

Returns

string|callable|null
public
# setAfterConnection( string|callable|null $after_connection )

Sets initialize process when connection would be created.

Sets initialize process when connection would be created.

Parameters

$after_connection
string|callable|null
$after_connection
public PDO
# getConnection( )

Returns the database connection as PDO.

Returns the database connection as PDO.

Returns

PDO
public
# __call( mixed $name, mixed $args )
public Pinoco_PDOStatementWrapper
# prepare( string $sql, array $opts = array() )

This method provides wrapped prepared statement.

This method provides wrapped prepared statement.

Parameters

$sql
string
$sql
$opts
array
$opts

Returns

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

Alias to exec().

Alias to exec().

Parameters

$args,…
mixed
$args,...

Returns

integer
public Pinoco_PDOStatementWrapper
# query( string $sql )

This method provides wrapped statement already query sent.

This method provides wrapped statement already query sent.

Parameters

$sql
string
$sql

Returns

Pinoco_PDOStatementWrapper
Magic methods summary
public boolean
# beginTransaction( )

Returns

boolean
public boolean
# commit( )

Returns

boolean
public mixed
# errorCode( )

Returns

mixed
public array
# errorInfo( )

Returns

array
public integer
# exec( )

Returns

integer
public mixed
# getAttribute( )

Returns

mixed
public array
# getAvailableDrivers( )

Returns

array
public boolean
# inTransaction( )

Returns

boolean
public string
# lastInsertId( )

Returns

string
public string
# quote( integer $parameter_type = PDO::PARAM_STR )

Parameters

$parameter_type

Returns

string
public boolean
# rollBack( )

Returns

boolean
public boolean
# setAttribute( mixed $value = )

Parameters

$value

Returns

boolean
Magic properties summary
public mixed $afterConnection
#
public read-only PDO $connection
#
Pinoco 0.8.0 Documentation API documentation generated by ApiGen 2.8.0