作者:thelia-module
项目:DealerTea
/**
* @inheritDoc
*/
protected function getArgDefinitions()
{
/** @var ArgumentCollection $arguments */
$arguments = parent::getArgDefinitions();
$arguments->addArgument(Argument::createIntListTypeArgument("dealer_id"));
return $arguments;
}
作者:alex6353
项目:theli
/**
* @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;
}
作者:badela
项目:theli
/**
* @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;
}
作者:alex6353
项目:theli
/**
* @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;
}
作者:badela
项目:theli
/**
* @return ArgumentCollection
*/
protected function getArgDefinitions()
{
$argumentCollection = parent::getArgDefinitions();
$argumentCollection->addArgument(Argument::createIntTypeArgument('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;
}
作者:alex6353
项目:theli
/**
* Define common loop arguments
*
* @return Argument[]
*/
protected function getDefaultArgs()
{
$defaultArgs = [Argument::createBooleanTypeArgument('backend_context', false), Argument::createBooleanTypeArgument('force_return', false), Argument::createAnyTypeArgument('type')];
if (true === $this->countable) {
$defaultArgs = array_merge($defaultArgs, [Argument::createIntTypeArgument('offset', 0), Argument::createIntTypeArgument('page'), Argument::createIntTypeArgument('limit', PHP_INT_MAX)]);
}
if ($this instanceof SearchLoopInterface) {
$defaultArgs = array_merge($defaultArgs, [Argument::createAnyTypeArgument('search_term'), new Argument('search_in', new TypeCollection(new EnumListType($this->getSearchIn()))), new Argument('search_mode', new TypeCollection(new EnumType([SearchLoopInterface::MODE_ANY_WORD, SearchLoopInterface::MODE_SENTENCE, SearchLoopInterface::MODE_STRICT_SENTENCE])), SearchLoopInterface::MODE_STRICT_SENTENCE)]);
}
return $defaultArgs;
}
作者:bcbr
项目:TransferPaymen
/**
*
* define all args used in your loop
*
*
* example :
*
* public function getArgDefinitions()
* {
* return new ArgumentCollection(
* Argument::createIntListTypeArgument('id'),
* new Argument(
* 'ref',
* new TypeCollection(
* new Type\AlphaNumStringListType()
* )
* ),
* Argument::createIntListTypeArgument('category'),
* 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('current'),
*
* );
* }
*
* @return \Thelia\Core\Template\Loop\Argument\ArgumentCollection
*/
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createIntTypeArgument("order_id", null, true, false));
}
作者:jeremyFreeAgen
项目:theli
/**
* @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'));
}
作者:manuelbc
项目:theli
/**
* @return ArgumentCollection
*/
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('country'), Argument::createIntListTypeArgument('exclude'), Argument::createBooleanOrBothTypeArgument('visible', 1), new Argument('order', new TypeCollection(new EnumListType(['id', 'id_reverse', 'alpha', 'alpha_reverse', 'visible', 'visible_reverse', 'random'])), 'id'));
}
作者:NandoKstroNe
项目:theli
/**
* @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'));
}
作者:shiron
项目:theli
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'));
}
作者:vigourouxjulie
项目:theli
/**
* Define all args used in your loop
*
* @return ArgumentCollection
*/
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createIntTypeArgument('order', null, true));
}
作者:marger
项目:theli
/**
* @return ArgumentCollection
*/
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('country'), Argument::createIntTypeArgument('with_zone'), Argument::createIntTypeArgument('without_zone'), Argument::createBooleanOrBothTypeArgument('unassigned'), Argument::createIntListTypeArgument('module_id'), new Argument('order', new TypeCollection(new EnumListType(['id', 'id_reverse', 'alpha', 'name_reverse'])), 'alpha'));
}
作者:vigourouxjulie
项目:theli
/**
* @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'));
}
作者:marger
项目:theli
/**
* @return ArgumentCollection
*/
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createIntTypeArgument('category', null, true), Argument::createIntTypeArgument('depth'), Argument::createBooleanOrBothTypeArgument('visible', true, false));
}
作者:NandoKstroNe
项目:theli
/**
* @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'));
}
作者:AnthonyMeedl
项目:thelia-v2-module-Men
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createBooleanOrBothTypeArgument('visible'));
}
作者:vigourouxjulie
项目:theli
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createAnyTypeArgument('serializer'), new Argument('order', new TypeCollection(new EnumType(['alpha', 'alpha_reverse'])), 'alpha'));
}
作者:ThomasArnau
项目:SoColissim
/**
*
* define all args used in your loop
*
*
* example :
*
* public function getArgDefinitions()
* {
* return new ArgumentCollection(
* Argument::createIntListTypeArgument('id'),
* new Argument(
* 'ref',
* new TypeCollection(
* new Type\AlphaNumStringListType()
* )
* ),
* Argument::createIntListTypeArgument('category'),
* 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('current'),
*
* );
* }
*
* @return \Thelia\Core\Template\Loop\Argument\ArgumentCollection
*/
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createAnyTypeArgument("zipcode", ""), Argument::createAnyTypeArgument("city", ""), Argument::createIntTypeArgument("address"));
}
作者:vigourouxjulie
项目:theli
/**
* @return ArgumentCollection
*/
protected function getArgDefinitions()
{
return new ArgumentCollection(Argument::createBooleanTypeArgument('current', 1), Argument::createIntListTypeArgument('id'), Argument::createBooleanTypeArgument('with_prev_next_info', false), new Argument('ref', new TypeCollection(new Type\AlphaNumStringListType())), Argument::createBooleanTypeArgument('reseller'), Argument::createIntTypeArgument('sponsor'), new Argument('order', new TypeCollection(new Type\EnumListType(array('id', 'id_reverse', 'reference', 'reference_reverse', 'firstname', 'firstname_reverse', 'lastname', 'lastname_reverse', 'last_order', 'last_order_reverse', 'order_amount', 'order_amount_reverse', 'registration_date', 'registration_date_reverse'))), 'lastname'), Argument::createBooleanOrBothTypeArgument("newsletter", Type\BooleanOrBothType::ANY));
}