10 defined(
'JPATH_PLATFORM') or die;
30 protected $type =
'Integer';
39 protected function getOptions()
44 $first = (int) $this->element[
'first'];
45 $last = (int) $this->element[
'last'];
46 $step = (int) $this->element[
'step'];
54 elseif ($first < $last && $step < 0)
59 elseif ($first > $last && $step > 0)
67 for ($i = $first; $i >= $last; $i += $step)
69 $options[] = JHtml::_(
'select.option', $i);
75 for ($i = $first; $i <= $last; $i += $step)
77 $options[] = JHtml::_(
'select.option', $i);
82 $options = array_merge(parent::getOptions(), $options);