forked from PaddyMou/idb.php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiDB.php
40 lines (32 loc) · 828 Bytes
/
iDB.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Description of iDB.php
*
* Author moupeili <[email protected]>
* Date: 2012-08-21
* Time: 下午2:31
*/
require "helper/iDBConfig.php";
require "helper/iDBFileUtils.php";
require "helper/iDBBase.php";
require "helper/iDBPut.php";
require "helper/iDBGet.php";
require "helper/iDBDelete.php";
class iDB {
private $_path = "";
public function __construct($aPath) {
$this->_path = $aPath;
}
public function put($aKey , $aValue) {
$put = new iDBPut($this->_path , $aKey);
return $put->save($aValue);
}
public function get($aKey) {
$get = new iDBGet($this->_path , $aKey);
return $get->value();
}
public function delete($aKey) {
$delete = new iDBDelete($this->_path , $aKey);
return $delete->save();
}
}