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


PHP JSFactory::getAllProductExtraFieldValueDetail方法代码示例

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


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

示例1: get_html_characteristics

 function get_html_characteristics()
 {
     $jshopConfig = JSFactory::getConfig();
     $category_id = JRequest::getInt("category_id");
     if ($jshopConfig->admin_show_product_extra_field) {
         $dispatcher = JDispatcher::getInstance();
         $characteristic_fields = JSFactory::getAllProductExtraField();
         $characteristic_fieldvalues = JSFactory::getAllProductExtraFieldValueDetail();
         $characteristic_displayfields = JSFactory::getDisplayFilterExtraFieldForCategory($category_id);
         $view_name = "search";
         $view_config = array("template_path" => $jshopConfig->template_path . $jshopConfig->template . "/" . $view_name);
         $view = $this->getView($view_name, getDocumentType(), '', $view_config);
         $view->setLayout("characteristics");
         $view->assign('characteristic_fields', $characteristic_fields);
         $view->assign('characteristic_fieldvalues', $characteristic_fieldvalues);
         $view->assign('characteristic_displayfields', $characteristic_displayfields);
         $dispatcher->trigger('onBeforeDisplaySearchHtmlCharacteristics', array(&$view));
         $view->display();
     }
     die;
 }
开发者ID:olegverstka,项目名称:monax.dev,代码行数:21,代码来源:search.php

示例2: array

if ($manufacturer_id && $show_categorys) {
    $manufacturer = JTable::getInstance('manufacturer', 'jshop');
    $manufacturer->load($manufacturer_id);
    $categorys = $mainframe->getUserStateFromRequest($contextfilter . 'categorys', 'categorys', array());
    $categorys = filterAllowValue($categorys, "int+");
    $filter_categorys = $manufacturer->getCategorys();
}
if ($show_prices) {
    $fprice_from = $mainframe->getUserStateFromRequest($contextfilter . 'fprice_from', 'fprice_from');
    $fprice_from = saveAsPrice($fprice_from);
    $fprice_to = $mainframe->getUserStateFromRequest($contextfilter . 'fprice_to', 'fprice_to');
    $fprice_to = saveAsPrice($fprice_to);
}
if ($show_characteristics && $jshopConfig->admin_show_product_extra_field) {
    $characteristic_fields = JSFactory::getAllProductExtraField();
    $characteristic_fieldvalues = JSFactory::getAllProductExtraFieldValueDetail();
    $characteristic_displayfields = JSFactory::getDisplayFilterExtraFieldForCategory($category_id);
    $extra_fields_active = $mainframe->getUserStateFromRequest($contextfilter . 'extra_fields', 'extra_fields', array());
    $extra_fields_active = filterAllowValue($extra_fields_active, "array_int_k_v+");
}
$date_from = $mainframe->getUserStateFromRequest($contextfilter . 'dfrom', 'dfrom', date('d/m/Y'));
$date_to = $mainframe->getUserStateFromRequest($contextfilter . 'dto', 'dto', date('d/m/Y', time() + 60 * 60 * 24));
if ($date_from == '') {
    $date_from = date('d/m/Y');
}
if ($date_to == '') {
    $date_to = date('d/m/Y', time() + 60 * 60 * 24);
}
$Item_id = $params->get('item_id', '');
if ($Item_id == '') {
    $action = $_SERVER['REQUEST_URI'];
开发者ID:aldegtyarev,项目名称:vip-kvartira,代码行数:31,代码来源:mod_jshopping_filters.php

示例3: load_tmpl_characteristics

 private function load_tmpl_characteristics($category_id)
 {
     $jshopConfig = JSFactory::getConfig();
     if ($jshopConfig->admin_show_product_extra_field) {
         $dispatcher = JDispatcher::getInstance();
         $characteristic_fields = JSFactory::getAllProductExtraField();
         $characteristic_fieldvalues = JSFactory::getAllProductExtraFieldValueDetail();
         $characteristic_displayfields = JSFactory::getDisplayFilterExtraFieldForCategory($category_id);
         $view = $this->getView("search");
         $view->setLayout("characteristics");
         $view->assign('characteristic_fields', $characteristic_fields);
         $view->assign('characteristic_fieldvalues', $characteristic_fieldvalues);
         $view->assign('characteristic_displayfields', $characteristic_displayfields);
         $dispatcher->trigger('onBeforeDisplaySearchHtmlCharacteristics', array(&$view));
         $html = $view->loadTemplate();
     } else {
         $html = '';
     }
     return $html;
 }
开发者ID:panickylemon,项目名称:joomlastayn,代码行数:20,代码来源:search.php


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