本文整理汇总了PHP中Thelia\Core\Template\Loop\Argument\Argument::createAnyListTypeArgument方法的典型用法代码示例。如果您正苦于以下问题:PHP Argument::createAnyListTypeArgument方法的具体用法?PHP Argument::createAnyListTypeArgument怎么用?PHP Argument::createAnyListTypeArgument使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Thelia\Core\Template\Loop\Argument\Argument
的用法示例。
在下文中一共展示了Argument::createAnyListTypeArgument方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
public function getArgDefinitions()
{
return new ArgumentCollection(Argument::createIntListTypeArgument('id'), new Argument('customer', new TypeCollection(new Type\IntType(), new Type\EnumType(array('current', '*'))), 'current'), new Argument('status', new TypeCollection(new Type\IntListType(), new Type\EnumType(array('*')))), Argument::createIntListTypeArgument('exclude_status'), new Argument('status_code', new TypeCollection(new Type\AnyListType(), new Type\EnumType(array('*')))), Argument::createAnyListTypeArgument('exclude_status_code'), new Argument('order', new TypeCollection(new Type\EnumListType(array('id', 'id-reverse', 'reference', 'reference-reverse', 'create-date', 'create-date-reverse', 'company', 'company-reverse', 'customer-name', 'customer-name-reverse', 'status', 'status-reverse'))), 'create-date-reverse'));
}
示例3: getArgDefinitions
/**
* @return ArgumentCollection
*/
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createAnyListTypeArgument('code'), Argument::createAnyListTypeArgument('locale'), Argument::createIntListTypeArgument('exclude'), Argument::createBooleanTypeArgument('default_only', false), Argument::createBooleanTypeArgument('exclude_default', false), new Argument('order', new TypeCollection(new Type\EnumListType(array('id', 'id_reverse', 'alpha', 'alpha_reverse', 'position', 'position_reverse'))), 'position'));
}
示例4: getArgDefinitions
/**
* @return ArgumentCollection
*/
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createAnyListTypeArgument('code'), Argument::createAnyListTypeArgument('locale'), Argument::createIntListTypeArgument('exclude'), Argument::createBooleanOrBothTypeArgument('active', true), Argument::createBooleanOrBothTypeArgument('visible', true), Argument::createBooleanTypeArgument('default_only', false), Argument::createBooleanTypeArgument('exclude_default', false), Argument::createEnumListTypeArgument('order', ['id', 'id_reverse', 'alpha', 'alpha_reverse', 'position', 'position_reverse'], 'position'));
}
示例5: getArgDefinitions
/**
* @return ArgumentCollection
*/
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createIntTypeArgument('feature', null, true), Argument::createIntTypeArgument('product'), Argument::createIntListTypeArgument('feature_availability'), Argument::createAnyListTypeArgument('free_text'), Argument::createBooleanTypeArgument('exclude_feature_availability', 0), Argument::createBooleanTypeArgument('exclude_free_text', 0), new Argument('order', new TypeCollection(new Type\EnumListType(array('alpha', 'alpha_reverse', 'manual', 'manual_reverse'))), 'manual'), Argument::createBooleanTypeArgument('force_return', true));
}