toObject(); } static public function buildtimeselect($max, $name, $selected, $class = array('class'=>'inputbox')) { $timelist = array(); $timelist[0] = HTMLHelper::_('select.option', '', ''); foreach(range(0, $max) as $value) { if($value >= 10) { $timelist[] = HTMLHelper::_('select.option', $value, $value); } else { $timelist[] = HTMLHelper::_('select.option', '0'.$value, '0'.$value); } } return HTMLHelper::_('select.genericlist', $timelist, $name, $class, 'value', 'text', $selected); } } ?>