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


PHP Argument::createAnyListTypeArgument方法代码示例

本文整理汇总了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'));
 }
开发者ID:jeremyFreeAgent,项目名称:thelia,代码行数:7,代码来源:Product.php

示例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'));
 }
开发者ID:shirone,项目名称:thelia,代码行数:4,代码来源:Order.php

示例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'));
 }
开发者ID:margery,项目名称:thelia,代码行数:7,代码来源:Lang.php

示例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'));
 }
开发者ID:zorn-v,项目名称:thelia,代码行数:7,代码来源:Lang.php

示例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));
 }
开发者ID:adirkuhn,项目名称:thelia,代码行数:7,代码来源:FeatureValue.php


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