-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHandlerSocket.php
125 lines (116 loc) · 2.65 KB
/
HandlerSocket.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
abstract class HandlerSocket
{
const PRIMARY = 1;
/**
* Creates a new HandlerSocket object
*
* @param string $host
* @param string $port
* @param array $options
*/
abstract public function __construct($host, $port, array $options = array());
/**
* Before executing table operations, you need to open an index to work with.
*
* @param integer $id
* @param string $db
* @param string $table
* @param string $index
* @param string $fields
*
* @return boolean
*/
public function openIndex($id, $db, $table, $index, $fields)
{
;
}
/**
* To read or insert or update or delete record from a table using an index.
*
* @param integer $id
* @param string $op
* @param array $fields
* @param integer $limit
* @param integer $skip
* @param string $modop
* @param array $values
* @param array $filters
* @param integer $invalues_key
* @param array $invalues
*
* @return mixed
*/
public function executeSingle($id, $op, $fields, $limit = 0, $skip = 0, $modop = null, $values = array(), $filters = array(), $invalues_key = 0, $invalues = array())
{
;
}
/**
* Multiple operations can be executed in a single call.
*
* @param array $requests
* @return mixed
*/
public function executeMulti($requests)
{
;
}
/**
* To update a record from a table using an index.
*
* @param integer $id
* @param string $op
* @param array $fields
* @param array $values
* @param integer $limit
* @param integer $skip
* @param array $filters
* @param integer $invalues_key
* @param array $invalues
*
* @return mixed
*/
public function executeUpdate($id, $op, $fields, $values, $limit = 0, $skip = 0, $filters = array(), $invalues_key = 0, $invalues = array())
{
;
}
/**
* To delete a record from a table using an index.
*
* @param integer $id
* @param string $op
* @param array $fields
* @param integer $limit
* @param integer $skip
* @param array $filters
* @param integer $invalues_key
* @param array $invalues
*
* @return mixed
*/
public function executeDelete($id, $op, $fields, $limit = 0, $skip = 0, $filters = array(), $invalues_key = 0, $invalues = array())
{
;
}
/**
* To insert a record from a table using an index.
*
* @param integer $id
* @param array $values
*
* @return mixed
*/
public function executeInsert($id, $values)
{
;
}
/**
* Get last error messge.
*
* @return string
*/
public function getError()
{
;
}
}