本文整理汇总了PHP中CComboBox::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP CComboBox::__construct方法的具体用法?PHP CComboBox::__construct怎么用?PHP CComboBox::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CComboBox
的用法示例。
在下文中一共展示了CComboBox::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($name = 'listbox', $value = null, $size = 5, $action = null)
{
parent::__construct($name, null, $action);
$this->attr('multiple', 'multiple');
$this->attr('size', $size);
$this->setValue($value);
}
示例2: __construct
public function __construct($name = 'listbox', $value = NULL, $size = 5, $action = NULL)
{
parent::__construct($name, NULL, $action);
$this->attributes['multiple'] = 'multiple';
$this->attributes['size'] = $size;
$this->setValue($value);
}
示例3: __construct
public function __construct($name = 'editablecombobox', $value = null, $size = 0, $action = null)
{
insert_javascript_for_editable_combobox();
parent::__construct($name, $value, $action);
parent::addAction('onfocus', 'CEditableComboBoxInit(this);');
parent::addAction('onchange', 'CEditableComboBoxOnChange(this, ' . $size . ');');
}
示例4: __construct
public function __construct($name = 'editablecombobox', $value = null, $size = null, $action = null)
{
insert_javascript_for_editable_combobox();
parent::__construct($name, $value, $action);
parent::addAction('onfocus', 'CEditableComboBoxInit(this);');
$width = $size == ZBX_TEXTBOX_STANDARD_SIZE ? ZBX_TEXTAREA_STANDARD_WIDTH : null;
parent::addAction('onchange', 'CEditableComboBoxOnChange(this, ' . CJs::encodeJson($size) . ', ' . CJs::encodeJson($width) . ');');
// prevent Firefox remembering selected option on page refresh
$this->setAttribute('autocomplete', 'off');
}
示例5: __construct
public function __construct($name = 'listbox', $value = null, $size = 5, $action = null, array $items = [])
{
parent::__construct($name, $value, $action, $items);
$this->setAttribute('multiple', 'multiple');
$this->setAttribute('size', $size);
}