JMediawikiPages::changeProtection
Method to change the protection level of a page.
Signature
public function changeProtection(string
$title,
[string
$protections = null,
[string
$expiry = null,
[string
$reason = null,
[string
$cascade = null,
[string
$watchlist = null]]]]] )
Parameters
-
$title
- Title of the page you want to (un)protect.
-
$protections
- Pipe-separated list of protection levels.
-
$expiry
- Expiry timestamps.
-
$reason
- Reason for (un)protecting (optional).
-
$cascade
- Enable cascading protection.
-
$watchlist
- Unconditionally add or remove the page from your watchlist.
Returns