SofaDoc

SofaDoc Map Usage

inc/dba.php

Provides abstraction for DBA functions and implents a swDba class using Sqlite3
File also sets default $swDbaHandler to 'sqlite3'. You can change than in site/configuration.php.

Classes

swDba

Opens a database and returns it
@param $file path to file
@param $mode rdt, wdt, c...
@param $handler 'db', 'db4', 'sqlite3'

Methods

__construct($path)
firstKey()
nextKey()
exists($key)
fetch($key)
delete($key)
replace($key,$value)
sync()
close()
__destruct()
listDatabases()
count()

Properties

$path
$db
$rows
$journal

swPersistanceDba extends swPersistance

Last resort class if neither Sqlite nor dba functions are present

Methods

Properties

$dict

swDbaError extends

Holds an error class.

Methods

notify()

Properties

Used elements

Classes

SQLite3, swDbaError

Functions

echotime, swLog

Globals

$action, $lang, $name, $query, $swRoot, $username

Variables

$codelength, $error, $line, $lines, $message, $path, $result, $statement, $test, $value

Short variables: $err, $k, $key, $q, $r, $row, $v

Features

array, exception, math, sqlite3, str

Others

Exception