Lines Matching refs:id
33 list(,$code, $id) = $matches;
37 $id_key = 'id';
44 $anchor = '#k' . $id;
48 $res = $sqlite->query("SELECT thread_id FROM thread_comment WHERE id=?", $id);
49 $id = $res->fetchColumn();
58 $anchor = '#zk' . $id;
62 $res = $sqlite->query("SELECT task_id FROM task_comment WHERE id=?", $id);
63 $id = $res->fetchColumn();
67 $wl = wl("bez:$table:$id_key:$id") . $anchor;
82 list(,$code, $id) = $matches;
84 if (!is_numeric($id)) {
96 $res = $sqlite->query("SELECT COUNT(*) FROM $table WHERE id=?", $id);
99 throw new ValidationException(ucfirst($table) . " with id: $id doesn't exists.");
119 list(,$code, $id) = $matches;
121 if (!is_numeric($id)) return array();
135 $fields = array('id');
140 $sql = "SELECT " . implode(',', $fields) . " FROM $table WHERE id LIKE ? LIMIT $max";
141 $res = $sqlite->query($sql, $id . '%');
146 $name = $value = '#' . $code . $row['id'];