本文整理汇总了PHP中Query::value方法的典型用法代码示例。如果您正苦于以下问题:PHP Query::value方法的具体用法?PHP Query::value怎么用?PHP Query::value使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Query
的用法示例。
在下文中一共展示了Query::value方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add
function add($_id, $_b)
{
$c = new Query();
$c->value("mento_id", $_id);
$c->value("bios", $_b);
$this->insert($c);
}
示例2: Query
function add_res($_arr)
{
// $this->debug();
$d = new Query();
$d->from = "program_file_res";
$d->where_eq("c_file_id", $_arr["c_file_id"]);
$d->where_eq("apply_id", $_arr["apply_id"]);
$res = $this->fetch_one("id", $d);
if ($res) {
$c = new Query();
$c->from = "program_file_res";
$c->value("file", $_arr["file"]);
$c->where_eq("id", $res["id"]);
$this->update($c);
$_id = $res["s_id"];
} else {
$c = new Query();
$c->from = "program_file_res";
$c->value("c_file_id", $_arr["c_file_id"]);
$c->value("apply_id", $_arr["apply_id"]);
$c->value("file", $_arr["file"]);
$this->insert($c);
$_id = $this->last_id();
}
return $_id;
}
示例3: add
function add($_user, $_local)
{
$d = new Query();
$d->value("user_id", $_user);
$d->value("inv_id", $_local);
$this->insert($d);
}
示例4: Query
function add_c($_user, $_interist)
{
$d = new Query();
$d->value("user_id", $_user);
$d->value("interist_id", $_interist);
$this->insert($d);
}
示例5: Query
function add_c($_user, $_skill)
{
$d = new Query();
$d->value("user_id", $_user);
$d->value("market_id", $_skill);
$this->insert($d);
}
示例6: add
function add($_startup_id, $_founder)
{
$c = new Query();
$c->value("startup_id", $_startup_id);
$c->value("founder", $_founder);
$this->insert($c);
}
示例7: add
function add($_id, $_an, $_al)
{
$c = new Query();
$c->value("mento_id", $_id);
$c->value("title", $_an);
$c->value("url", $_al);
$this->insert($c);
}
示例8: Query
function add_c($_user, $_c)
{
// $this->debug();
$d = new Query();
$d->value("startup_id", $_user);
$d->value("bussiness_id", $_c);
$this->insert($d);
}
示例9: add
function add($_id, $_q)
{
// $this->debug();
$c = new Query();
$c->value("mento_id", $_id);
$c->value("subject", $_q);
$this->insert($c);
}
示例10: 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);
}
示例11: add
function add($_id, $_uid, $_email)
{
// $this->debug();
$c = new Query();
$c->value("mentor_id", $_id);
$c->value("user_id", $_uid);
$c->value("email", $_email);
$this->insert($c);
}
示例12: add
function add($id_user, $login_name)
{
$akey = sha256(make_code() . $login_name);
$c = new Query();
$c->value('user_id', $id_user);
$c->value('akey', $akey);
$this->insert($c);
return $akey;
}
示例13: add
function add($_id, $_value, $_type)
{
// $this->debug();
$c = new Query();
$c->value("recruit_id", $_id);
$c->value("code_id", $_value);
$c->value("code_type", $_type);
$this->insert($c);
}
示例14: add
function add($_arr)
{
$this->debug();
$c = new Query();
$c->value("apply_id", $_arr["apply_id"]);
$c->value("form_id", $_arr["form_id"]);
$c->value("contents", $_arr["contents"]);
$this->insert($c);
}
示例15: Query
function res_add($_arr)
{
// $this->debug();
$c = new Query();
$c->from = "competitions_form_res";
$c->value("apply_id", $_arr["apply_id"]);
$c->value("c_form_id", $_arr["c_form_id"]);
$c->value("res", $_arr["res"]);
$this->insert($c);
}