PhpMyObject
[ class tree: PhpMyObject ] [ index: PhpMyObject ] [ all elements ]

Class: PMO_Dbms_Pdo

Source Location: /fichiers/v0.15/PMO_core/PMO_Dbms_Pdo.php

Class Overview

PMO_MyDbms
   |
   --PMO_Dbms_Pdo

This class implements a PDO driver.


Methods


Child classes:

PMO_Dbms_Sqlite
This class implements a Sqlite driver.

Inherited Variables

Inherited Methods

Class: PMO_MyDbms

PMO_MyDbms::delete()
deletes the data row corresponding to the PMO_Object from the database table All primary key must be fill.
PMO_MyDbms::factory()
returns a reference to the PMO_Dbms object If it does not already exists a new object is created and retained for future use
PMO_MyDbms::getDb()
Returns the DB link or DB object
PMO_MyDbms::getLog()
retrieves thee query verbose log
PMO_MyDbms::insert()
inserts new data into the database table corresponding to the PMO_Object all primary keys must be fill.
PMO_MyDbms::killInstance()
kills the current PMO_Dbms object
PMO_MyDbms::load()
Load a data row from the database and fills the PMO_Object with it
PMO_MyDbms::setDb()
Set the DB link or DB object
PMO_MyDbms::setLog()
sets the query verbose log
PMO_MyDbms::translateType()
converts the attribute types from database to PHP primary types: string, float, or int
PMO_MyDbms::update()
updates the database table corresponding to the PMO_Object All primary keys must be fill.

Class Details

[line 43]
This class implements a PDO driver.



[ Top ]


Class Methods


constructor __construct [line 45]

PMO_Dbms_Pdo __construct( [ $pdo = NULL])



Tags:

access:  public


Parameters:

PDO   $pdo  

[ Top ]

destructor __destruct [line 55]

void __destruct( )



Tags:

access:  public


[ Top ]

method beginTransaction [line 97]

void beginTransaction( )

begin a transaction with Dbms

only with pdo driver




Tags:

access:  public


[ Top ]

method commit [line 105]

void commit( )

commit the transaction with Dbms

only with pdo driver




Tags:

access:  public


[ Top ]

method connect [line 50]

void connect( $authdb)



Tags:

access:  public


Overridden in child classes as:

PMO_Dbms_Sqlite::connect()

Parameters:

array   $authdb  

[ Top ]

method fetchArray [line 69]

void fetchArray( )



Tags:

access:  public


[ Top ]

method getLastId [line 89]

void getLastId( )



Tags:

access:  public


[ Top ]

method getTableDesc [line 73]

void getTableDesc( $table)



Tags:

access:  public


Overridden in child classes as:

PMO_Dbms_Sqlite::getTableDesc()

Parameters:

   $table  

[ Top ]

method query [line 59]

void query( $query)



Tags:

access:  public


Parameters:

   $query  

[ Top ]

method rollback [line 113]

void rollback( )

rollback the transaction with Dbms

only with pdo driver




Tags:

access:  public


[ Top ]


Documentation generated on Wed, 15 Oct 2008 09:16:11 -0400 by phpDocumentor 1.4.1