public function day($options = array())
    {
        $options = new AnConfig($options);

        $options->append(array(
            'selected' => null,
            'prompt' => true,
        ));

        $days = array_combine(range(1, 31), range(1, 31));
        $selected = $options->selected;
        unset($options->selected);
        $prompt = $options->prompt;
        unset($options->prompt);
        if ($prompt) {
            $array = array(AnTranslator::_('LIB-AN-SELECTOR-SELECT-DAY'));
            $days = AnHelperArray::merge($array, $days);
        }

        return $this->_html->select($options->name, array('options' => $days, 'selected' => $selected), AnConfig::unbox($options));
    }
public function day($options = array())
    {
        $options = new AnConfig($options);

        $options->append(array(
            'selected' => null,
            'prompt' => true,
        ));

        $days = array_combine(range(1, 31), range(1, 31));
        $selected = $options->selected;
        unset($options->selected);
        $prompt = $options->prompt;
        unset($options->prompt);
        if ($prompt) {
            $array = array(AnTranslator::_('LIB-AN-SELECTOR-SELECT-DAY'));
            $days = AnHelperArray::merge($array, $days);
        }

        return $this->_html->select($options->name, array('options' => $days, 'selected' => $selected), AnConfig::unbox($options));
    }
public function day ( $ options = array ( ) ) { $ options = new AnConfig ( $ options ) ; $ options -> append ( array ( 'selected' => null , 'prompt' => true , ) ) ; $ days = array_combine ( range ( 1 , 31 ) , range ( 1 , 31 ) ) ; $ selected = $ options -> selected ; unset ( $ options -> selected ) ; $ prompt = $ options -> prompt ; unset ( $ options -> prompt ) ; if ( $ prompt ) { $ array = array ( AnTranslator :: _ ( 'LIB-AN-SELECTOR-SELECT-DAY' ) ) ; $ days = AnHelperArray :: merge ( $ array , $ days ) ; } return $ this -> _html -> select ( $ options -> name , array ( 'options' => $ days , 'selected' => $ selected ) , AnConfig :: unbox ( $ options ) ) ; }
Return a day selection from 1 to 31.

@param array $options

@return LibBaseTemplateTag;
Return a day selection from 1 to 31 .