23 use Wikimedia\Timestamp\TimestampException;
40 if ( isset( $this->mNavigationBar ) ) {
45 'prev' => $this->
msg(
'pager-newer-n' )->numParams( $this->mLimit )->escaped(),
46 'next' => $this->
msg(
'pager-older-n' )->numParams( $this->mLimit )->escaped(),
47 'first' => $this->
msg(
'histlast' )->escaped(),
48 'last' => $this->
msg(
'histfirst' )->escaped()
53 $limits = $this->
getLanguage()->pipeList( $limitLinks );
54 $firstLastLinks = $this->
msg(
'parentheses' )->rawParams(
"{$pagingLinks['first']}" .
55 $this->
msg(
'pipe-separator' )->escaped() .
56 "{$pagingLinks['last']}" )->escaped();
58 $this->mNavigationBar = $firstLastLinks .
' ' .
59 $this->
msg(
'viewprevnext' )->rawParams(
60 $pagingLinks[
'prev'], $pagingLinks[
'next'], $limits )->escaped();
74 $year = intval( $year );
75 $month = intval( $month );
76 $day = intval( $day );
79 $this->mYear = $year > 0 ? $year :
false;
80 $this->mMonth = ( $month > 0 && $month < 13 ) ? $month :
false;
83 if ( !$this->mYear && !$this->mMonth ) {
98 $year = $timestamp->format(
'Y' );
100 if ( $this->mMonth > $timestamp->format(
'n' ) ) {
105 if ( $this->mMonth ) {
109 $this->mDay = checkdate( $month, $day, $year ) ? $day :
false;
113 $day = $this->mDay + 1;
116 if ( !checkdate( $month, $day, $year ) ) {
140 if ( $year > 2032 ) {
144 $ymd = (int)sprintf(
"%04d%02d%02d", $year, $month, $day );
146 if ( $ymd > 20320101 ) {
152 $timestamp->setTimezone( $this->
getConfig()->
get(
'Localtimezone' ) );
155 $this->mOffset = $this->mDb->timestamp( $timestamp->getTimestamp() );
156 }
catch ( TimestampException
$e ) {