本文整理匯總了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']}'";