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


PHP Argument::createBooleanOrBothTypeArgument方法代碼示例

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


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

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

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

 public function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createBooleanTypeArgument('with_prev_next_info', false), Argument::createBooleanOrBothTypeArgument('visible', 1), Argument::createIntListTypeArgument('exclude'));
 }
開發者ID:Asturyan,項目名稱:SalesLocations,代碼行數:4,代碼來源:AddressList.php

示例4: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntTypeArgument('category', null, true), Argument::createIntTypeArgument('depth', PHP_INT_MAX), Argument::createBooleanTypeArgument('need_count_child', false), Argument::createBooleanOrBothTypeArgument('visible', true, false), Argument::createIntListTypeArgument('exclude', array()), new Argument('order', new TypeCollection(new Type\EnumListType(array('position', 'position_reverse', 'id', 'id_reverse', 'alpha', 'alpha_reverse'))), 'position'));
 }
開發者ID:NandoKstroNet,項目名稱:thelia,代碼行數:7,代碼來源:CategoryTree.php

示例5: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntTypeArgument('order', null, true), Argument::createIntListTypeArgument('id'), Argument::createBooleanOrBothTypeArgument('virtual', BooleanOrBothType::ANY));
 }
開發者ID:alex63530,項目名稱:thelia,代碼行數:7,代碼來源:OrderProduct.php

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

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

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

示例9: getArgDefinitions

 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createBooleanOrBothTypeArgument('visible'));
 }
開發者ID:AnthonyMeedle,項目名稱:thelia-v2-module-Menu,代碼行數:4,代碼來源:MenuLoop.php

示例10: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntTypeArgument('profile'), new Argument('code', new Type\TypeCollection(new Type\AlphaNumStringListType())), new Argument('module_type', new Type\TypeCollection(new Type\EnumListType([BaseModule::CLASSIC_MODULE_TYPE, BaseModule::DELIVERY_MODULE_TYPE, BaseModule::PAYMENT_MODULE_TYPE]))), new Argument('module_category', new Type\TypeCollection(new Type\EnumListType(explode(',', BaseModule::MODULE_CATEGORIES)))), new Argument('order', new TypeCollection(new Type\EnumListType(['id', 'id_reverse', 'code', 'code_reverse', 'title', 'title_reverse', 'manual', 'manual_reverse', 'enabled', 'enabled_reverse'])), 'manual'), Argument::createIntListTypeArgument('exclude'), Argument::createBooleanOrBothTypeArgument('active', Type\BooleanOrBothType::ANY));
 }
開發者ID:badelas,項目名稱:thelia,代碼行數:7,代碼來源:Module.php

示例11: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('exclude'), Argument::createBooleanOrBothTypeArgument('active', 1), Argument::createIntListTypeArgument('product'), Argument::createIntTypeArgument('currency', $this->request->getSession()->getCurrency()->getId()), new Argument('order', new TypeCollection(new Type\EnumListType(array('id', 'id-reverse', 'alpha', 'alpha-reverse', 'label', 'label-reverse', 'active', 'active-reverse', 'start-date', 'start-date-reverse', 'end-date', 'end-date-reverse', 'created', 'created-reverse', 'updated', 'updated-reverse'))), 'start-date'));
 }
開發者ID:NandoKstroNet,項目名稱:thelia,代碼行數:7,代碼來源:Sale.php

示例12: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntTypeArgument('parent'), Argument::createIntTypeArgument('content'), Argument::createBooleanTypeArgument('current'), Argument::createBooleanTypeArgument('not_empty', 0), Argument::createBooleanOrBothTypeArgument('visible', 1), Argument::createAnyTypeArgument('title'), new Argument('order', new TypeCollection(new Type\EnumListType(['alpha', 'alpha_reverse', 'manual', 'manual_reverse', 'random', 'created', 'created_reverse', 'updated', 'updated_reverse'])), 'manual'), Argument::createIntListTypeArgument('exclude'), Argument::createBooleanTypeArgument('with_prev_next_info', false));
 }
開發者ID:SimonWaters,項目名稱:thelia,代碼行數:7,代碼來源:Folder.php

示例13: getArgDefinitions

 /**
  * Definition of loop arguments
  *
  * @return \Thelia\Core\Template\Loop\Argument\ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('customer'), Argument::createAnyTypeArgument('ref'), Argument::createIntListTypeArgument('ref_id'), Argument::createIntListTypeArgument('status'), Argument::createBooleanOrBothTypeArgument('verified', BooleanOrBothType::ANY), Argument::createAnyTypeArgument('locale'), Argument::createAnyTypeArgument('load_ref', 0), new Argument('order', new Type\TypeCollection(new Type\EnumListType(['id', 'id_reverse', 'status', 'status_reverse', 'verified', 'verified_reverse', 'abuse', 'abuse_reverse', 'created', 'created_reverse', 'updated', 'updated_reverse'])), 'manual'), Argument::createAnyTypeArgument('ref_locale'));
 }
開發者ID:blump,項目名稱:Comment,代碼行數:9,代碼來源:CommentLoop.php

示例14: getArgDefinitions

 /**
  * @return ArgumentCollection
  */
 protected function getArgDefinitions()
 {
     return new ArgumentCollection(Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('exclude'), Argument::createBooleanTypeArgument('default_only', false), Argument::createBooleanOrBothTypeArgument('visible', true), new Argument('order', new TypeCollection(new EnumListType(array('id', 'id_reverse', 'name', 'name_reverse', 'code', 'code_reverse', 'symbol', 'symbol_reverse', 'rate', 'rate_reverse', 'visible', 'visible_reverse', 'is_default', 'is_default_reverse', 'manual', 'manual_reverse'))), 'manual'));
 }
開發者ID:MaximeMorille,項目名稱:thelia,代碼行數:7,代碼來源:Currency.php

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


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