当前位置: 首页>>代码示例>>PHP>>正文


PHP getKeyIgnoreCase函数代码示例

本文整理汇总了PHP中getKeyIgnoreCase函数的典型用法代码示例。如果您正苦于以下问题:PHP getKeyIgnoreCase函数的具体用法?PHP getKeyIgnoreCase怎么用?PHP getKeyIgnoreCase使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getKeyIgnoreCase函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getTag

 /**
  * @ describe the function AddCategory->getTag.
  */
 function getTag($tag)
 {
     global $application;
     $value = getKeyIgnoreCase($tag, $this->_Template_Contents);
     if ($value == null) {
         switch ($tag) {
             case 'Breadcrumb':
                 $obj =& $application->getInstance('Breadcrumb');
                 $value = $obj->output(false);
                 break;
             case 'ErrorIndex':
                 $value = $this->_error_index;
                 break;
             case 'Error':
                 $value = $this->_error;
                 break;
         }
     }
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:23,代码来源:banner_location_az.php

示例2: getTag

 function getTag($tag)
 {
     global $application;
     switch ($tag) {
         case 'ProductInfoLink':
             $cz_layouts = LayoutConfigurationManager::static_get_cz_layouts_list();
             LayoutConfigurationManager::static_activate_cz_layout(array_shift(array_keys($cz_layouts)));
             $request = new CZRequest();
             $request->setView('ProductInfo');
             $request->setAction('SetCurrentProduct');
             $request->setKey('prod_id', $this->POST["product_id"]);
             $request->setProductID($this->POST["product_id"]);
             $value = $request->getURL();
             break;
         case "ErrorIndex":
             $value = $this->_error_index;
             break;
         case "Error":
             $value = $this->_error;
             break;
         default:
             $value = getKeyIgnoreCase($tag, $this->_Template_Contents);
             if ($value === NULL) {
                 $value = getKeyIgnoreCase($tag, $this->_Rate);
             }
             break;
     }
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:29,代码来源:manage_quantity_discounts_az.php

示例3: getTag


//.........这里部分代码省略.........
             $value = "";
             if ($this->_filter['search_by'] == 'id' && !empty($this->_filter['order_id'])) {
                 $value = $this->_filter['order_id'];
             }
             break;
         case 'DeleteOrdersLink':
             $request = new Request();
             $request->setView('DeleteOrders');
             $request->setAction('SetOrdersForDeleteAction');
             $value = $request->getURL();
             break;
         case 'PaginatorLine':
             $obj =& $application->getInstance($tag);
             $value = $obj->output("Checkout_Orders", "Orders");
             break;
             #                               PaginatorRows
         #                               PaginatorRows
         case 'PaginatorRows':
             $obj =& $application->getInstance($tag);
             $value = $obj->output("Checkout_Orders", 'Orders', 'PGNTR_ORD_ITEMS');
             break;
         case 'ResultMessageRow':
             $value = $this->outputResultMessage();
             break;
         case 'ResultMessage':
             $value = $this->_Template_Contents['ResultMessage'];
             break;
         case 'PackingSlipLink':
             $request = new Request();
             $request->setView('OrderPackingSlip');
             $request->setAction('SetCurrentOrder');
             $request->setKey('order_id', $this->_order['IdInt']);
             // uncomment the following link to force printing
             // $request -> setKey('do_print', 'Y');
             $value = $request->getURL();
             break;
         case 'InvoiceLink':
             $request = new Request();
             $request->setView('OrderInvoice');
             $request->setAction('SetCurrentOrder');
             $request->setKey('order_id', $this->_order['IdInt']);
             // uncomment the following link to force printing
             // $request -> setKey('do_print', 'Y');
             $value = $request->getURL();
             break;
         case 'AffiliateIDSearch':
             $v = isset($this->_filter['affiliate_id']) ? $this->_filter['affiliate_id'] : "";
             $value = "<input type='text' name='affiliate_id' size='28' class='form-control form-filter input-sm' value='" . $v . "' />";
             break;
         default:
             list($entity, $tag) = getTagName($tag);
             if ($entity == 'order') {
                 if (_ml_strpos($tag, 'price') === 0) {
                     $tag = _ml_strtolower(_ml_substr($tag, _ml_strlen('price')));
                     if ($tag == 'total') {
                         $value = $this->_order['Total'];
                         if ($this->_order['TotalInMainStoreCurrency'] !== NULL) {
                             $value = $this->_order['TotalInMainStoreCurrency'] . ' (' . $value . ')';
                         }
                     } elseif ($tag == 'subtotal') {
                         $value = $this->_order['Subtotal'];
                     } else {
                         if ($tag == 'taxes') {
                             $full_tax_exempt_orders = $this->__getFullTaxExemptOrders();
                             $code = $this->_fetched_orders[$this->_order['IdInt']]["order_currencies_list"]["CURRENCY_TYPE_MAIN_STORE_CURRENCY"]["currency_code"];
                             $value = $this->_fetched_orders[$this->_order['IdInt']]["price_total"][$code]["order_tax_total"];
                             $crcy_id = modApiFunc("Localization", "getCurrencyIdByCode", $code);
                             modApiFunc("Localization", "pushDisplayCurrency", $crcy_id, $crcy_id);
                             $value = modApiFunc("Localization", "currency_format", $value);
                             $null_value = modApiFunc("Localization", "currency_format", "0.0000");
                             modApiFunc("Localization", "popDisplayCurrency");
                             if (array_key_exists($this->_order['IdInt'], $full_tax_exempt_orders)) {
                                 $value = $null_value . " (ex. {$value})";
                             }
                         } else {
                             $prices = getKeyIgnoreCase('price', $this->_order);
                             $value = $prices[$tag];
                         }
                     }
                 } elseif (_ml_strpos($tag, 'customer') === 0) {
                     $tag = _ml_strtolower(_ml_substr($tag, _ml_strlen('customer')));
                     switch ($tag) {
                         case 'name':
                             $value = $this->_order['PersonName'];
                             break;
                         case 'id':
                             $value = $this->_order['PersonId'];
                             break;
                         case 'infoname':
                             $value = $this->_order['PersonInfoName'];
                             break;
                     }
                 } else {
                     $value = getKeyIgnoreCase($tag, $this->_order);
                 }
             }
             break;
     }
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:101,代码来源:checkout-manage-orders-az.php

示例4: getTag

 function getTag($tag)
 {
     return getKeyIgnoreCase($tag, $this->_Template_Contents);
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:4,代码来源:import_products_view_az.php

示例5: getSortLink

 function getSortLink($tag)
 {
     # THIS FUNCTION TEMPORARY DISABLED
     return getMsg('CTL', 'LINK_NAME_' . getKeyIgnoreCase($tag, $this->__sort_tag_suffix));
     list($curr_sort_field, $curr_sort_direction) = modApiFunc('CProductListFilter', 'getCurrentSortField');
     $_sort_field = getKeyIgnoreCase($tag, $this->__sort_tag_suffix);
     if ($curr_sort_field == $_sort_field) {
         if ($curr_sort_direction == SORT_DIRECTION_ASC) {
             $_sort_direction = SORT_DIRECTION_DESC;
             $_template_name = "sort_link_asc.tpl.html";
         } else {
             $_sort_direction = SORT_DIRECTION_ASC;
             $_template_name = "sort_link_desc.tpl.html";
         }
     } else {
         $_sort_direction = SORT_DIRECTION_ASC;
         $_template_name = "sort_link.tpl.html";
     }
     $_request = new Request();
     $_request->setView('ProductList');
     $_request->setAction('SetProductListSortField');
     $_request->setKey('field', $_sort_field . ',' . $_sort_direction);
     $params = array('LINK_HREF' => $_request->getURL(), 'LINK_NAME' => getMsg('CTL', 'LINK_NAME_' . $_sort_field));
     $value = modApiFunc('TmplFiller', 'fill', "catalog/prod_list/", $_template_name, $params);
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:26,代码来源:prodslist_az.php

示例6: getTag

 function getTag($tag)
 {
     global $application;
     switch ($tag) {
         case "ErrorIndex":
             $value = $this->_error_index;
             break;
         case "Error":
             $value = $this->_error;
             break;
         case 'ResultMessage':
             $value = $this->_Template_Contents['ResultMessage'];
             break;
         default:
             $value = getKeyIgnoreCase($tag, $this->_Template_Contents);
             if ($value === NULL) {
                 $value = getKeyIgnoreCase($tag, $this->_CCType);
             }
             break;
     }
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:22,代码来源:credit_card_settings_az.php

示例7: getTag

 /**
  * @param $tag name of the requested tag
  * @return value of the tag
  */
 function getTag($tag)
 {
     global $application;
     $value = getKeyIgnoreCase($tag, $this->_Template_Contents);
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:10,代码来源:dsr_input_az.php

示例8: getTag

 function getTag($tag)
 {
     // overriding paginator line
     if ($tag == 'PaginatorLine') {
         return getPaginatorLine($this->_pagname, $this->_pagblock, modApiFunc('CProductListFilter', 'getCurrentCategoryId'), $this->product_id);
     }
     // overriding paginator dropdown
     if ($tag == 'PaginatorDropdown') {
         return getPaginatorDropdown($this->_pagname, $this->_pagblock, 'customer reviews');
     }
     return getKeyIgnoreCase($tag, $this->_Template_Contents);
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:12,代码来源:cr_product_review_list_cz.php

示例9: getTag

 function getTag($tag)
 {
     global $application;
     $value = null;
     switch ($tag) {
         default:
             $value = getKeyIgnoreCase($tag, $this->_Template_Contents);
             break;
     }
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:11,代码来源:one-step-checkout-cz.php

示例10: getTag

 /**
  * Returns the tag output, whose name is specified in $tag.
  */
 function getTag($tag)
 {
     global $application;
     $value = "";
     if ($tag == "Error") {
         $value = $this->_error;
     } elseif ($tag == "ErrorIndex") {
         $value = $this->_error_index;
     } else {
         $value = getKeyIgnoreCase($tag, $this->_Template_Contents);
     }
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:16,代码来源:edit-fs-rule-area-az.php

示例11: getTag

 /**
  * Processes tags in the templates for the given view.
  *
  * @return string tag value, if tag has been processed. NULL, otherwise.
  */
 function getTag($tag)
 {
     $args = func_get_args();
     array_shift($args);
     $second_arg = @array_shift($args);
     $sort_direction = @$second_arg[0];
     if ($sort_direction === SORT_DIRECTION_DESC) {
         $sort_direction = SORT_DIRECTION_DESC;
     } else {
         $sort_direction = SORT_DIRECTION_ASC;
     }
     global $application;
     $value = null;
     switch ($tag) {
         case 'Local_LinkList':
             $value = $this->outputLinkList();
             break;
         case 'Local_Href':
             $value = $this->_local_href_tag;
             break;
         case 'Local_Name':
             $value = $this->_local_name_tag;
             break;
         default:
             if (_ml_strpos($tag, $this->__href_tag_prefix) === 0) {
                 $sort_field_key = _ml_substr($tag, _ml_strlen($this->__href_tag_prefix));
                 $sort_field = getKeyIgnoreCase($sort_field_key, $this->__sort_field_list);
                 $_request = new Request();
                 #$_request->setView('ProductList');
                 #$_request->setCategoryID($this->__current_category_id);
                 $_request->setView(CURRENT_REQUEST_URL);
                 $_request->setAction('SetProductListSortField');
                 $_request->setKey('field', $sort_field . ',' . $sort_direction);
                 $value = $_request->getURL();
             }
     }
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:43,代码来源:product_list_sorter_cz.php

示例12: outputGA

 /**
  * Otputs the view.
  *
  * @ $request->setView  ( '' ) - define the view name
  */
 function outputGA()
 {
     global $application;
     $last_placed_order_id = modApiFunc("Checkout", "getLastPlacedOrderID");
     if ($last_placed_order_id !== NULL) {
         $settings = TransactionTracking::getModulesSettings();
         $GA_ACCOUNT_NUMBER = $settings[MODULE_GOOGLE_ANALYTICS_UID]['GA_ACCOUNT_NUMBER'];
         $container_template = TransactionTracking::getIncludedFileContents("google_analytics_container.tpl.html");
         $item_template = TransactionTracking::getIncludedFileContents("google_analytics_item.tpl.html");
         $orderInfo = modApiFunc("Checkout", "getOrderInfo", $last_placed_order_id, modApiFunc("Localization", "whichCurrencySendOrderToPaymentShippingGatewayIn", $last_placed_order_id, GET_PAYMENT_MODULE_FROM_ORDER));
         $ITEMS = "";
         foreach ($orderInfo['Products'] as $product_info) {
             $handpicked_options = "";
             for ($j = 0; $j < count($product_info['options']); $j++) {
                 $handpicked_options .= $product_info['options'][$j]['option_name'] . ": " . $product_info['options'][$j]['option_value'] . ";";
             }
             $handpicked_options = htmlspecialchars($handpicked_options);
             $SKU = getKeyIgnoreCase('SKU', $product_info['attr']);
             $SKU = $SKU['value'];
             $SalePrice = getKeyIgnoreCase('SalePrice', $product_info['attr']);
             $SalePrice = $SalePrice['value'];
             $item_data = array("ORDER_ID" => $last_placed_order_id, "SKU" => $SKU, "PRODUCT_NAME" => $product_info['name'], "CATEGORY" => $handpicked_options, "PRICE" => $SalePrice, "QUANTITY" => $product_info['qty']);
             $encoded_item_data = array();
             foreach ($item_data as $key => $value) {
                 $encoded_item_data[$key] = htmlspecialchars($value);
             }
             $ITEMS .= strtr($item_template, $encoded_item_data) . "\n";
         }
         //                               CITY, STATE, COUNTRY -        .           Shipping -             ,
         //       ,           Billing -             .
         if (!empty($orderInfo['Shipping']['attr'])) {
             $person_info = $orderInfo['Shipping']['attr'];
         } else {
             $person_info = $orderInfo['Billing']['attr'];
         }
         $CITY = getKeyIgnoreCase("city", $person_info);
         $CITY = $CITY['value'];
         $STATE = getKeyIgnoreCase("state", $person_info);
         $STATE = $STATE['value'];
         $COUNTRY = getKeyIgnoreCase("country", $person_info);
         $COUNTRY = $COUNTRY['value'];
         $currency_id = modApiFunc("Localization", "whichCurrencySendOrderToPaymentShippingGatewayIn", $last_placed_order_id, GET_PAYMENT_MODULE_FROM_ORDER);
         $container_data = array("UA-XXXXX-1" => $GA_ACCOUNT_NUMBER, "ORDER_ID" => $last_placed_order_id, "AFFILIATION" => modApiFunc("Configuration", "getValue", SYSCONFIG_STORE_OWNER_NAME), "TOTAL" => modApiFunc("Checkout", "getOrderPrice", "Total", $currency_id), "TAX" => $this->export_PRICE_N_A(modApiFunc("Checkout", "getOrderPrice", "Tax", $currency_id)), "SHIPPING" => $this->export_PRICE_N_A(modApiFunc("Checkout", "getOrderPrice", "TotalShippingAndHandlingCost", $currency_id)), "CITY" => $CITY, "STATE" => $STATE, "COUNTRY" => $COUNTRY);
         $encoded_container_data = array();
         foreach ($container_data as $key => $value) {
             $encoded_container_data[$key] = htmlspecialchars($value);
         }
         $encoded_container_data["ITEMS"] = $ITEMS;
         $value = strtr($container_template, $encoded_container_data) . "\n";
         return $value;
     } else {
         return "";
     }
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:59,代码来源:transaction-tracking-html-code-cz.php

示例13: getTag

 function getTag($tag)
 {
     $res = null;
     if ($tag == 'MessagesList' || $tag == 'SelfUrl') {
         $res = getKeyIgnoreCase($tag, $this->_templateContents);
     } else {
         $res = getKeyIgnoreCase($tag, $this->_listTemplateContents);
     }
     return $res;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:10,代码来源:newsletter_list_az.php

示例14: getTag

 function getTag($tag)
 {
     global $application;
     $value = null;
     switch ($tag) {
         case 'ListManageExtensionItems':
             $value = $this->outputExtDetailList();
             if ($value == "") {
                 $value = '<div style="font-weight:bold;padding: 44px;text-align: center;">' . getMsg('SYS', 'NO_EXT_INSTALLED_MSG') . '</div>';
             }
             break;
         case 'StatusMessage':
             $value = $this->outputStatusMessage();
             break;
         case 'UninstallMessage':
             $value = $this->outputUninstallMessage();
             break;
         case 'SelectExtensionType':
             $value = $this->outputExtensionTypeFilterSelect();
             break;
         case 'ReloadMarketPlace':
             $value = "configure-extensions.php?reload";
             break;
         case 'ErrorMessage':
             $value = $this->outputErrorMessage();
             break;
         case 'Local_ConfigureURL':
             $value = 'configure-extensions.php';
             break;
         default:
             $value = getKeyIgnoreCase($tag, $this->_Template_Contents);
             break;
     }
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:35,代码来源:extension_manage_az.php

示例15: getTag

 function getTag($tag)
 {
     $value = null;
     if ($tag == 'ErrorIndex') {
         $value = $this->_errorIndex;
     } else {
         if ($tag == 'Error') {
             $value = $this->_error;
         } else {
             $value = getKeyIgnoreCase($tag, $this->_templateContents);
         }
     }
     return $value;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:14,代码来源:newsletter_compose_az.php


注:本文中的getKeyIgnoreCase函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。