MDL-48510 inbound: Support disabling of expiration changes in UI

This commit is contained in:
Ankit Agarwal
2015-01-13 09:26:20 +05:30
parent 5a8291753a
commit 8293f6c86f
4 changed files with 67 additions and 10 deletions
+12
View File
@@ -140,6 +140,18 @@ abstract class handler {
return $this->validateaddress = $validateaddress;
}
/**
* Whether the current handler allows changes to expiry of the generated email address.
*
* By default this will return true, but for some handlers it may be
* necessary to disallow such changes.
*
* @return boolean
*/
public function can_change_defaultexpiration() {
return true;
}
/**
* Whether this handler can be disabled (or enabled).
*