本文整理汇总了PHP中Combo::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Combo::init方法的具体用法?PHP Combo::init怎么用?PHP Combo::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Combo
的用法示例。
在下文中一共展示了Combo::init方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SpinButton
/**
* Public constructor
*
* @param string Name of the spin button
* @param int How many rows does the spin will have?
* @param string Title of the Spin
* @access public
*/
function SpinButton($name, $size = 20, $title = '', $step = 1)
{
$this->_name = $name;
$this->_spinSize = $size;
$this->_title = $title;
$this->_spinStep = $step;
$this->_availableEvents = array("onchange", "onclick", "ondblclick", "onmousedown", "onmouseup", "onmouseover", "onmousemove", "onmouseout", "onkeypress", "onkeydown", "onkeyup");
$this->setSpinSize($this->_spinSize);
parent::init();
}
示例2: ComboImage
/**
* Public constructor
*
* @param string Name of the combo
* @param string Data of the combo
* @param string Title of the combo
* @param string Widget ID
* @access public
*/
function ComboImage($name, $title = '', $id = '')
{
$this->_name = $name;
$this->_title = $title;
$this->_id = $id;
$this->_options = array();
$this->setImageSize(16, 16);
$this->_availableEvents = array('onchange', 'onclick', 'ondblclick', 'onmousedown', 'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout', 'onkeypress', 'onkeydown', 'onkeyup');
$oddClass = Piwi::getVarConf('CLASS_ODD');
if (empty($oddClass)) {
$oddClass = 'piwi_option_odd';
}
$this->setOddClass($oddClass);
$evenClass = Piwi::getVarConf('CLASS_EVEN');
if (empty($evenClass)) {
$evenClass = 'piwi_option_even';
}
$this->setEvenClass($evenClass);
parent::init();
}