21 use Wikimedia\Timestamp\TimestampException;
39 if ( isset( $this->mNavigationBar ) ) {
44 'prev' => $this->
msg(
'pager-newer-n' )->numParams( $this->mLimit )->escaped(),
45 'next' => $this->
msg(
'pager-older-n' )->numParams( $this->mLimit )->escaped(),
46 'first' => $this->
msg(
'histlast' )->escaped(),
47 'last' => $this->
msg(
'histfirst' )->escaped()
52 $limits = $this->
getLanguage()->pipeList( $limitLinks );
53 $firstLastLinks = $this->
msg(
'parentheses' )->rawParams(
"{$pagingLinks['first']}" .
54 $this->
msg(
'pipe-separator' )->escaped() .
55 "{$pagingLinks['last']}" )->escaped();
57 $this->mNavigationBar = $firstLastLinks .
' ' .
58 $this->
msg(
'viewprevnext' )->rawParams(
59 $pagingLinks[
'prev'], $pagingLinks[
'next'], $limits )->escaped();
80 if ( $year <= 0 && ( $month <= 0 || $month >= 13 ) ) {
86 $timestamp->setTimezone( $this->
getConfig()->
get(
'Localtimezone' ) );
89 $this->mYear = (int)$timestamp->format(
'Y' );
90 $this->mMonth = (int)$timestamp->format(
'm' );
91 $this->mDay = (int)$timestamp->format(
'd' );
92 $this->mOffset = $this->mDb->timestamp( $timestamp->getTimestamp() );
93 }
catch ( TimestampException
$e ) {
126 $year = $timestamp->format(
'Y' );
128 if ( $month > $timestamp->format(
'n' ) ) {
133 if ( $month && $month > 0 && $month < 13 ) {
135 $day = checkdate( $month, $day, $year ) ? $day :
false;
137 if ( $day && $day > 0 ) {
142 if ( !checkdate( $month, $day, $year ) ) {
166 if ( $year > 2032 ) {
170 $ymd = (int)sprintf(
"%04d%02d%02d", $year, $month, $day );
172 if ( $ymd > 20320101 ) {