| @@ 1211-1219 (lines=9) @@ | ||
| 1208 | * |
|
| 1209 | * @return Revision|null |
|
| 1210 | */ |
|
| 1211 | public function getPrevious() { |
|
| 1212 | if ( $this->getTitle() ) { |
|
| 1213 | $prev = $this->getTitle()->getPreviousRevisionID( $this->getId() ); |
|
| 1214 | if ( $prev ) { |
|
| 1215 | return self::newFromTitle( $this->getTitle(), $prev ); |
|
| 1216 | } |
|
| 1217 | } |
|
| 1218 | return null; |
|
| 1219 | } |
|
| 1220 | ||
| 1221 | /** |
|
| 1222 | * Get next revision for this title |
|
| @@ 1226-1234 (lines=9) @@ | ||
| 1223 | * |
|
| 1224 | * @return Revision|null |
|
| 1225 | */ |
|
| 1226 | public function getNext() { |
|
| 1227 | if ( $this->getTitle() ) { |
|
| 1228 | $next = $this->getTitle()->getNextRevisionID( $this->getId() ); |
|
| 1229 | if ( $next ) { |
|
| 1230 | return self::newFromTitle( $this->getTitle(), $next ); |
|
| 1231 | } |
|
| 1232 | } |
|
| 1233 | return null; |
|
| 1234 | } |
|
| 1235 | ||
| 1236 | /** |
|
| 1237 | * Get previous revision Id for this page_id |
|