phpPeanuts  2.2.0
phpPeanuts framework
 All Data Structures Namespaces Files Functions Variables
Public Member Functions
DatabaseConnection Class Reference

Inherits PntDatabaseConnection.

Public Member Functions

 connect ($host, $port, $username, $password, $dbName)
 
- Public Member Functions inherited from PntDatabaseConnection
 makeConnection ($qh=null, $makeDefault=true)
 
 setDsnPrefix ($value)
 
 setDsnBody ($value)
 
 setUsername ($value)
 
 setPassword ($value)
 
 setHost ($value)
 
 setPort ($value)
 
 setDatabaseName ($value)
 
 setCharset ($value)
 
 setDBSource ($value)
 
 getDsn ()
 
 getDsnPrefix ()
 
 getDsnBody ()
 
 getUsername ()
 
 getPassword ()
 
 getHost ()
 
 getPort ()
 
 getDatabaseName ()
 
 getDBSource ()
 
 getCharset ()
 

Additional Inherited Members

- Static Public Member Functions inherited from PntDatabaseConnection
static defaultConnection ($value=null)
 
- Data Fields inherited from PntDatabaseConnection
 $dsnPrefix ='mysql:'
 
 $dsnBody
 
 $username
 
 $password
 
 $host
 
 $port
 
 $databaseName
 
 $charset = 'latin1'
 
 $dbSource
 

Detailed Description

Instance of this class desrcibes a database connection.

This concrete subclass is here to keep de application developers code (including localization overrides) separated from the framework code.

See Also
http://www.phppeanuts.org/site/index_php/Menu/178 Framework code is in superclass. This class may be copied to an application folder to make application specific overrides.

Member Function Documentation

connect (   $host,
  $port,
  $username,
  $password,
  $dbName 
)

, only works with MySql. Use ::makeConnection or QueryHandler::connect


The documentation for this class was generated from the following file: