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

Class: Database

Source Location: /includes/database/database.php

Class Overview


Database Class
The database class is the container class for all database connectivity and functions.


Author(s):

Version:

  • Build 0.7

Copyright:

  • Copyright 2004, Kristen O'Brien

Variables

Methods



Class Details

[line 110]
Database Class
The database class is the container class for all database connectivity and functions.

Includes specific files based on current file directory and creates classes based on specified name.




Tags:

since:  Build 0.5
version:  Build 0.7
link:  Paristemi Main Site
license:  GNU Public License
copyright:  Copyright 2004, Kristen O'Brien
author:  Kristen O'Brien <kristen_paristemi-com>


[ Top ]


Class Variables

$Link =

[line 111]


Type:   mixed


[ Top ]



Class Methods


constructor Database [line 118]

Database Database( )

Opens a connection to the database.


Example:

  1. $db = new Database();




[ Top ]

method Close [line 131]

void Close( )

Only needed if you want to reconnect to a different database. Otherwise the call to mysql_close() occurs when the connection dies.



[ Top ]

method Error [line 141]

void Error( mixed $str)

For internal use.


Example:

  1. $this->Error('some string');




[ Top ]

method GetClass [line 150]

mixed GetClass( string $classname)

Get the database class object for the specified class name.



Tags:

return:  The class object for the specified name.


Parameters:

string   $classname   The lowercase class name without the preceding "DB_".

[ Top ]


Documentation generated on Mon, 10 May 2004 12:08:09 -0700 by phpDocumentor 1.3.0RC3