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