Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Validation\ValidationResult Class Reference

Container for validation issues returned by MessageValidator. More...

Public Member Functions

 __construct (ValidationIssues $errors, ValidationIssues $warnings)
 
 hasIssues ()
 
 getIssues ()
 
 hasWarnings ()
 
 hasErrors ()
 
 getWarnings ()
 
 getErrors ()
 
 getDescriptiveWarnings (IContextSource $context)
 
 getDescriptiveErrors (IContextSource $context)
 

Protected Attributes

 $errors
 
 $warnings
 

Detailed Description

Container for validation issues returned by MessageValidator.

Author
Abijeet Patro
Niklas Laxström @license GPL-2.0-or-later
Since
2020.06 (originally 2019.06)

Definition at line 17 of file ValidationResult.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Validation\ValidationResult::__construct ( ValidationIssues $errors,
ValidationIssues $warnings )

Definition at line 23 of file ValidationResult.php.

Member Function Documentation

◆ getDescriptiveErrors()

MediaWiki\Extension\Translate\Validation\ValidationResult::getDescriptiveErrors ( IContextSource $context)

Definition at line 59 of file ValidationResult.php.

◆ getDescriptiveWarnings()

MediaWiki\Extension\Translate\Validation\ValidationResult::getDescriptiveWarnings ( IContextSource $context)

Definition at line 55 of file ValidationResult.php.

◆ getErrors()

MediaWiki\Extension\Translate\Validation\ValidationResult::getErrors ( )

Definition at line 51 of file ValidationResult.php.

◆ getIssues()

MediaWiki\Extension\Translate\Validation\ValidationResult::getIssues ( )

Definition at line 32 of file ValidationResult.php.

◆ getWarnings()

MediaWiki\Extension\Translate\Validation\ValidationResult::getWarnings ( )

Definition at line 47 of file ValidationResult.php.

◆ hasErrors()

MediaWiki\Extension\Translate\Validation\ValidationResult::hasErrors ( )

Definition at line 43 of file ValidationResult.php.

◆ hasIssues()

MediaWiki\Extension\Translate\Validation\ValidationResult::hasIssues ( )

Definition at line 28 of file ValidationResult.php.

◆ hasWarnings()

MediaWiki\Extension\Translate\Validation\ValidationResult::hasWarnings ( )

Definition at line 39 of file ValidationResult.php.

Member Data Documentation

◆ $errors

MediaWiki\Extension\Translate\Validation\ValidationResult::$errors
protected

Definition at line 19 of file ValidationResult.php.

◆ $warnings

MediaWiki\Extension\Translate\Validation\ValidationResult::$warnings
protected

Definition at line 21 of file ValidationResult.php.


The documentation for this class was generated from the following file: