public function insert() { $id = parent::insert(true); import("@.Workflow.Workflow"); $workflow = new Workflow($this->workflowAlias); $rs = $workflow->doNext($id, null, false, false); }
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(); }
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(); }
/** * 往数据库中添加数据 * (non-PHPdoc) * @see CommonAction::insert() */ public function insert() { $info = $this->uploadPic(); if ($info) { // 往数据库中添加数据 $_POST['pic'] = $info[0]['savename']; // 调用父类insert方法往数据库中插入数据 parent::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(); }
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(); }
public function insert() { $_POST['tag_code'] = $_POST['tag_name']; parent::insert(); }
public function insert() { $id = parent::insert(true); $this->updateUserGroup($id); }
public function insert() { $_POST['create_time'] = gmtTime(); $_POST['status'] = 1; parent::insert(); }