本文整理匯總了PHP中GlobalConfig::getStateIdCanceled方法的典型用法代碼示例。如果您正苦於以下問題:PHP GlobalConfig::getStateIdCanceled方法的具體用法?PHP GlobalConfig::getStateIdCanceled怎麽用?PHP GlobalConfig::getStateIdCanceled使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GlobalConfig
的用法示例。
在下文中一共展示了GlobalConfig::getStateIdCanceled方法的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;
}