You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
374 B
PHTML
22 lines
374 B
PHTML
7 years ago
|
<?php
|
||
|
|
||
|
namespace DataAccess;
|
||
|
|
||
|
|
||
|
use Exception;
|
||
|
|
||
|
class CommonDao {
|
||
|
/**
|
||
|
* @throws Exception if the database isn't properly configured
|
||
|
*/
|
||
|
function init() {
|
||
|
if (!function_exists('hesk_dbConnect')) {
|
||
|
throw new Exception('Database not loaded!');
|
||
|
}
|
||
|
hesk_dbConnect();
|
||
|
}
|
||
|
|
||
|
function close() {
|
||
|
hesk_dbClose();
|
||
|
}
|
||
|
}
|