當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GlobalConfig::getLinkFeatureVolume方法代碼示例

本文整理匯總了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;
 }
開發者ID:rtajmahal,項目名稱:PrestaShop-modules,代碼行數:13,代碼來源:opensi.php

示例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;
}
開發者ID:rtajmahal,項目名稱:PrestaShop-modules,代碼行數:35,代碼來源:postSynchCtrl.php


注:本文中的GlobalConfig::getLinkFeatureVolume方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。