本文整理汇总了PHP中OmAvailableModel::addTNameRow1方法的典型用法代码示例。如果您正苦于以下问题:PHP OmAvailableModel::addTNameRow1方法的具体用法?PHP OmAvailableModel::addTNameRow1怎么用?PHP OmAvailableModel::addTNameRow1使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OmAvailableModel
的用法示例。
在下文中一共展示了OmAvailableModel::addTNameRow1方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: implode
$relation_set = "set " . implode(",", $insert_relation_arr);
$relationId = OmAvailableModel::addTNameRow($relation_tname, $relation_set);
if (!$relationId) {
Log::write("INSERT INTO " . $relation_tname . $relation_set, Log::ERR);
OmAvailableModel::rollback();
$sku_flag = false;
}
if ($sku_flag) {
if (!empty($msg_array['tracknumbers'])) {
$insert_tracknumber_arr = array();
$insert_tracknumber_arr[] = "tracknumber = '{$msg_array['tracknumbers']['tracknumber']}'";
$insert_tracknumber_arr[] = "shipOrderId = '{$shipOrderId}'";
$insert_tracknumber_arr[] = "createdTime = '{$mctime}'";
$tracknumber_tname = "wh_order_tracknumber";
$tracknumber_set = "set " . implode(",", $insert_tracknumber_arr);
$tracknumberId = OmAvailableModel::addTNameRow1($tracknumber_tname, $tracknumber_set);
if (!$tracknumberId) {
Log::write("INSERT INTO " . $tracknumber_tname . $tracknumber_set, Log::ERR);
OmAvailableModel::rollback();
$sku_flag = false;
}
}
if ($sku_flag) {
if (!empty($msg_array['notes'])) {
$insert_notes_arr = array();
$insert_notes_arr[] = "shipOrderId = '{$shipOrderId}'";
$content = mysql_real_escape_string($msg_array['notes'][0]['content']);
$insert_notes_arr[] = "content = '{$content}'";
$insert_notes_arr[] = "userId = '{$msg_array['notes'][0]['userId']}'";
$insert_notes_arr[] = "createdTime = '{$msg_array['notes'][0]['createdTime']}'";
$insert_notes_arr[] = "storeId = '{$msg_array['notes'][0]['storeId']}'";