mirror of
https://github.com/wallabag/wallabag.git
synced 2024-10-31 22:28:54 +00:00
21 lines
475 B
PHP
21 lines
475 B
PHP
|
<?php
|
||
|
/**
|
||
|
* poche, a read it later open source system
|
||
|
*
|
||
|
* @category poche
|
||
|
* @author Nicolas Lœuillet <nicolas@loeuillet.org>
|
||
|
* @copyright 2013
|
||
|
* @license http://www.wtfpl.net/ see COPYING file
|
||
|
*/
|
||
|
|
||
|
class db {
|
||
|
var $handle;
|
||
|
function __construct($path) {
|
||
|
$this->handle = new PDO($path);
|
||
|
$this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||
|
}
|
||
|
|
||
|
public function getHandle() {
|
||
|
return $this->handle;
|
||
|
}
|
||
|
}
|