Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\ChangeOp\ChangeOpQualifierRemove Class Reference

Class for qualifier removal change operation. More...

+ Inheritance diagram for Wikibase\Repo\ChangeOp\ChangeOpQualifierRemove:
+ Collaboration diagram for Wikibase\Repo\ChangeOp\ChangeOpQualifierRemove:

Public Member Functions

 __construct ( $statementGuid, $snakHash)
 Constructs a new qualifier removal change operation.
 
 apply (EntityDocument $entity, Summary $summary=null)
 
 validate (EntityDocument $entity)
 
- Public Member Functions inherited from Wikibase\Repo\ChangeOp\ChangeOpBase
 getActions ()
 

Protected Member Functions

 removeQualifier (SnakList $qualifiers, Summary $summary=null)
 
 getSnakSummaryArgs (Snak $snak)
 
- Protected Member Functions inherited from Wikibase\Repo\ChangeOp\ChangeOpBase
 updateSummary (?Summary $summary, $action, $language='', $args='')
 

Private Attributes

 $statementGuid
 
 $snakHash
 

Detailed Description

Class for qualifier removal change operation.

Author
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ChangeOp\ChangeOpQualifierRemove::__construct ( $statementGuid,
$snakHash )

Constructs a new qualifier removal change operation.

Parameters
string$statementGuid
string$snakHash
Exceptions
InvalidArgumentException

Member Function Documentation

◆ apply()

Wikibase\Repo\ChangeOp\ChangeOpQualifierRemove::apply ( EntityDocument $entity,
Summary $summary = null )
See also
ChangeOp::apply()
Parameters
EntityDocument$entity
Summary | null$summary
Exceptions
InvalidArgumentException
ChangeOpException

Implements Wikibase\Repo\ChangeOp\ChangeOp.

◆ getSnakSummaryArgs()

Wikibase\Repo\ChangeOp\ChangeOpQualifierRemove::getSnakSummaryArgs ( Snak $snak)
protected
Parameters
Snak$snak
Returns
array

◆ removeQualifier()

Wikibase\Repo\ChangeOp\ChangeOpQualifierRemove::removeQualifier ( SnakList $qualifiers,
Summary $summary = null )
protected
Parameters
SnakList$qualifiers
Summary | null$summary
Exceptions
ChangeOpException

◆ validate()

Wikibase\Repo\ChangeOp\ChangeOpQualifierRemove::validate ( EntityDocument $entity)
See also
ChangeOp::validate
Parameters
EntityDocument$entity
Returns
Result Always successful.

Implements Wikibase\Repo\ChangeOp\ChangeOp.

Member Data Documentation

◆ $snakHash

Wikibase\Repo\ChangeOp\ChangeOpQualifierRemove::$snakHash
private

◆ $statementGuid

Wikibase\Repo\ChangeOp\ChangeOpQualifierRemove::$statementGuid
private

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