/** * 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(); }
/** * 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(); }