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


PHP Argument::createFloatTypeArgument方法代碼示例

本文整理匯總了PHP中Thelia\Core\Template\Loop\Argument\Argument::createFloatTypeArgument方法的典型用法代碼示例。如果您正苦於以下問題:PHP Argument::createFloatTypeArgument方法的具體用法?PHP Argument::createFloatTypeArgument怎麽用?PHP Argument::createFloatTypeArgument使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Thelia\Core\Template\Loop\Argument\Argument的用法示例。


在下文中一共展示了Argument::createFloatTypeArgument方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createBooleanTypeArgument('complex', false), Argument::createIntListTypeArgument('id'), Argument::createAnyListTypeArgument('ref'), Argument::createIntListTypeArgument('category'), Argument::createIntListTypeArgument('brand'), Argument::createIntListTypeArgument('sale'), Argument::createIntListTypeArgument('category_default'), Argument::createBooleanTypeArgument('new'), Argument::createBooleanTypeArgument('promo'), Argument::createFloatTypeArgument('min_price'), Argument::createFloatTypeArgument('max_price'), Argument::createIntTypeArgument('min_stock'), Argument::createFloatTypeArgument('min_weight'), Argument::createFloatTypeArgument('max_weight'), Argument::createBooleanTypeArgument('with_prev_next_info', false), Argument::createBooleanOrBothTypeArgument('with_prev_next_visible', Type\BooleanOrBothType::ANY), Argument::createBooleanTypeArgument('current'), Argument::createBooleanTypeArgument('current_category'), Argument::createIntTypeArgument('depth', 1), Argument::createBooleanOrBothTypeArgument('virtual', Type\BooleanOrBothType::ANY), Argument::createBooleanOrBothTypeArgument('visible', 1), Argument::createIntTypeArgument('currency'), Argument::createAnyTypeArgument('title'), new Argument('order', new TypeCollection(new Type\EnumListType(['id', 'id_reverse', 'alpha', 'alpha_reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'created', 'created_reverse', 'updated', 'updated_reverse', 'ref', 'ref_reverse', 'promo', 'new', 'random', 'given_id'])), 'alpha'), Argument::createIntListTypeArgument('exclude'), Argument::createIntListTypeArgument('exclude_category'), new Argument('feature_availability', new TypeCollection(new Type\IntToCombinedIntsListType())), new Argument('feature_values', new TypeCollection(new Type\IntToCombinedStringsListType())), new Argument('attribute_non_strict_match', new TypeCollection(new Type\EnumListType(['min_stock', 'promo', 'new', 'min_weight', 'max_weight', 'min_price', 'max_price']), new Type\EnumType(['*', 'none'])), 'none'));
 }
開發者ID:jeremyFreeAgent,項目名稱:thelia,代碼行數:7,代碼來源:Product.php

示例2: getArgDefinitions

 protected function getArgDefinitions()
 {
     return parent::getArgDefinitions()->addArguments([Argument::createIntTypeArgument("category_id"), Argument::createFloatTypeArgument('min_price_ttc'), Argument::createFloatTypeArgument('max_price_ttc'), new Argument('attribute_availability', new TypeCollection(new IntToCombinedIntsListType()))]);
 }
開發者ID:thelia-modules,項目名稱:CriteriaSearch,代碼行數:4,代碼來源:CriteriaSearchProductLoop.php


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