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

Class: Database

Source Location: /databases/Database.class.php

Class Overview




Author(s):

Version:

  • 0.1.44

Copyright:

  • Copyright (C) 2003 Daniel Plücken <daniel@debakel.net>

    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Variables

Methods


Child classes:


Class Details

[line 29]


Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  0.1.44
copyright:  

Copyright (C) 2003 Daniel Plücken <daniel@debakel.net>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

license:  GNU Lesser General Public License


[ Top ]


Class Variables

$dbt =

[line 44]

Carries the databasetable's objects of this database.



Tags:

access:  private

Type:   array


[ Top ]

$error_callback =  null

[line 73]

Carries the name of a function which has to be invoked on a connection error.



Tags:

access:  public

Type:   function


[ Top ]

$last_query =

[line 65]

The last stored databasequery.



Tags:

access:  public

Type:   string


[ Top ]

$name =

[line 37]

The name of this database.



Tags:

access:  public

Type:   string


[ Top ]

$parent =

[line 58]

Refers to the databasehost in which this database lies.



Tags:

access:  public

Type:   object


[ Top ]

$view =

[line 51]

Carryies the view's objects of this database.



Tags:

access:  private

Type:   array


[ Top ]



Class Methods


constructor Database [line 87]

Database Database( string $name, [object $parent = ""])

Constructor



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  0.1.0
access:  public


Parameters:

string   $name  
object   $parent  

[ Top ]

method addDBT [line 132]

void addDBT( &$dbt_obj, object $dbt_obj)

Adds a databasetable's reference to this object of a database.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  0.1.0
access:  public


Parameters:

object   $dbt_obj  
   &$dbt_obj  

[ Top ]

method addView [line 175]

void addView( &$view_obj, object $view_obj)

Adds a view's reference to this object of a database.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  0.1.2
access:  public


Parameters:

object   $view_obj  
   &$view_obj  

[ Top ]

method getDatabase [line 240]

string getDatabase( )

Returns the databasename.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


[ Top ]

method getDatabaseTables [line 212]

string &getDatabaseTables( )

Returns the array of references to the databasetables.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


[ Top ]

method getLastQuery [line 268]

array getLastQuery( )

Returns the last stored database query.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.3
access:  public


[ Top ]

method getName [line 254]

string getName( )

Returns the databasename. This method is an alias for the method getDatabase()



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
access:  public


[ Top ]

method getResourceID [line 320]

object &getResourceID( )

Returns the id of the connection resource to the database host.



Tags:

version:  1.0
since:  0.1.44
access:  public


[ Top ]

method getViews [line 226]

string &getViews( )

Returns the array of references to the views.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.2
access:  public


[ Top ]

method setErrorCallback [line 118]

void setErrorCallback( string $function_name_str)

Sets the name of the function that should be invoked on a connection error.

The function to call back has to have two parameter. The first parameter is for the error code. The second one contains the errordescription.




Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.43
access:  public


Parameters:

string   $function_name_str  

[ Top ]

method setParent [line 283]

void setParent( object &$obj_ref)

Sets the parent of this object.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.2
since:  0.1.1
access:  public


Parameters:

object   &$obj_ref  

[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:10:33 +0200 by phpDocumentor 1.4.1