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


PHP AView::defineWidgetParams方法代碼示例

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


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

示例1: defineWidgetParams

 /**
  * Define widget params
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_NAME => new \XLite\Model\WidgetParam\String('Name', 'file'), static::PARAM_OBJECT => new \XLite\Model\WidgetParam\Object('Object', null), static::PARAM_OBJECT_ID => new \XLite\Model\WidgetParam\Int('Object Id', 0), static::PARAM_MESSAGE => new \XLite\Model\WidgetParam\String('Message', ''), static::PARAM_MAX_WIDTH => new \XLite\Model\WidgetParam\Int('Max. width', 120), static::PARAM_MAX_HEIGHT => new \XLite\Model\WidgetParam\Int('Max. height', 120), static::PARAM_IS_IMAGE => new \XLite\Model\WidgetParam\Bool('Is image', false), static::PARAM_IS_TEMPORARY => new \XLite\Model\WidgetParam\Bool('Is temporary', false), static::PARAM_MULTIPLE => new \XLite\Model\WidgetParam\Bool('Multiple', false), static::PARAM_POSITION => new \XLite\Model\WidgetParam\Int('Position', 0));
 }
開發者ID:kirkbauer2,項目名稱:kirkxc,代碼行數:10,代碼來源:FileUploader.php

示例2: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_OPTION => new \XLite\Model\WidgetParam\Object('Option', null, false, '\\XLite\\Module\\CDev\\ProductOptions\\Model\\Option'));
 }
開發者ID:kingsj,項目名稱:core,代碼行數:10,代碼來源:ProductOptionModifier.php

示例3: defineWidgetParams

 /**
  * Define widget params
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(\XLite\View\Button\Payment\AddMethod::PARAM_PAYMENT_METHOD_TYPE => new \XLite\Model\WidgetParam\Collection('Payment methods type', array()));
 }
開發者ID:kirkbauer2,項目名稱:kirkxc,代碼行數:10,代碼來源:MethodsPopupList.php

示例4: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_BODY => new \XLite\Model\WidgetParam\String('Body template file', '', false), self::PARAM_SWITCH => new \XLite\Model\WidgetParam\String('Switch', 'page', false), self::PARAM_TAB_PAGES => new \XLite\Model\WidgetParam\String('Name of function that returns tab pages', 'getTabPages', false));
 }
開發者ID:kingsj,項目名稱:core,代碼行數:10,代碼來源:Tabber.php

示例5: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_ORDER => new \XLite\Model\WidgetParam\Object('Order', null, false, '\\XLite\\Model\\Order'), self::PARAM_USE_WRAPPER => new \XLite\Model\WidgetParam\Bool('Use wrapper', false));
 }
開發者ID:kingsj,項目名稱:core,代碼行數:10,代碼來源:OrderStatus.php

示例6: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_ORDER_ITEM => new \XLite\Model\WidgetParam\Object('OrderItem', null, false, '\\XLite\\Model\\OrderItem'), self::PARAM_PRODUCT_ID => new \XLite\Model\WidgetParam\Int('Product ID', null, false), self::PARAM_IDX => new \XLite\Model\WidgetParam\Int('Index of order item', 0, false));
 }
開發者ID:kirkbauer2,項目名稱:kirkxc,代碼行數:10,代碼來源:OrderItemAttributes.php

示例7: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_COMPLETED_CONTEXT => new \XLite\Model\WidgetParam\Bool('Complete section context', false));
 }
開發者ID:kewaunited,項目名稱:xcart,代碼行數:10,代碼來源:Download.php

示例8: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_TAB => new \XLite\Model\WidgetParam\Object('Tab', null, false, '\\XLite\\Module\\XC\\CustomProductTabs\\Model\\Product\\Tab'));
 }
開發者ID:kirkbauer2,項目名稱:kirkxc,代碼行數:10,代碼來源:Tab.php

示例9: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_NODES => new \XLite\Model\WidgetParam\Collection('Breadcrumbs', $this->getLocationPath()));
 }
開發者ID:kingsj,項目名稱:core,代碼行數:10,代碼來源:Location.php

示例10: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_LAZY_CLASS => new \XLite\Model\WidgetParam\String('Lazy class', $this->getDefaultLazyClass()), self::PARAM_LAZY_CLASS_PARAMS => new \XLite\Model\WidgetParam\Collection('Lazy class params', $this->getDefaultLazyClassParams()));
 }
開發者ID:kirkbauer2,項目名稱:kirkxc,代碼行數:10,代碼來源:ALazyLoad.php

示例11: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_TEXT => new \XLite\Model\WidgetParam\String('Text to show in tooltip', ''), static::PARAM_WIDGET => new \XLite\Model\WidgetParam\String('Widget to show in tooltip', ''), static::PARAM_ID => new \XLite\Model\WidgetParam\String('ID of element', ''), static::PARAM_CLASS => new \XLite\Model\WidgetParam\String('CSS class for caption', ''), static::PARAM_CAPTION => new \XLite\Model\WidgetParam\String('Caption', ''), static::PARAM_IS_IMAGE_TAG => new \XLite\Model\WidgetParam\Bool('Is it shown as image?', true));
 }
開發者ID:kirkbauer2,項目名稱:kirkxc,代碼行數:10,代碼來源:Tooltip.php

示例12: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_NAME => new \XLite\Model\WidgetParam\String('Name', '', true), static::PARAM_VALUE => new \XLite\Model\WidgetParam\String('Value', '', true), static::PARAM_LABEL => new \XLite\Model\WidgetParam\String('Label', $this->getDefaultLabel(), true), static::PARAM_STYLE => new \XLite\Model\WidgetParam\String('Button style', $this->getDefaultStyle()), static::PARAM_BTN_SIZE => new \XLite\Model\WidgetParam\String('Button size', $this->getDefaultButtonSize()), static::PARAM_BTN_TYPE => new \XLite\Model\WidgetParam\String('Button type', $this->getDefaultButtonType()), static::PARAM_DISABLED => new \XLite\Model\WidgetParam\Bool('Disabled', $this->getDefaultDisableState()), static::PARAM_ID => new \XLite\Model\WidgetParam\String('Button ID', ''), static::PARAM_ATTRIBUTES => new \XLite\Model\WidgetParam\Collection('Attributes', $this->getDefaultAttributes()), static::PARAM_ICON_STYLE => new \XLite\Model\WidgetParam\String('Button ID', ''), static::PARAM_JS_CONFIRM_TEXT => new \XLite\Model\WidgetParam\String('JS confirm text', ''));
 }
開發者ID:kewaunited,項目名稱:xcart,代碼行數:10,代碼來源:AButton.php

示例13: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_PARENT_WIDGET => new \XLite\Model\WidgetParam\Object('Parent widget', null, false, '\\XLite\\View\\Checkout\\Steps'), self::PARAM_IS_CURRENT => new \XLite\Model\WidgetParam\Bool('Step is current', false), self::PARAM_IS_PREVIOUS => new \XLite\Model\WidgetParam\Bool('Step is previous', false));
 }
開發者ID:kingsj,項目名稱:core,代碼行數:10,代碼來源:AStep.php

示例14: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_WIDTH => new \XLite\Model\WidgetParam\Int('Width', 400), self::PARAM_HEIGHT => new \XLite\Model\WidgetParam\Int('Height', 400), self::PARAM_SRC => new \XLite\Model\WidgetParam\String('Source', ''));
 }
開發者ID:kingsj,項目名稱:core,代碼行數:10,代碼來源:Iframe.php

示例15: defineWidgetParams

 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_WIDTH => new \XLite\Model\WidgetParam\Int('Width', $this->getDefaultWidth()));
 }
開發者ID:kingsj,項目名稱:core,代碼行數:10,代碼來源:FacebookLike.php


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