123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- class RevDelArchivedRevisionItem extends RevDelArchiveItem {
- public function __construct( $list, $row ) {
- RevDelItem::__construct( $list, $row );
- $this->revision = Revision::newFromArchiveRow( $row,
- [ 'page' => $this->list->title->getArticleID() ] );
- }
- public function getIdField() {
- return 'ar_rev_id';
- }
- public function getId() {
- return $this->revision->getId();
- }
- public function setBits( $bits ) {
- $dbw = wfGetDB( DB_MASTER );
- $dbw->update( 'archive',
- [ 'ar_deleted' => $bits ],
- [ 'ar_rev_id' => $this->row->ar_rev_id,
- 'ar_deleted' => $this->getBits()
- ],
- __METHOD__ );
- return (bool)$dbw->affectedRows();
- }
- }
|