Lines Matching defs:res
235 * @param \PDOStatement $res
238 public function res_close($res)
240 if (!$res) return false;
242 return $res->closeCursor();
248 * @param \PDOStatement $res
251 public function res2arr($res, $assoc = true)
253 if (!$res) return [];
258 $this->data = $res->fetchAll($mode);
266 * @param \PDOStatement $res
269 public function res2row($res, $rownum = 0)
271 if (!$res) return false;
273 return $res->fetch(\PDO::FETCH_ASSOC);
279 * @param \PDOStatement $res
282 public function res2single($res)
284 if (!$res) return false;
286 $data = $res->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_ABS, 0);
296 * @param \PDOStatement $res
299 public function res_fetch_array($res)
301 if (!$res) return false;
303 return $res->fetch(PDO::FETCH_NUM);
309 * @param \PDOStatement $res
312 public function res_fetch_assoc($res)
314 if (!$res) return false;
316 return $res->fetch(PDO::FETCH_ASSOC);
324 * @param \PDOStatement $res
327 public function res2count($res)
329 if (!$res) return 0;
333 $this->data = $this->res2arr($res);
342 * @param \PDOStatement $res
345 public function countChanges($res)
347 if (!$res) return 0;
349 return $res->rowCount();