| @@ 1185-1193 (lines=9) @@ | ||
| 1182 | * |
|
| 1183 | * @return Revision|null |
|
| 1184 | */ |
|
| 1185 | public function getPrevious() { |
|
| 1186 | if ( $this->getTitle() ) { |
|
| 1187 | $prev = $this->getTitle()->getPreviousRevisionID( $this->getId() ); |
|
| 1188 | if ( $prev ) { |
|
| 1189 | return self::newFromTitle( $this->getTitle(), $prev ); |
|
| 1190 | } |
|
| 1191 | } |
|
| 1192 | return null; |
|
| 1193 | } |
|
| 1194 | ||
| 1195 | /** |
|
| 1196 | * Get next revision for this title |
|
| @@ 1200-1208 (lines=9) @@ | ||
| 1197 | * |
|
| 1198 | * @return Revision|null |
|
| 1199 | */ |
|
| 1200 | public function getNext() { |
|
| 1201 | if ( $this->getTitle() ) { |
|
| 1202 | $next = $this->getTitle()->getNextRevisionID( $this->getId() ); |
|
| 1203 | if ( $next ) { |
|
| 1204 | return self::newFromTitle( $this->getTitle(), $next ); |
|
| 1205 | } |
|
| 1206 | } |
|
| 1207 | return null; |
|
| 1208 | } |
|
| 1209 | ||
| 1210 | /** |
|
| 1211 | * Get previous revision Id for this page_id |
|