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

Class: DbMySQL

Source Location: /class.DbMySQL.php

Class Overview




Author(s):

  • tomas@netatbiz.com

Version:

  • 0.1

Copyright:

  • http://www.netatbiz.com

Variables

Methods


Child classes:


Class Details

[line 10]


Tags:

version:  0.1
author:  tomas@netatbiz.com
copyright:  http://www.netatbiz.com


[ Top ]


Class Variables

$doNotSanitize = array
            (
                "NOW()",
                "CURDATE()",
                "CURTIME()",
            )

[line 13]



Tags:

static:  
access:  public

Type:   mixed


[ Top ]



Class Methods


method colExists [line 151]

bool colExists( string $table, string $col)

Checks if column exists in table



Tags:

static:  
access:  public


Parameters:

string   $table   table name
string   $col   column name

[ Top ]

method connect [line 20]

void connect( mixed $connData)



Tags:

access:  public
static:  


[ Top ]

method dbExists [line 164]

bool dbExists( string $dbname)

Checks if database exists



Tags:

access:  public


Parameters:

string   $dbname   database name to check

[ Top ]

method fetch [line 52]

array fetch( object $resource)

feches resource



Tags:

access:  public
static:  


Parameters:

object   $resource   sql resource

[ Top ]

method fieldize [line 76]

void fieldize( mixed $field)



Tags:

access:  public
static:  


[ Top ]

method free [line 140]

void free( object $result)

frees mysql result



Tags:

static:  
access:  public


Parameters:

object   $result  

[ Top ]

method getArray [line 57]

void getArray( mixed $query)



Tags:

access:  public


[ Top ]

method insert [line 83]

void insert( mixed $table, [mixed $data = array()])



Tags:

access:  public
static:  


[ Top ]

method query [line 38]

void query( mixed $sql)



Tags:

access:  public
static:  


[ Top ]

method sanitize [line 68]

void sanitize( mixed $var)



Tags:

access:  public
static:  


[ Top ]

method setDb [line 32]

void setDb( string $name)

sets database



Tags:

access:  public


Parameters:

string   $name   database name

[ Top ]

method tableExists [line 122]

bool tableExists( string $dtb, string $table)

Checks if table exists



Tags:

access:  public


Parameters:

string   $dtb   database name
string   $table   table name

[ Top ]

method update [line 103]

void update( mixed $table, [mixed $values = array()], [mixed $condition = ''])



Tags:

access:  public
static:  


[ Top ]


Documentation generated on Wed, 19 Jan 2005 20:09:34 +0200 by phpDocumentor 1.3.0RC3