Manual:DoMaintenance.php/bn
Appearance
| মিডিয়াউইকি সংস্করণ: | ≥ 1.16 |
| মিডিয়াউইকি ফাইল: doMaintenance.php | |
|---|---|
| অবস্থান: | maintenance/ |
| উৎস কোড: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| শ্রেণী: | কোড খুঁজুন • নথিপত্র খুঁজুন |
Details
doMaintenance.php file is a maintenance script to verify the most important files and run some jobs automatically.
Usage
একটি রক্ষণাবেক্ষণ স্ক্রিপ্ট লেখার সময়, ফাইলের শেষে RUN_MAINTENANCE_IF_MAIN যোগ করুন।
<?php
require_once __DIR__ . '/Maintenance.php';
class HelloWorld extends Maintenance {
public function execute() {
$this->output( "Hello, MediaWiki Devs!" );
}
}
$maintClass = HelloWorld::class;
require_once RUN_MAINTENANCE_IF_MAIN;
Here RUN_MAINTENANCE_IF_MAIN loads doMaintenance.php file which autoloads MediaWiki classes and configuration to run the script smoothly.