Paperyard
|
handling database connection and queries More...
Public Member Functions | |
__construct () | |
takes care of basic db handling More... | |
query ($query) | |
function queries sqlite More... | |
exec ($query) | |
function executes sqlite More... | |
getActiveArchiveRules () | |
getActiveSenders () | |
getConfigValue ($varname) | |
getPersonalVariables () | |
getActiveSubjects () | |
getActiveRecipients () | |
writeLog ($oldName, $newName, $content, $log) | |
open () | |
opens database connection or creates file is not found More... | |
update () | |
checks if the database schema needs to be updated More... | |
close () | |
closes database connection More... | |
Public Member Functions inherited from ppyrd | |
__construct ($db) | |
constructor More... | |
checkCliVsWebserver () | |
output ($string, $debug=0) | |
outputs string More... | |
Public Attributes | |
$db | |
Public Attributes inherited from ppyrd | |
$db | |
handling database connection and queries
database handler
Definition at line 15 of file dbHandler.php.
dbHandler::__construct | ( | ) |
takes care of basic db handling
Definition at line 29 of file dbHandler.php.
dbHandler::close | ( | ) |
closes database connection
Definition at line 194 of file dbHandler.php.
dbHandler::exec | ( | $query | ) |
function executes sqlite
string | $query | to execute |
Definition at line 64 of file dbHandler.php.
dbHandler::getActiveArchiveRules | ( | ) |
dbHandler::getActiveRecipients | ( | ) |
dbHandler::getActiveSenders | ( | ) |
dbHandler::getActiveSubjects | ( | ) |
dbHandler::getConfigValue | ( | $varname | ) |
gets config values
string | $varname | to query |
Definition at line 97 of file dbHandler.php.
dbHandler::getPersonalVariables | ( | ) |
gets all personal variables
none |
Definition at line 112 of file dbHandler.php.
dbHandler::open | ( | ) |
opens database connection or creates file is not found
Definition at line 151 of file dbHandler.php.
dbHandler::query | ( | $query | ) |
function queries sqlite
string | $query | to execute |
Definition at line 47 of file dbHandler.php.
dbHandler::update | ( | ) |
checks if the database schema needs to be updated
Definition at line 163 of file dbHandler.php.
dbHandler::writeLog | ( | $oldName, | |
$newName, | |||
$content, | |||
$log | |||
) |
writes to logs
string | $oldName | name of the old file |
string | $newName | of the file |
string | $content | of the file |
string | $log | message |
Definition at line 141 of file dbHandler.php.
dbHandler::$db |
Definition at line 24 of file dbHandler.php.