Overview

Packages

  • Admin
  • Archive
  • Common
  • DB
  • Express
  • Form
  • Layout
  • Mailer
  • None
  • OpenHomeoDB
  • PDF
    • MC
  • Process
  • Rep
  • RevRep
  • SaveReps
  • Search
  • Session
  • SymRem
  • TreeView
  • UserDB

Classes

  • DB
  • Overview
  • Package
  • Class
  • Tree

Class DB

Database wrapper class

The DB class allow easy and clean access to common database commands. At the moment there're drivers for PHP mysql and mysqli.

DbPlugin
Extended by DB

Direct known subclasses

OpenHomeoDB

Indirect known subclasses

UserDB
Package: DB
Category: Database
Copyright: 2007-2014 Henri Schumacher
License: GNU Affero General Public License v3
Author: Henri Schumacher <henri.hulski@gazeta.pl>
Located at include/classes/db/db.php
Methods summary
public array
# db_fetch_row( )

db_fetch_row works analog to mysql_fetch_row

db_fetch_row works analog to mysql_fetch_row

Returns

array
SQL result as numeric array
public array
# db_fetch_assoc( )

db_fetch_assoc works analog to mysql_fetch_assoc

db_fetch_assoc works analog to mysql_fetch_assoc

Returns

array
SQL result as associative array
public boolean
# reset_result( )

reset_result resets the SQL result, so that the result pointer is on the first element.

reset_result resets the SQL result, so that the result pointer is on the first element.

Returns

boolean
Returns true on success or false on failure.
public resource
# send_query_limit( )

send_query_limit is used for pagination of the SQL result

send_query_limit is used for pagination of the SQL result

Returns

resource
SQL result
public string|false
# get_primary_key( string $table )

get_primary_key returns the primary key of a SQL table or false if not available

get_primary_key returns the primary key of a SQL table or false if not available

Parameters

$table
string
$table SQL table

Returns

string|false
Returns the primary key or false if no primary key is defined
public boolean
# table_exists( string $table )

table_exists checks if a table exists in the database

table_exists checks if a table exists in the database

Parameters

$table
string
$table SQL table

Returns

boolean
Returns true if table exists or false otherwise.
OpenHomeopath PHP code documentation API documentation generated by ApiGen 2.8.0