@@ -98,7 +98,7 @@ |
||
| 98 | 98 | * @param string $functionName The function to call |
| 99 | 99 | * @param array $args The arguments for the function |
| 100 | 100 | * @param boolean|string $checkField A field to check if it is set a certain way before calling the function |
| 101 | - * @param mixed $checkValue The value that field should be set to to not call the function |
|
| 101 | + * @param boolean $checkValue The value that field should be set to to not call the function |
|
| 102 | 102 | * @param callable $resFunction Function to call on the result, otherwise the function will return on the first non-false result |
| 103 | 103 | * |
| 104 | 104 | * @return mixed The return value |
@@ -116,6 +116,10 @@ discard block |
||
| 116 | 116 | return $sql; |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | + /** |
|
| 120 | + * @param boolean|string $count |
|
| 121 | + * @param boolean|string $skip |
|
| 122 | + */ |
|
| 119 | 123 | private function getLimitClause($count, $skip) |
| 120 | 124 | { |
| 121 | 125 | if($count === false) |
@@ -177,6 +181,9 @@ discard block |
||
| 177 | 181 | return $ret; |
| 178 | 182 | } |
| 179 | 183 | |
| 184 | + /** |
|
| 185 | + * @param string $tablename |
|
| 186 | + */ |
|
| 180 | 187 | function update($tablename, $where, $data) |
| 181 | 188 | { |
| 182 | 189 | $set = array(); |
@@ -199,6 +206,9 @@ discard block |
||
| 199 | 206 | return true; |
| 200 | 207 | } |
| 201 | 208 | |
| 209 | + /** |
|
| 210 | + * @param string $tablename |
|
| 211 | + */ |
|
| 202 | 212 | function create($tablename, $data) |
| 203 | 213 | { |
| 204 | 214 | $set = array(); |
@@ -222,6 +232,9 @@ discard block |
||
| 222 | 232 | return true; |
| 223 | 233 | } |
| 224 | 234 | |
| 235 | + /** |
|
| 236 | + * @param string $tablename |
|
| 237 | + */ |
|
| 225 | 238 | function delete($tablename, $where) |
| 226 | 239 | { |
| 227 | 240 | $sql = "DELETE FROM $tablename WHERE $where"; |