Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\RestApi\Validation\EditMetadataValidator Class Reference

Public Member Functions

 __construct (int $maxCommentLength, array $allowedTags)
 
 validateComment (?string $comment, string $source)
 
 validateEditTags (array $tags, string $source)
 

Private Attributes

 $maxCommentLength
 
 $allowedTags
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Validation\EditMetadataValidator::__construct ( int  $maxCommentLength,
array  $allowedTags 
)
Parameters
string[]$allowedTags{
See also
\ChangeTags::listExplicitlyDefinedTags}

Member Function Documentation

◆ validateComment()

Wikibase\Repo\RestApi\Validation\EditMetadataValidator::validateComment ( ?string  $comment,
string  $source 
)

◆ validateEditTags()

Wikibase\Repo\RestApi\Validation\EditMetadataValidator::validateEditTags ( array  $tags,
string  $source 
)

Member Data Documentation

◆ $allowedTags

Wikibase\Repo\RestApi\Validation\EditMetadataValidator::$allowedTags
private

◆ $maxCommentLength

Wikibase\Repo\RestApi\Validation\EditMetadataValidator::$maxCommentLength
private

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