User Tools

Site Tools


Sidebar

Dokumentation

vortex:apidoc:dbi

DBI

DBI

Filename : /classes/dbi/dbi.php
Extends :

Description

Class to handle creation of new DBI:s and DBI specific functions

Fields

Methods

createDBI

Definition : public static function createDBI( $id, $name, $path, $database, $dbuser, $dbpassword, $dbhost, $dbtype )

Returns :

Description
Method for creating a new DBI. Making a config for the DBI, creating the directories needed and adding the DBI to the Vortex configuration.

Parameters

$database

Type : String
Default value :

Description
Database to connect the DBI to.

$dbhost

Type : String
Default value :

Description
Host for the database connection

$dbpassword

Type : String
Default value :

Description
Password for the database user

$dbtype

Type : String
Default value : mysqli

Description
Type of database to connect to

$dbuser

Type : String
Default value :

Description
Database user

$id

Type : String
Default value :

Description
ID of the DBI, must be unique in the Vortex instance.

$name

Type : String
Default value :

Description
Name of the DBI, presented in the DBI chooser.

$path

Type : String
Default value :

Description
Absolute or relative path to the DBI.

outLn( $string )

Definition : public function outLn( $string )

Returns :

Description
Method to output data to the screen. Will print the supplied string.

Parameters

$string

Type : String
Default value :

Description
String to print

vortex/apidoc/dbi.txt · Last modified: 2019/06/28 07:06 by hubbe