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


PHP Argument::createIntListTypeArgument方法代码示例

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


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

示例1: getArgDefinitions

 /**
  * @inheritDoc
  */
 protected function getArgDefinitions()
 {
     /** @var ArgumentCollection $arguments */
     $arguments = parent::getArgDefinitions();
     $arguments->addArgument(Argument::createIntListTypeArgument("dealer_id"));
     return $arguments;
 }
开发者ID:thelia-modules,项目名称:DealerTeam,代码行数:10,代码来源:TeamLoop.php

示例2: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     $argumentCollection = parent::getArgDefinitions();
     $argumentCollection->addArgument(Argument::createIntListTypeArgument('product', null, true));
     $argumentCollection->get('order')->default = "accessory";
     $argumentCollection->get('order')->type->getKey(0)->addValue('accessory');
     $argumentCollection->get('order')->type->getKey(0)->addValue('accessory_reverse');
     return $argumentCollection;
 }
开发者ID:NandoKstroNet,项目名称:thelia,代码行数:12,代码来源:Accessory.php

示例3: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     $argumentCollection = parent::getArgDefinitions();
     $argumentCollection->addArgument(Argument::createIntTypeArgument('product'))->addArgument(Argument::createIntTypeArgument('category'))->addArgument(Argument::createIntListTypeArgument('exclude_product'))->addArgument(Argument::createIntListTypeArgument('exclude_category'));
     $argumentCollection->get('order')->default = "associated_content";
     $argumentCollection->get('order')->type->getKey(0)->addValue('associated_content');
     $argumentCollection->get('order')->type->getKey(0)->addValue('associated_content_reverse');
     return $argumentCollection;
 }
开发者ID:alex63530,项目名称:thelia,代码行数:12,代码来源:AssociatedContent.php

