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


PHP Argument::createEnumListTypeArgument方法代码示例

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


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

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

示例2: 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("product_sale_elements_id"), Argument::createIntListTypeArgument("product_image_id"), Argument::createEnumListTypeArgument("order", ["position", "position-reverse"], "position"));
 }
开发者ID:NandoKstroNet,项目名称:thelia,代码行数:28,代码来源:ProductSaleElementsImage.php

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

示例4: getArgDefinitions

 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createAnyTypeArgument('module'), new Argument('code', new TypeCollection(new AlphaNumStringListType())), Argument::createEnumListTypeArgument('order', ['id', 'module', 'module_reverse'], 'id'));
 }
开发者ID:MaximeMorille,项目名称:CustomerGroupAcl,代码行数:4,代码来源:AclLoop.php

示例5: 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("title"), Argument::createAnyTypeArgument("shortcode"), Argument::createEnumListTypeArgument("order", ["id", "id-reverse", "title", "title-reverse", "shortcode", "shortcode-reverse"], "id"));
 }
开发者ID:InformatiqueProg,项目名称:Diaporamas,代码行数:28,代码来源:Diaporama.php

示例6: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createAnyTypeArgument('code'), Argument::createEnumListTypeArgument('order', ['alpha', 'alpha_reverse', 'manual', 'manual_reverse'], 'manual'));
 }
开发者ID:vigourouxjulien,项目名称:thelia,代码行数:7,代码来源:OrderStatus.php

示例7: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntTypeArgument('product_sale_elements', null, true), Argument::createEnumListTypeArgument('order', ['alpha', 'alpha_reverse', 'manual', 'manual_reverse'], 'alpha'));
 }
开发者ID:margery,项目名称:thelia,代码行数:7,代码来源:AttributeCombination.php


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