本文整理汇总了PHP中CommonAction::insert方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonAction::insert方法的具体用法?PHP CommonAction::insert怎么用?PHP CommonAction::insert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonAction
的用法示例。
在下文中一共展示了CommonAction::insert方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: insert
public function insert()
{
$id = parent::insert(true);
import("@.Workflow.Workflow");
$workflow = new Workflow($this->workflowAlias);
$rs = $workflow->doNext($id, null, false, false);
}
示例2: insert
public function insert()
{
vendor("common");
$res = FS("Image")->save($key = 'shop_logo', $dir = 'share', $is_thumb = false, $whs = array(), $is_delete_origin = false, $is_water = false);
$_POST['shop_logo'] = $res['url'];
parent::insert();
}
示例3: insert
public function insert()
{
if (!isset($_POST['is_flash'])) {
$_POST['is_flash'] = 0;
$_POST['flash_style'] = '';
}
$_POST['width'] = intval($_POST['width']);
$_POST['height'] = intval($_POST['height']);
parent::insert();
}
示例4: insert
/**
* 往数据库中添加数据
* (non-PHPdoc)
* @see CommonAction::insert()
*/
public function insert()
{
$info = $this->uploadPic();
if ($info) {
// 往数据库中添加数据
$_POST['pic'] = $info[0]['savename'];
// 调用父类insert方法往数据库中插入数据
parent::insert();
}
}
示例5: insert
public function insert()
{
$desc = trim($_REQUEST['desc']);
$_POST['allow_group'] = '';
if (isset($_POST['allow_gid'])) {
$_POST['allow_group'] = implode(',', $_POST['allow_gid']);
}
if ($_POST['give_type'] == 1) {
$_POST['conditions'] = '';
}
parent::insert();
}
示例6: insert
public function insert()
{
if (!isset($_POST['is_flash'])) {
$_POST['is_flash'] = 0;
$_POST['flash_style'] = '';
}
$_POST['width'] = intval($_POST['width']);
$_POST['height'] = intval($_POST['height']);
$_POST['status'] = getAdVerifyStatus();
// 默认广告未通过审核
parent::insert();
}
示例7: insert
public function insert()
{
$_POST['tag_code'] = $_POST['tag_name'];
parent::insert();
}
示例8: insert
public function insert()
{
$id = parent::insert(true);
$this->updateUserGroup($id);
}
示例9: insert
public function insert()
{
$_POST['create_time'] = gmtTime();
$_POST['status'] = 1;
parent::insert();
}