本文整理匯總了PHP中GlobalConfig::getLinkFeatureVolume方法的典型用法代碼示例。如果您正苦於以下問題:PHP GlobalConfig::getLinkFeatureVolume方法的具體用法?PHP GlobalConfig::getLinkFeatureVolume怎麽用?PHP GlobalConfig::getLinkFeatureVolume使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GlobalConfig
的用法示例。
在下文中一共展示了GlobalConfig::getLinkFeatureVolume方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: utilHtmlLinkFeature
public function utilHtmlLinkFeature($featureName)
{
if ($featureName == 'volume') {
$linkFeatureValue = GlobalConfig::getLinkFeatureVolume();
}
$selectOptions = "<option value=''>---</option>";
foreach ($this->listFeatures as $feature) {
$isSelected = $feature['id_feature'] != "" && $feature['id_feature'] == $linkFeatureValue ? "selected" : "";
$selectOptions .= "<option value='" . $feature['id_feature'] . "' " . $isSelected . ">" . $feature['name'] . "</option>";
}
$html = '<select name="osi_link_feature_' . $featureName . '" style="width:200px">' . $selectOptions . '</select>';
return $html;
}
示例2: generateFeaturesMap
function generateFeaturesMap($features)
{
$featuresMap;
foreach ($features as $feature) {
$id_feature = $feature['id_feature'];
if ($id_feature == GlobalConfig::getLinkFeatureVolume()) {
$featuresMap["Volume"] = $feature['feature_value'];
} else {
if (GlobalConfig::getLinkAttribute1_isfeature() == 1 && $id_feature == GlobalConfig::getLinkAttribute1()) {
$featuresMap["Attribut_1"] = $feature['feature_value'];
} else {
if (GlobalConfig::getLinkAttribute2_isfeature() == 1 && $id_feature == GlobalConfig::getLinkAttribute2()) {
$featuresMap["Attribut_2"] = $feature['feature_value'];
} else {
if (GlobalConfig::getLinkAttribute3_isfeature() == 1 && $id_feature == GlobalConfig::getLinkAttribute3()) {
$featuresMap["Attribut_3"] = $feature['feature_value'];
} else {
if (GlobalConfig::getLinkAttribute4_isfeature() == 1 && $id_feature == GlobalConfig::getLinkAttribute4()) {
$featuresMap["Attribut_4"] = $feature['feature_value'];
} else {
if (GlobalConfig::getLinkAttribute5_isfeature() == 1 && $id_feature == GlobalConfig::getLinkAttribute5()) {
$featuresMap["Attribut_5"] = $feature['feature_value'];
} else {
if (GlobalConfig::getLinkAttribute6_isfeature() == 1 && $id_feature == GlobalConfig::getLinkAttribute6()) {
$featuresMap["Attribut_6"] = $feature['feature_value'];
}
}
}
}
}
}
}
}
return $featuresMap;
}