|
MediaWiki
master
|
Generic operation result class for FileRepo-related operations. More...


Additional Inherited Members | |
Public Member Functions inherited from Status | |
| __construct (StatusValue $sv=null) | |
| __get ($name) | |
| Backwards compatibility logic. More... | |
| __set ($name, $value) | |
| Backwards compatibility logic. More... | |
| __sleep () | |
| Don't save the callback when serializing, because Closures can't be serialized and we're going to clear it in __wakeup anyway. More... | |
| __toString () | |
| __wakeup () | |
| Sanitize the callback parameter on wakeup, to avoid arbitrary execution. More... | |
| error ($message) | |
| Add an error, do not set fatal flag This can be used for non-fatal errors. More... | |
| fatal ($message) | |
| Add an error and set OK to false, indicating that the operation as a whole was fatal. More... | |
| getErrorsArray () | |
| Get the list of errors (but not warnings) More... | |
| getErrorsByType ($type) | |
| Returns a list of status messages of the given type, with message and params left untouched, like a sane version of getStatusArray. More... | |
| getHTML ($shortContext=false, $longContext=false, $lang=null) | |
| Get the error message as HTML. More... | |
| getMessage ($shortContext=false, $longContext=false, $lang=null) | |
| Get a bullet list of the errors as a Message object. More... | |
| getStatusValue () | |
| Returns the wrapped StatusValue object. More... | |
| getValue () | |
| getWarningsArray () | |
| Get the list of warnings (but not errors) More... | |
| getWikiText ($shortContext=false, $longContext=false, $lang=null) | |
| Get the error list as a wikitext formatted list. More... | |
| hasMessage ($message) | |
| Returns true if the specified message is present as a warning or error. More... | |
| isGood () | |
| Returns whether the operation completed and didn't have any error or warnings. More... | |
| isOK () | |
| Returns whether the operation completed. More... | |
| merge ($other, $overwriteValue=false) | |
| Merge another status object into this one. More... | |
| replaceMessage ($source, $dest) | |
| If the specified source message exists, replace it with the specified destination message, but keep the same parameters as in the original error. More... | |
| setResult ($ok, $value=null) | |
| Change operation result. More... | |
| warning ($message) | |
| Add a new warning. More... | |
Static Public Member Functions inherited from Status | |
| static | newFatal ($message) |
| Factory function for fatal errors. More... | |
| static | newGood ($value=null) |
| Factory function for good results. More... | |
| static | wrap ($sv) |
| Succinct helper method to wrap a StatusValue. More... | |
Public Attributes inherited from Status | |
| callable | $cleanCallback = false |
| int | $failCount = 0 |
| Counter for batch operations. More... | |
| array | $success = [] |
| Map of (key => bool) to indicate success of each part of batch operations. More... | |
| int | $successCount = 0 |
| Counter for batch operations. More... | |
| mixed | $value |
Protected Member Functions inherited from Status | |
| cleanParams (array $params) | |
| getErrorMessage ($error, $lang=null) | |
| Return the message for a single error. More... | |
| getErrorMessageArray ($errors, $lang=null) | |
| Return an array with a Message object for each error. More... | |
| getStatusArray ($type=false) | |
| Returns a list of status messages of the given type (or all if false) More... | |
| languageFromParam ($lang) | |
Protected Attributes inherited from Status | |
| StatusValue | $sv |
Generic operation result class for FileRepo-related operations.
Definition at line 29 of file FileRepoStatus.php.