本文整理汇总了PHP中GlobalConfig::getStateIdOnDelivery方法的典型用法代码示例。如果您正苦于以下问题:PHP GlobalConfig::getStateIdOnDelivery方法的具体用法?PHP GlobalConfig::getStateIdOnDelivery怎么用?PHP GlobalConfig::getStateIdOnDelivery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GlobalConfig
的用法示例。
在下文中一共展示了GlobalConfig::getStateIdOnDelivery方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: osiState2PsStateId
public static function osiState2PsStateId($logisticState, $paymentState, $state)
{
$logisticState = strtoupper($logisticState);
$paymentState = strtoupper($paymentState);
$state = strtoupper($state);
if ($state == 'A') {
return GlobalConfig::getStateIdCanceled();
} else {
if ($state == 'T' && $logisticState == 'E') {
return GlobalConfig::getStateIdOnDelivery();
} else {
if ($state == 'T' && $logisticState == 'T') {
return GlobalConfig::getStateIdOnPreparation();
} else {
if ($state == 'C' && $logisticState == 'E') {
return GlobalConfig::getStateIdOnDelivery();
}
}
}
}
}
示例2: utilHtmlOrderState
public function utilHtmlOrderState($stateName)
{
if ($stateName == 'on_preparation') {
$stateValue = GlobalConfig::getStateIdOnPreparation();
} else {
if ($stateName == 'on_delivery') {
$stateValue = GlobalConfig::getStateIdOnDelivery();
} else {
if ($stateName == 'canceled') {
$stateValue = GlobalConfig::getStateIdCanceled();
}
}
}
$selectOptions = '';
foreach ($this->listOrderStates as $state) {
$isSelected = $state['id_order_state'] != "" && $state['id_order_state'] == $stateValue ? "selected" : "";
$selectOptions .= "<option value='" . $state['id_order_state'] . "' " . $isSelected . ">" . $state['name'] . "</option>";
}
$html = '<select name="osi_state_id_' . $stateName . '" style="width:360px">' . $selectOptions . '</select>';
return $html;
}