示例4: getArgDefinitions

 /**
  * @return \Thelia\Core\Template\Loop\Argument\ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     $collection = new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('exclude'), Argument::createBooleanOrBothTypeArgument('visible', 1), new Argument('order', new TypeCollection(new EnumListType(array('alpha', 'alpha-reverse', 'manual', 'manual-reverse', 'random'))), 'manual'), Argument::createIntTypeArgument('lang'), Argument::createIntTypeArgument('category'), Argument::createIntTypeArgument('product'), Argument::createIntTypeArgument('folder'), Argument::createIntTypeArgument('content'), Argument::createAnyTypeArgument('source'), Argument::createIntTypeArgument('source_id'), Argument::createBooleanTypeArgument('force_return', true));
     // Add possible document sources
     foreach ($this->possible_sources as $source) {
         $collection->addArgument(Argument::createIntTypeArgument($source));
     }
     return $collection;
 }
开发者ID:alex63530,项目名称:thelia,代码行数:12,代码来源:Document.php

示例5: getArgDefinitions

 /**
  * @return \Thelia\Core\Template\Loop\Argument\ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     $collection = new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('exclude'), Argument::createBooleanOrBothTypeArgument('visible', 1), new Argument('order', new TypeCollection(new EnumListType(array('alpha', 'alpha-reverse', 'manual', 'manual-reverse', 'random'))), 'manual'), Argument::createIntTypeArgument('width'), Argument::createIntTypeArgument('height'), Argument::createIntTypeArgument('rotation', 0), Argument::createAnyTypeArgument('background_color'), Argument::createIntTypeArgument('quality'), new Argument('resize_mode', new TypeCollection(new EnumType(array('crop', 'borders', 'none'))), 'none'), Argument::createAnyTypeArgument('effects'), Argument::createIntTypeArgument('category'), Argument::createIntTypeArgument('product'), Argument::createIntTypeArgument('folder'), Argument::createIntTypeArgument('content'), Argument::createAnyTypeArgument('source'), Argument::createIntTypeArgument('source_id'), Argument::createBooleanTypeArgument('force_return', true), Argument::createBooleanTypeArgument('ignore_processing_errors', true));
     // Add possible image sources
     foreach ($this->possible_sources as $source) {
         $collection->addArgument(Argument::createIntTypeArgument($source));
     }
     return $collection;
 }
开发者ID:badelas,项目名称:thelia,代码行数:12,代码来源:Image.php

示例6: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntTypeArgument('product'), Argument::createBooleanOrBothTypeArgument('visible', 1), Argument::createAnyTypeArgument('title'), Argument::createBooleanTypeArgument('current'), Argument::createBooleanTypeArgument('with_prev_next_info', false), new Argument('order', new TypeCollection(new Type\EnumListType(array('id', 'id-reverse', 'alpha', 'alpha-reverse', 'manual', 'manual-reverse', 'random', 'created', 'created-reverse', 'updated', 'updated-reverse'))), 'alpha'), Argument::createIntListTypeArgument('exclude'));
 }
开发者ID:vigourouxjulien,项目名称:thelia,代码行数:7,代码来源:Brand.php

示例7: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntTypeArgument('currency'), Argument::createIntTypeArgument('product'), Argument::createBooleanTypeArgument('promo'), Argument::createBooleanTypeArgument('new'), Argument::createBooleanTypeArgument('default'), Argument::createAnyTypeArgument('ref'), new Argument('attribute_availability', new TypeCollection(new Type\IntToCombinedIntsListType())), new Argument('order', new TypeCollection(new Type\EnumListType(array('quantity', 'quantity_reverse', 'min_price', 'max_price', 'promo', 'new', 'random'))), 'random'));
 }
开发者ID:NandoKstroNet,项目名称:thelia,代码行数:7,代码来源:ProductSaleElements.php

示例8: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('exclude'), Argument::createIntListTypeArgument('tax_rule'), Argument::createIntListTypeArgument('exclude_tax_rule'), Argument::createIntTypeArgument('country'), new Argument('order', new TypeCollection(new Type\EnumListType(array('id', 'id_reverse', 'alpha', 'alpha_reverse'))), 'alpha'));
 }
开发者ID:margery,项目名称:thelia,代码行数:7,代码来源:Tax.php

示例9: 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

示例10: getArgDefinitions

 /**
  * Definition of loop arguments
  *
  * example :
  *
  * public function getArgDefinitions()
  * {
  *  return new ArgumentCollection(
  *
  *       Argument::createIntListTypeArgument('id'),
  *           new Argument(
  *           'ref',
  *           new TypeCollection(
  *               new Type\AlphaNumStringListType()
  *           )
  *       ),
  *       Argument::createIntListTypeArgument('category'),
  *       Argument::createBooleanTypeArgument('new'),
  *       ...
  *   );
  * }
  *
  * @return \Thelia\Core\Template\Loop\Argument\ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument("id"), Argument::createAnyTypeArgument("content_source_type"), Argument::createAnyTypeArgument("content_source_id"), Argument::createEnumListTypeArgument("order", ["id", "id-reverse", "start", "start-reverse", "end", "end-reverse", "content_source_type", "content_source_type-reverse", "content_source_id", "content_source_id-reverse"], "id"));
 }
开发者ID:bcbrr,项目名称:PopIn,代码行数:28,代码来源:PopInCampaign.php

示例11: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('product'), Argument::createIntListTypeArgument('template'), Argument::createIntListTypeArgument('exclude_template'), Argument::createBooleanOrBothTypeArgument('visible', 1), Argument::createIntListTypeArgument('exclude'), new Argument('order', new TypeCollection(new Type\EnumListType(array('id', 'id_reverse', 'alpha', 'alpha-reverse', 'manual', 'manual_reverse'))), 'manual'), Argument::createAnyTypeArgument('title'));
 }
开发者ID:NandoKstroNet,项目名称:thelia,代码行数:7,代码来源:Feature.php

示例12: getArgDefinitions

 /**
  * Definition of loop arguments
  *
  * example :
  *
  * public function getArgDefinitions()
  * {
  *  return new ArgumentCollection(
  *
  *       Argument::createIntListTypeArgument('id'),
  *           new Argument(
  *           'ref',
  *           new TypeCollection(
  *               new Type\AlphaNumStringListType()
  *           )
  *       ),
  *       Argument::createIntListTypeArgument('category'),
  *       Argument::createBooleanTypeArgument('new'),
  *       ...
  *   );
  * }
  *
  * @return \Thelia\Core\Template\Loop\Argument\ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('category'), new Argument("order", new TypeCollection(new EnumListType(static::getAllowedOrders())), static::DEFAULT_ORDER));
 }
开发者ID:gillesbourgeat,项目名称:core,代码行数:28,代码来源:ImportExportType.php

示例13: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('parent'), Argument::createIntListTypeArgument('exclude_parent'), Argument::createIntListTypeArgument('product'), Argument::createIntListTypeArgument('exclude_product'), Argument::createIntListTypeArgument('content'), Argument::createBooleanTypeArgument('current'), Argument::createBooleanTypeArgument('not_empty', 0), Argument::createBooleanTypeArgument('with_prev_next_info', false), Argument::createBooleanTypeArgument('need_count_child', false), Argument::createBooleanTypeArgument('need_product_count', false), Argument::createBooleanOrBothTypeArgument('visible', 1), new Argument('order', new TypeCollection(new Type\EnumListType(array('id', 'id_reverse', 'alpha', 'alpha_reverse', 'manual', 'manual_reverse', 'visible', 'visible_reverse', 'random'))), 'manual'), Argument::createIntListTypeArgument('exclude'));
 }
开发者ID:gillesbourgeat,项目名称:core,代码行数:7,代码来源:Category.php

示例14: getArgDefinitions

 /**
  * Definition of loop arguments
  *
  * example :
  *
  * public function getArgDefinitions()
  * {
  *  return new ArgumentCollection(
  *
  *       Argument::createIntListTypeArgument('id'),
  *           new Argument(
  *           'ref',
  *           new TypeCollection(
  *               new Type\AlphaNumStringListType()
  *           )
  *       ),
  *       Argument::createIntListTypeArgument('category'),
  *       Argument::createBooleanTypeArgument('new'),
  *       ...
  *   );
  * }
  *
  * @return \Thelia\Core\Template\Loop\Argument\ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), new Argument("order", new TypeCollection(new EnumListType(["id", "id_reverse", "alpha", "alpha_reverse", "manual", "manual_reverse"])), "manual"));
 }
开发者ID:alex63530,项目名称:thelia,代码行数:28,代码来源:ImportExportCategory.php

示例15: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('area'), Argument::createIntListTypeArgument('exclude_area'), Argument::createBooleanTypeArgument('with_area'), Argument::createIntListTypeArgument('exclude'));
 }
开发者ID:margery,项目名称:thelia,代码行数:7,代码来源:Country.php


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