當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Argument::createIntTypeArgument方法代碼示例

本文整理匯總了PHP中Thelia\Core\Template\Loop\Argument\Argument::createIntTypeArgument方法的典型用法代碼示例。如果您正苦於以下問題:PHP Argument::createIntTypeArgument方法的具體用法?PHP Argument::createIntTypeArgument怎麽用?PHP Argument::createIntTypeArgument使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Thelia\Core\Template\Loop\Argument\Argument的用法示例。


在下文中一共展示了Argument::createIntTypeArgument方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

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

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

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

示例4: getArgDefinitions

 /**
  * @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;
 }
開發者ID:badelas,項目名稱:thelia,代碼行數:12,代碼來源:Accessory.php

示例5: getDefaultArgs

 /**
  * 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;
 }
開發者ID:alex63530,項目名稱:thelia,代碼行數:16,代碼來源:BaseLoop.php

示例6: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntTypeArgument('folder', null, true), Argument::createIntTypeArgument('depth', PHP_INT_MAX), Argument::createBooleanOrBothTypeArgument('visible', true, false), Argument::createIntListTypeArgument('exclude', array()));
 }
開發者ID:margery,項目名稱:thelia,代碼行數:7,代碼來源:FolderTree.php

示例7: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntTypeArgument('country', null, true), new Argument('ask', new TypeCollection(new Type\EnumType(array('taxes', 'countries'))), 'taxes'), Argument::createIntTypeArgument('tax_rule', null, true));
 }
開發者ID:margery,項目名稱:thelia,代碼行數:7,代碼來源:TaxRuleCountry.php

示例8: getArgDefinitions

 /**
  *
  * 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('id'), Argument::createIntListTypeArgument('exclude'), new Argument('order', new TypeCollection(new EnumType(['id', 'id_reverse', 'alpha', 'alpha_reverse', 'manual', 'manual_reverse'])), 'manual'));
 }
開發者ID:alex63530,項目名稱:thelia,代碼行數:36,代碼來源:BaseSpecificModule.php

示例9: 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'), 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:NandoKstroNet,項目名稱:thelia,代碼行數:7,代碼來源:Brand.php

示例10: getArgDefinitions

 /**
  * @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'));
 }
開發者ID:margery,項目名稱:thelia,代碼行數:7,代碼來源:Area.php

示例11: getArgDefinitions

 /**
  * Define all args used in your loop
  *
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntTypeArgument('order', null, true));
 }
開發者ID:vigourouxjulien,項目名稱:thelia,代碼行數:9,代碼來源:OrderCoupon.php

示例12: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntTypeArgument('hook'), Argument::createIntTypeArgument('module'), new Argument('order', new TypeCollection(new Type\EnumListType(array('id', 'id_reverse', 'hook', 'hook_reverse', 'manual', 'manual_reverse', 'enabled', 'enabled_reverse'))), 'manual'), Argument::createIntListTypeArgument('exclude'), Argument::createBooleanOrBothTypeArgument('active', Type\BooleanOrBothType::ANY), Argument::createBooleanOrBothTypeArgument('hook_active', Type\BooleanOrBothType::ANY), Argument::createBooleanOrBothTypeArgument('module_active', Type\BooleanOrBothType::ANY));
 }
開發者ID:NandoKstroNet,項目名稱:thelia,代碼行數:7,代碼來源:ModuleHook.php

示例13: getArgDefinitions

 /**
  * @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));
 }
開發者ID:vigourouxjulien,項目名稱:thelia,代碼行數:7,代碼來源:Customer.php

示例14: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntTypeArgument('product_sale_elements', null, true), new Argument('order', new TypeCollection(new Type\EnumListType(array('alpha', 'alpha_reverse'))), 'alpha'));
 }
開發者ID:fachriza,項目名稱:thelia,代碼行數:7,代碼來源:AttributeCombination.php

示例15: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('attribute'), Argument::createIntTypeArgument('product'), Argument::createIntListTypeArgument('exclude'), new Argument('order', new TypeCollection(new Type\EnumListType(array('id', 'id_reverse', 'alpha', 'alpha_reverse', 'manual', 'manual_reverse'))), 'manual'));
 }
開發者ID:margery,項目名稱:thelia,代碼行數:7,代碼來源:AttributeAvailability.php


注:本文中的Thelia\Core\Template\Loop\Argument\Argument::createIntTypeArgument方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。