本文整理汇总了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'));
}
示例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()))]);
}