本文整理汇总了PHP中Query::where_eq方法的典型用法代码示例。如果您正苦于以下问题:PHP Query::where_eq方法的具体用法?PHP Query::where_eq怎么用?PHP Query::where_eq使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Query
的用法示例。
在下文中一共展示了Query::where_eq方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: reset
function reset($_oh, $_aid)
{
$c = new Query();
$c->value("apply_id", "");
$c->where_eq("oh_id", $_oh);
$c->where_eq("apply_id", $_aid);
$this->update($c);
}
示例2: Query
function del_by_user($_cid, $_uid)
{
$this->debug();
$c = new Query();
$c->where_eq("user_id", $_uid);
$c->where_eq("id", $_cid);
$this->delete_cond($c);
}
示例3: Query
function get_by_form($_aid, $_eid)
{
// $this->debug();
$c = new Query();
$c->where_eq("apply_id", $_aid);
$c->where_eq("form_id", $_eid);
$res = $this->fetch_one("*", $c);
return $res;
}
示例4: Query
function get_follower($_type = '', $_id = '')
{
// $this->debug();
$c = new Query();
$c->where_eq("follower", $_id);
if ($_type) {
$c->where_eq("type", $_type);
}
$res = $this->fetch("*", $c);
return $res;
}
示例5: Query
function edit_by_fb($_arr)
{
$c = new Query();
$c->value("ids", $_arr["ids"]);
$c->value("secret", $_arr["secret"]);
$c->value("date_created", "now()", 1);
if ($_arr["public"]) {
$c->value("public", $_arr["public"]);
}
$c->where_eq("user_id", $_arr["user_id"]);
$c->where_eq("type", $_arr["type"]);
$this->update($c);
}
示例6: Query
function cnt_by_opt($_tid, $_cid, $_where = '')
{
// $this->debug();
$c = new Query();
$c->from = "recruit r, recruit_opt ro";
$c->where("ro.recruit_id = r.id");
$c->where_eq("code_type", $_tid);
$c->where_eq("code_id", $_cid);
if ($_where) {
$c->where($_where);
}
$res = $this->counts($c);
return $res;
}
示例7: check
function check($_type)
{
$c = new Query();
$c->where_eq("name", $_type);
$res = $this->fetch_one("id", $c);
return $res;
}
示例8: edit
function edit($_id, $_state)
{
$c = new Query();
$c->value("visible", $_state);
$c->where_eq("id", $_id);
$this->update($c);
}
示例9: Query
function del_form_res($_aid)
{
$c = new Query();
$c->from = "competitions_form_res";
$c->where_eq("apply_id", $_aid);
$this->delete_cond($c);
}
示例10: add
function add($_arr)
{
// $this->debug();
$c = new Query();
$c->value("dates", $_arr["dates"]);
$c->value("times", $_arr["times"]);
$c->value("url", $_arr["url"]);
$c->value("img", $_arr["img"]);
$c->value("title", str_replace('\'', '\'', $_arr["title"]));
$c->value("subtitle", str_replace('\'', '\'', $_arr["subtitle"]));
$c->value("author", str_replace('\'', '\'', $_arr["author"]));
$c->value("publisher", str_replace('\'', '\'', $_arr["publisher"]));
$c->value("c_date", $_arr["c_date"]);
$c->value("tags", str_replace('\'', '\'', $_arr["tags"]));
$c->value("mento_img", $_arr["mento_img"]);
$c->value("mento_name", str_replace('\'', '\'', $_arr["mento_name"]));
$c->value("mento_endor", str_replace('\'', '\'', $_arr["mento_endor"]));
if ($_arr["id"]) {
$c->where_eq("id", $_arr["id"]);
$this->update($c);
$id = $_REQUEST["id"];
} else {
$this->insert($c);
$id = $this->last_id();
}
return $id;
}
示例11: Query
function add_error($_id)
{
$c = new Query();
$c->where_eq('id', $_id);
$c->value('error_cnt', 'error_cnt+1', true);
$this->update($c);
}
示例12: Query
function get_by_mento($_id)
{
// $this->debug();
$c = new Query();
$c->where_eq("mento_id", $_id);
$res = $this->fetch("*", $c);
return $res;
}
示例13: edit
function edit($_id, $_type, $_cid)
{
$c = new Query();
$c->value("type", $_type);
$c->value("cid", $_cid);
$c->where_eq("id", $_id);
$this->update($c);
}
示例14: Query
function get_by_mento($_id)
{
$c = new Query();
$c->where_eq("mento_id", $_id);
$c->order = "id ASC";
$res = $this->fetch("*", $c);
return $res;
}
示例15: Query
function get_by_apply($_id)
{
$c = new Query();
$c->where_eq("apply_id", $_id);
$c->order = "id ASC";
$res = $this->fetch("file", $c);
return $res;
}