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


PHP _ml_strtolower函数代码示例

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


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

示例1: __formatRow

 function __formatRow($row)
 {
     $row['date'] = $this->__prepareDateToDisplay($row);
     if ($row['items_sold'] == 0 or $row['product_added_to_cart_qty'] == 0) {
         $row['cr_added_sold'] = '0';
     } else {
         $row['cr_added_sold'] = round(100 * (1 - $row['items_sold'] / $row['product_added_to_cart_qty']), 2);
     }
     switch (_ml_strtolower($this->__render_class_name)) {
         case 'creportrenderflattable':
             $row['items_sold'] = modApiFunc("Localization", "num_format", $row['items_sold']);
             $row['product_added_to_cart_qty'] = modApiFunc("Localization", "num_format", $row['product_added_to_cart_qty']);
             $row['cr_added_sold'] .= '%';
             break;
         case 'creportrendercsv':
             //                           Stock Chart'
             $date = mktime(0, 0, 0, $row['datetime_month'], $row['datetime_day'], $row['datetime_year']);
             $row['date'] = date('Y-m-d', $date);
             break;
         default:
             // simple html table, binary excel or chart
             // Let's stay as is.
             break;
     }
     return $row;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:26,代码来源:reports_product_cart_vs_sales_by_period.php

示例2: __formatRow

 function __formatRow($row)
 {
     switch (_ml_strtolower($this->__render_class_name)) {
         case 'creportrenderflattable':
             $row['view_number'] = modApiFunc("Localization", "num_format", $row['view_number']);
             $parsed = @parse_url($row['page_url']);
             if (isset($parsed['path']) and !empty($parsed['path'])) {
                 $url = $parsed['path'];
                 if (isset($parsed['query']) and !empty($parsed['query'])) {
                     $url .= '?' . $parsed['query'];
                 }
             } else {
                 $url = $row['page_url'];
             }
             //        ,
             $row['page_url'] = $this->__prepareLongUrl($url, 80, 'font-weight: bold; color: #666666;');
             $row['bar'] = $this->__getBar($row['percent_pixel']);
             $row['percent'] = modApiFunc("Localization", "num_format", $row['percent']) . '%';
             break;
         default:
             // simple html table, binary excel or chart
             // Let's stay as is.
             break;
     }
     return $row;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:26,代码来源:reports_top_pages.php

示例3: __formatRow

 function __formatRow($row)
 {
     switch (_ml_strtolower($this->__render_class_name)) {
         case 'creportrenderflattable':
             $row['bar'] = $this->__getBar($row['percent_pixel']);
             if (isset($row['items_sold'])) {
                 $row['items_sold'] = modApiFunc("Localization", "num_format", $row['items_sold']);
             }
             if (isset($row['product_views'])) {
                 $row['product_views'] = modApiFunc("Localization", "num_format", $row['product_views']);
             }
             if (isset($row['product_added_to_cart_times'])) {
                 $row['product_added_to_cart_times'] = modApiFunc("Localization", "num_format", $row['product_added_to_cart_times']);
             }
             if (isset($row['product_deleted_from_cart_times'])) {
                 $row['product_deleted_from_cart_times'] = modApiFunc("Localization", "num_format", $row['product_deleted_from_cart_times']);
             }
             if (isset($row['product_added_to_cart_qty'])) {
                 $row['product_added_to_cart_qty'] = modApiFunc("Localization", "num_format", $row['product_added_to_cart_qty']);
             }
             if (isset($row['product_deleted_from_cart_qty'])) {
                 $row['product_deleted_from_cart_qty'] = modApiFunc("Localization", "num_format", $row['product_deleted_from_cart_qty']);
             }
             if (isset($row['product_name'])) {
                 $row['product_name'] = $this->getProductInfoLink($row['product_id'], $row['product_name']);
             }
             break;
     }
     return $row;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:30,代码来源:reports_products.php

示例4: onHook

 function onHook($actionObj)
 {
     switch (_ml_strtolower(get_class($actionObj))) {
         case "confirmdeleteproducts":
             $parent_entity = "product";
             $entities_ids = modApiFunc("Catalog", "getEditableProductsID");
             break;
         case "confirmdeletecategory":
             global $application;
             $request =& $application->getInstance('Request');
             $parent_entity = "product";
             $entities_ids = explode("|", $request->getValueByKey('ProdsId'));
             break;
         case "confirmdeleteproducttypes":
             global $application;
             $request =& $application->getInstance('Request');
             $parent_entity = "ptype";
             $entities_ids = $request->getValueByKey('ProductType');
             break;
     }
     modApiFunc("Product_Options", "delAllOptionsFromEntities", $parent_entity, $entities_ids);
     modApiFunc("Product_Options", "delAllCRulesFromEntities", $parent_entity, $entities_ids);
     modApiFunc("Product_Options", "delAllInventoryFromEntities", $parent_entity, $entities_ids);
     modApiFunc("Product_Options", "delAllOptionsSettingsFromEntities", $parent_entity, $entities_ids);
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:25,代码来源:delete_all_options_from_entities.php

示例5: __formatRow

 function __formatRow($row)
 {
     if ($row['carts_created_qty'] == 0) {
         $row['abandonment_rate'] = '0';
     } else {
         $row['abandonment_rate'] = round(100 * (1 - $row['order_qty'] / $row['carts_created_qty']), 2);
     }
     switch (_ml_strtolower($this->__render_class_name)) {
         case 'creportrenderflattable':
             $row['abandonment_rate'] .= '%';
             $row['order_qty'] = modApiFunc("Localization", "num_format", $row['order_qty']);
             $row['carts_created_qty'] = modApiFunc("Localization", "num_format", $row['carts_created_qty']);
             $row['date'] = $this->__prepareDateToDisplay($row);
             break;
         case 'creportrenderchart':
             $row['date'] = $this->__prepareDateToDisplay($row);
             break;
         case 'creportrendercsv':
             //                           Stock Chart'
             $date = mktime(0, 0, 0, $row['datetime_month'], $row['datetime_day'], $row['datetime_year']);
             $row['date'] = date('Y-m-d', $date);
             break;
         default:
             $row['abandonment_rate'] .= '%';
             $row['date'] = $this->__prepareDateToDisplay($row);
             break;
     }
     return $row;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:29,代码来源:reports_abandonment_rates_by_period.php

示例6: onAction

 function onAction()
 {
     global $application;
     $mm = $application->getInstance('Modules_Manager');
     $lang = _ml_strtolower($application->getAppIni('LANGUAGE'));
     $_path = dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/avactis-themes/system/resources/messages.ini';
     modApiFunc("Resources", "dropMessageGroupByMetaId", 'CZ');
     modApiFunc("Resources", "dropMessageMetaByMetaId", 'CZ');
     modApiFunc("Resources", "addResourceIniToDB", $_path, 'CZ', 'customer_messages', 'CZ');
     modApiFunc("Resources", "dropMessageGroupByMetaId", 'SYS');
     modApiFunc("Resources", "dropMessageMetaByMetaId", 'SYS');
     modApiFunc("Resources", "addResourceIniToDB", $application->getAppIni('PATH_ADMIN_RESOURCES') . 'system-messages-' . $lang . '.ini', 'SYS', 'system_messages', 'AZ');
     modApiFunc("Resources", "dropMessageGroupByMetaId", 'ML');
     modApiFunc("Resources", "dropMessageMetaByMetaId", 'ML');
     modApiFunc("Resources", "addResourceIniToDB", $application->getAppIni('PATH_ADMIN_RESOURCES') . 'multilang-messages-' . $lang . '.ini', 'ML', 'MultiLang', 'AZ');
     modApiFunc("Resources", "dropMessageGroupByMetaId", 'CFG');
     modApiFunc("Resources", "dropMessageMetaByMetaId", 'CFG');
     modApiFunc("Resources", "addResourceIniToDB", $application->getAppIni('PATH_ADMIN_RESOURCES') . 'configuration-messages-' . $lang . '.ini', 'CFG', 'Configuration', 'AZ');
     foreach ($mm->moduleList as $module_name => $moduleInfo) {
         if (isset($mm->modulesResFiles[$moduleInfo->shortName])) {
             modApiFunc("Resources", "dropMessageGroupByMetaId", $moduleInfo->shortName);
             modApiFunc("Resources", "dropMessageMetaByMetaId", $moduleInfo->shortName);
             modApiFunc("Resources", "addResourceIniToDB", $mm->modulesResFiles[$moduleInfo->shortName], $moduleInfo->shortName, $moduleInfo->name, 'AZ');
         }
     }
     CCacheFactory::clearAll();
     die('done');
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:28,代码来源:reload_resources.php

示例7: onHook

 function onHook($actionObj)
 {
     switch (_ml_strtolower(get_class($actionObj))) {
         case "copytoproducts":
             $from_entity = "product";
             $to_entity = "product";
             $copy_results = modApiFunc("Session", "get", "CopyProductsResult");
             break;
         case "addproductinfoaction":
             if ($actionObj->new_product_id == null) {
                 return;
             }
             $from_entity = "ptype";
             $to_entity = "product";
             $copy_results = array($actionObj->ptype_id_of_new_product => $actionObj->new_product_id);
             break;
     }
     if (!empty($copy_results)) {
         foreach ($copy_results as $old_eid => $new_eid) {
             $tmap = modApiFunc("Product_Options", "copyAllOptionsFromEntityToEntity", $from_entity, $old_eid, $to_entity, $new_eid);
             modApiFunc("Product_Options", "copyAllOptionsSettingsFromEntityToEntity", $from_entity, $old_eid, $to_entity, $new_eid);
             modApiFunc("Product_Options", "copyAllCRulesFromEntityToEntity", $from_entity, $old_eid, $to_entity, $new_eid, $tmap);
             modApiFunc("Product_Options", "copyAllInventoryFromEntityToEntity", $from_entity, $old_eid, $to_entity, $new_eid, $tmap);
         }
     }
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:26,代码来源:copy_all_options_from_entity_to_entity.php

示例8: __formatRow

 function __formatRow($row)
 {
     $row['date'] = $this->__prepareDateToDisplay($row);
     switch (_ml_strtolower($this->__render_class_name)) {
         case 'creportrenderflattable':
             $this->__total_views += $row['product_views'];
             $this->__total_items_sold += $row['items_sold'];
             $this->__total_added_to_cart_times += $row['product_added_to_cart_times'];
             $this->__total_added_to_cart_qty += $row['product_added_to_cart_qty'];
             $this->__total_deleted_from_cart_qty += $row['product_deleted_from_cart_qty'];
             $this->__total_deleted_from_cart_times += $row['product_deleted_from_cart_times'];
             $row['product_views'] = modApiFunc("Localization", "num_format", $row['product_views']);
             $row['items_sold'] = modApiFunc("Localization", "num_format", $row['items_sold']);
             $row['product_added_to_cart_times'] = modApiFunc("Localization", "num_format", $row['product_added_to_cart_times']);
             $row['product_deleted_from_cart_times'] = modApiFunc("Localization", "num_format", $row['product_deleted_from_cart_times']);
             $row['product_added_to_cart_qty'] = modApiFunc("Localization", "num_format", $row['product_added_to_cart_qty']);
             $row['product_deleted_from_cart_qty'] = modApiFunc("Localization", "num_format", $row['product_deleted_from_cart_qty']);
             break;
         default:
             // simple html table, binary excel or chart
             // Let's stay as is.
             $this->__total_views += $row['product_views'];
             $this->__total_items_sold += $row['items_sold'];
             $this->__total_added_to_cart_times += $row['product_added_to_cart_times'];
             $this->__total_added_to_cart_qty += $row['product_added_to_cart_qty'];
             $this->__total_deleted_from_cart_qty += $row['product_deleted_from_cart_qty'];
             $this->__total_deleted_from_cart_times += $row['product_deleted_from_cart_times'];
             break;
     }
     return $row;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:31,代码来源:reports_summary_product_stat.php

示例9: _ml_strtolower

 function &getMessageResources()
 {
     global $application;
     static $_messageResources;
     if (!isset($_messageResources)) {
         $lang = _ml_strtolower($application->getAppIni('LANGUAGE'));
         $_messageResources = new MessageResources(dirname(__FILE__) . '/resources/subscriptions-messages-' . $lang . '.ini', 'AdminZone');
     }
     return $_messageResources;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:10,代码来源:subscriptions_api.php

示例10: isPromoCodePromoCodeUnique

 function isPromoCodePromoCodeUnique($data)
 {
     $promo_code_list = modApiFunc("PromoCodes", "getPromoCodesListFullAZ");
     foreach ($promo_code_list as $pc_info) {
         if (_ml_strtolower($pc_info["promo_code"]) == _ml_strtolower($data)) {
             return $pc_info["id"];
         }
     }
     return true;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:10,代码来源:add_promo_code_info_action.php

示例11: onHook

 function onHook($actionObj)
 {
     switch (_ml_strtolower(get_class($actionObj))) {
         case "copytoproducts":
             $copy_results = modApiFunc("Session", "get", "CopyProductsResult");
             break;
     }
     if (!empty($copy_results)) {
         foreach ($copy_results as $old_pid => $new_pid) {
             modApiFunc("Product_Images", "copyAllImagesFromProductToProduct", $old_pid, $new_pid);
         }
     }
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:13,代码来源:copy_all_images_from_product_to_product.php

示例12: output

 function output()
 {
     global $application;
     $fargs = func_get_args();
     $start_dir = isset($fargs[4]) ? $fargs[4] : $application->getAppIni('PATH_ASC_ROOT');
     $start_dir = str_replace("\\", "/", $start_dir);
     $browser_type = _ml_strtolower($fargs[0]);
     $template_contents = array('StartFolder' => $start_dir, 'ParentBlock' => $fargs[1], 'ParentField' => $fargs[2], 'PostChoiceJScode' => isset($fargs[3]) ? $fargs[3] : '');
     $this->_Template_Contents = $template_contents;
     $application->registerAttributes($this->_Template_Contents);
     $this->mTmplFiller =& $application->getInstance('TmplFiller');
     return $this->mTmplFiller->fill("shell/" . $browser_type . "_browser/", "container.tpl.html", array());
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:13,代码来源:fs_browser.php

示例13: onHook

 function onHook($actionObj)
 {
     switch (_ml_strtolower(get_class($actionObj))) {
         case "confirmdeleteproducts":
             $products_ids = modApiFunc("Catalog", "getEditableProductsID");
             break;
         case "confirmdeletecategory":
             global $application;
             $request =& $application->getInstance('Request');
             $products_ids = explode("|", $request->getValueByKey('ProdsId'));
             break;
     }
     modApiFunc('Product_Files', 'delAllFilesFromProducts', $products_ids);
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:14,代码来源:delete_all_files_from_products.php

示例14: __formatRow

 function __formatRow($row)
 {
     $row['date'] = $this->__prepareDateToDisplay($row);
     switch (_ml_strtolower($this->__render_class_name)) {
         case 'creportrenderflattable':
             $row['order_qty'] = modApiFunc("Localization", "num_format", $row['order_qty']);
             $row['order_total_sum'] = modApiFunc("Localization", "currency_format", round($row['order_total_sum'], 2));
             break;
         case 'creportrenderchart':
             $row['order_total_sum'] = round($row['order_total_sum'], 2);
             break;
     }
     return $row;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:14,代码来源:charts_orders_by_period.php

示例15: __formatRow

 function __formatRow($row)
 {
     switch (_ml_strtolower($this->__render_class_name)) {
         case 'creportrendercsv':
             $date = mktime(0, 0, 0, $row['datetime_month'], $row['datetime_day'], $row['datetime_year']);
             $row['date'] = date('Y-m-d', $date);
             break;
         default:
             $date = mktime(0, 0, 0, $row['datetime_month'], $row['datetime_day'], $row['datetime_year']);
             $row['date'] = modApiFunc("Localization", "date_format", $date, false);
             // false - do not apply time shift
             break;
     }
     return $row;
 }
开发者ID:KICHIRO20,项目名称:-Myproject_part1-,代码行数:15,代码来源:reports_visitor_statistics.php


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