]>
Commit | Line | Data |
---|---|---|
e46efced | 1 | <?php |
2 | /** | |
3 | * poche, a read it later open source system | |
4 | * | |
5 | * @category poche | |
6 | * @author Nicolas Lœuillet <nicolas@loeuillet.org> | |
7 | * @copyright 2013 | |
8 | * @license http://www.wtfpl.net/ see COPYING file | |
9 | */ | |
10 | ||
11 | class db { | |
12 | var $handle; | |
13 | function __construct($path) { | |
14 | $this->handle = new PDO($path); | |
15 | $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
16 | } | |
17 | ||
18 | public function getHandle() { | |
19 | return $this->handle; | |
20 | } | |
21 | } |