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