public function getArchiveMonth()
    {
        $month = $this->request->param('Month');

        if (preg_match('/^[0-9]{1,2}$/', $month)) {
            if ($month > 0 && $month < 13) {
                if (checkdate($month, 01, $this->getArchiveYear())) {
                    return (int) $month;
                }
            }
        }

        return null;
    }
public function getArchiveMonth()
    {
        $month = $this->request->param('Month');

        if (preg_match('/^[0-9]{1,2}$/', $month)) {
            if ($month > 0 && $month < 13) {
                if (checkdate($month, 01, $this->getArchiveYear())) {
                    return (int) $month;
                }
            }
        }

        return null;
    }
public function getArchiveMonth ( ) { $ month = $ this -> request -> param ( 'Month' ) ; if ( preg_match ( '/^[0-9]{1,2}$/' , $ month ) ) { if ( $ month > 0 && $ month < 13 ) { if ( checkdate ( $ month , 01 , $ this -> getArchiveYear ( ) ) ) { return ( int ) $ month ; } } } return null ; }
Fetches the archive money from the url.

@return null|int
Fetches the archive money from the url .