1 | <?php |
||
20 | class Update extends Common\Update implements Common\OrderByInterface, Common\LimitOffsetInterface |
||
21 | { |
||
22 | /** |
||
23 | * |
||
24 | * Adds or removes OR ABORT flag. |
||
25 | * |
||
26 | * @param bool $enable Set or unset flag (default true). |
||
27 | * |
||
28 | * @return $this |
||
29 | * |
||
30 | */ |
||
31 | 1 | public function orAbort($enable = true) |
|
36 | |||
37 | /** |
||
38 | * |
||
39 | * Adds or removes OR FAIL flag. |
||
40 | * |
||
41 | * @param bool $enable Set or unset flag (default true). |
||
42 | * |
||
43 | * @return $this |
||
44 | * |
||
45 | */ |
||
46 | 1 | public function orFail($enable = true) |
|
51 | |||
52 | /** |
||
53 | * |
||
54 | * Adds or removes OR IGNORE flag. |
||
55 | * |
||
56 | * @param bool $enable Set or unset flag (default true). |
||
57 | * |
||
58 | * @return $this |
||
59 | * |
||
60 | */ |
||
61 | 1 | public function orIgnore($enable = true) |
|
66 | |||
67 | /** |
||
68 | * |
||
69 | * Adds or removes OR REPLACE flag. |
||
70 | * |
||
71 | * @param bool $enable Set or unset flag (default true). |
||
72 | * |
||
73 | * @return $this |
||
74 | * |
||
75 | */ |
||
76 | 1 | public function orReplace($enable = true) |
|
81 | |||
82 | /** |
||
83 | * |
||
84 | * Adds or removes OR ROLLBACK flag. |
||
85 | * |
||
86 | * @param bool $enable Set or unset flag (default true). |
||
87 | * |
||
88 | * @return $this |
||
89 | * |
||
90 | */ |
||
91 | 1 | public function orRollback($enable = true) |
|
96 | |||
97 | /** |
||
98 | * |
||
99 | * Sets a limit count on the query. |
||
100 | * |
||
101 | * @param int $limit The number of rows to select. |
||
102 | * |
||
103 | * @return $this |
||
104 | * |
||
105 | */ |
||
106 | 7 | public function limit($limit) |
|
111 | |||
112 | /** |
||
113 | * |
||
114 | * Returns the LIMIT value. |
||
115 | * |
||
116 | * @return int |
||
117 | * |
||
118 | */ |
||
119 | 1 | public function getLimit() |
|
123 | |||
124 | /** |
||
125 | * |
||
126 | * Sets a limit offset on the query. |
||
127 | * |
||
128 | * @param int $offset Start returning after this many rows. |
||
129 | * |
||
130 | * @return $this |
||
131 | * |
||
132 | */ |
||
133 | 2 | public function offset($offset) |
|
138 | |||
139 | /** |
||
140 | * |
||
141 | * Returns the OFFSET value. |
||
142 | * |
||
143 | * @return int |
||
144 | * |
||
145 | */ |
||
146 | 1 | public function getOffset() |
|
150 | |||
151 | /** |
||
152 | * |
||
153 | * Adds a column order to the query. |
||
154 | * |
||
155 | * @param array $spec The columns and direction to order by. |
||
156 | * |
||
157 | * @return $this |
||
158 | * |
||
159 | */ |
||
160 | 1 | public function orderBy(array $spec) |
|
164 | } |
||
165 |