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

Class: Database

Source Location: /Database.php

Class Overview


Manages connection to database, supports mysql and sqlite


Variables

Methods



Class Details

[line 9]
Manages connection to database, supports mysql and sqlite



[ Top ]


Class Variables

static $resource =

[line 21]

Database resource



Tags:

access:  protected

Type:   resource


[ Top ]

static $type =

[line 15]

Type of used database (mysql or sqlite)



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


static method arrayQuery [line 81]

static array arrayQuery( $query $query)

Executes a query and returns result as array



Tags:

access:  public


Parameters:

$query   $query  

[ Top ]

static method decode [line 138]

static void decode( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

static method error [line 129]

static unknown_type error( )

Returns last sql error message



Tags:

access:  public


[ Top ]

static method escape [line 144]

static void escape( $string)



Tags:

access:  public


Parameters:

   $string  

[ Top ]

static method lastId [line 116]

static unknown_type lastId( )

Returns id of last inserted (updated) row



Tags:

access:  public


[ Top ]

static method query [line 51]

static array query( $query $query, [ $oneQuery = false])

Executes a query and returns result as array



Tags:

access:  public


Parameters:

$query   $query  
   $oneQuery  

[ Top ]

static method setSettings [line 31]

static void setSettings( $type $type, $usernameOrPath $usernameOrPath, [$host $host = NULL], [$password $password = NULL], [$database $database = NULL])

Creates db connection



Tags:

access:  public


Parameters:

$type   $type  
$usernameOrPath   $usernameOrPath  
$host   $host  
$password   $password  
$database   $database  

[ Top ]


Documentation generated on Sat, 22 May 2010 23:40:53 +0200 by phpDocumentor 1.4.1