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


PHP SpecificPrice::exists方法代码示例

本文整理汇总了PHP中SpecificPrice::exists方法的典型用法代码示例。如果您正苦于以下问题:PHP SpecificPrice::exists方法的具体用法?PHP SpecificPrice::exists怎么用?PHP SpecificPrice::exists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SpecificPrice的用法示例。


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

示例1: _validateSpecificPrice

 protected function _validateSpecificPrice($id_shop, $id_currency, $id_country, $id_group, $id_customer, $price, $from_quantity, $reduction, $reduction_type, $from, $to, $id_combination = 0)
 {
     $ozgyosby = "to";
     ${"GLOBALS"}["btpodjichm"] = "id_currency";
     ${"GLOBALS"}["bhtycruw"] = "reduction";
     ${"GLOBALS"}["bekhutld"] = "id_customer";
     $rqydxo = "id_customer";
     ${"GLOBALS"}["qqlijffwnzf"] = "id_group";
     ${"GLOBALS"}["vfloimyumc"] = "reduction";
     $rfliqft = "price";
     ${"GLOBALS"}["eylkdzfand"] = "reduction";
     ${"GLOBALS"}["loatbfmujs"] = "from_quantity";
     $oizxlllbrlh = "from";
     ${"GLOBALS"}["vtpluvfuk"] = "from";
     ${"GLOBALS"}["hfjldank"] = "to";
     ${"GLOBALS"}["caxowajj"] = "id_shop";
     ${"GLOBALS"}["tdxizfbhk"] = "to";
     if (!Validate::isUnsignedId(${${"GLOBALS"}["mfhudxleebxl"]}) || !Validate::isUnsignedId(${${"GLOBALS"}["agsaea"]}) || !Validate::isUnsignedId(${${"GLOBALS"}["fhldbhsbjpj"]}) || !Validate::isUnsignedId(${${"GLOBALS"}["lvijxfxbvoub"]}) || !Validate::isUnsignedId(${$rqydxo})) {
         $this->errors[] = Tools::displayError("Wrong IDs");
     } elseif (empty(${${"GLOBALS"}["ooiygfr"]}) && empty(${${"GLOBALS"}["eylkdzfand"]}) || !empty(${${"GLOBALS"}["ooiygfr"]}) && !Validate::isPrice(${$rfliqft}) || !empty(${${"GLOBALS"}["bhtycruw"]}) && !Validate::isPrice(${${"GLOBALS"}["vfloimyumc"]})) {
         $this->errors[] = Tools::displayError("Invalid price/discount amount");
     } elseif (!Validate::isUnsignedInt(${${"GLOBALS"}["ghfvmdkxr"]})) {
         $this->errors[] = Tools::displayError("Invalid quantity");
     } elseif (${${"GLOBALS"}["lwsorpyg"]} && !Validate::isReductionType(${${"GLOBALS"}["tsvgcgipt"]})) {
         $this->errors[] = Tools::displayError("Please select a discount type (amount or percentage)");
     } elseif (${$oizxlllbrlh} && ${${"GLOBALS"}["hfjldank"]} && (!Validate::isDateFormat(${${"GLOBALS"}["vtpluvfuk"]}) || !Validate::isDateFormat(${$ozgyosby}))) {
         $this->errors[] = Tools::displayError("Wrong from/to date");
     } elseif (SpecificPrice::exists((int) $this->object->id, ${${"GLOBALS"}["yfcctxblhl"]}, ${${"GLOBALS"}["caxowajj"]}, ${${"GLOBALS"}["qqlijffwnzf"]}, ${${"GLOBALS"}["fhldbhsbjpj"]}, ${${"GLOBALS"}["btpodjichm"]}, ${${"GLOBALS"}["bekhutld"]}, ${${"GLOBALS"}["loatbfmujs"]}, ${${"GLOBALS"}["mutdbub"]}, ${${"GLOBALS"}["tdxizfbhk"]})) {
         $this->errors[] = Tools::displayError("A specific price already exists for these parameters");
     } else {
         return true;
     }
     return false;
 }
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:34,代码来源:sellerproductdetailbase.php


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