Class: TMVC_PDO

Source Location: /tinymvc/sysfiles/plugins/db.TMVC_PDO.php

Class Overview [line 31]


TMVC_PDO

Author(s):

  • Monte Ohrt

Version:

Copyright:

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

TMVC_PDO

PDO database access compile PHP with --enable-pdo (default with PHP 5.1+)

Tags:

[ Top ]


Class Variables

$fetch_mode =  PDO::FETCH_ASSOC

[line 58]

$fetch_mode

the results fetch mode

Tags:

  • access - public

Type: mixed

Overrides:

[ Top ]

$pdo =  null

[line 40]

$pdo

the PDO object handle

Tags:

  • access - public

Type: mixed

Overrides:

[ Top ]

$result =  null

[line 49]

$result

the query result handle

Tags:

  • access - public

Type: mixed

Overrides:

[ Top ]


Class Methods

__construct

TMVC_PDO __construct( )

[line 65]

class constructor

Tags:

  • access - public

Parameters:

[ Top ]

__destruct

void __destruct( )

[line 276]

class destructor

Tags:

  • access - public

Parameters:

[ Top ]

getLike

void getLike( $likeArg)

[line 264]

Parameters:

  • $likeArg -

[ Top ]

lastInsertId

int lastInsertId( )

[line 245]

lastInsertId

get last insert id from previous query

Tags:

  • access - public

Parameters:

[ Top ]

next

void next( [int $fetch_mode = null])

[line 230]

next

go to next record in result set

Tags:

  • access - public

Parameters:

  • int $fetch_mode - the fetch formatting mode

[ Top ]

numRows

int numRows( )

[line 258]

numRows

get number of returned rows from previous select

Tags:

  • access - public

Parameters:

[ Top ]

query

void query( $query, [array $params = null], [int $fetch_mode = null])

[line 99]

query

execute a database query

Tags:

  • access - public

Parameters:

  • array $params - an array of query params
  • int $fetch_mode - the fetch formatting mode
  • $query -

[ Top ]

queryAll

void queryAll( $query, [array $params = null], [int $fetch_mode = null])

[line 113]

queryAll

execute a database query, return all records

Tags:

  • access - public

Parameters:

  • array $params - an array of query params
  • int $fetch_mode - the fetch formatting mode
  • $query -

[ Top ]

queryColumn

void queryColumn( $query, [ $params = null], [string $columnName = null])

[line 145]

queryColumn

execute a database query, returns the first or given column from all rows.

Parameters:

  • string $columnName - the column whose value to return. Defaults to the first column.
  • $query -
  • $params -

[ Top ]

queryRow

void queryRow( $query, [array $params = null], int $fetch_mode)

[line 174]

queryRow

execute a database query, return one record

Tags:

  • access - public

Parameters:

  • array $params - an array of query params
  • int $fetch_mode - the fetch formatting mode
  • $query -

[ Top ]

queryScalar

void queryScalar( $query, [ $params = null], [string $columnName = null])

[line 125]

queryScalar

execute a database query, return a single value

Parameters:

  • string $columnName - the column whose value to return. Defaults to the first column.
  • $query -
  • $params -

[ Top ]


Class Constants


Documentation generated on Tue, 26 May 2009 14:50:33 -0700 by phpDocumentor 1.4.1