The Hubzilla
 All Classes Namespaces Files Functions Variables Pages
DBA Class Reference

Static Public Member Functions

static dba_factory ($server, $port, $user, $pass, $db, $dbtype, $install=false)
 Returns the database driver object. More...
 

Static Public Attributes

static $dba = null
 
static $dbtype = null
 
static $scheme = 'mysql'
 
static $logging = false
 
static $install_script = 'schema_mysql.sql'
 
static $null_date = '0001-01-01 00:00:00'
 
static $utc_now = 'UTC_TIMESTAMP()'
 
static $tquot = "`"
 

Member Function Documentation

static DBA::dba_factory (   $server,
  $port,
  $user,
  $pass,
  $db,
  $dbtype,
  $install = false 
)
static

Returns the database driver object.

Parameters
string$serverDB server name (or PDO dsn - e.g. mysqli:foobar.com;)
string$portDB port
string$userDB username
string$passDB password
string$dbdatabase name
string$dbtype0 for mysql, 1 for postgres
bool$installDefaults to false
Returns
null|dba_driver A database driver object (dba_pdo) or null if no driver found.

Referenced by Zotlabs\Module\Setup\post(), and sys_boot().

Member Data Documentation

DBA::$dbtype = null
static

Referenced by dba_factory().

DBA::$install_script = 'schema_mysql.sql'
static
DBA::$logging = false
static

Referenced by call_hooks().

DBA::$null_date = '0001-01-01 00:00:00'
static
DBA::$scheme = 'mysql'
static
DBA::$tquot = "`"
static
DBA::$utc_now = 'UTC_TIMESTAMP()'
static

The documentation for this class was generated from the following file: