Wikibase
MediaWiki Wikibase extension
|
Factory for ChangeOps that modify Statements. More...
Public Member Functions | |
__construct (GuidGenerator $guidGenerator, StatementGuidValidator $guidValidator, StatementGuidParser $guidParser, SnakValidator $snakValidator, SnakValidator $referenceSnakValidator, SnakNormalizer $snakNormalizer, ReferenceNormalizer $referenceNormalizer, StatementNormalizer $statementNormalizer) | |
newSetStatementOp (Statement $statement, $index=null) | |
newRemoveStatementOp ( $guid) | |
newSetMainSnakOp ( $statementGuid, Snak $snak) | |
newSetQualifierOp ( $statementGuid, Snak $snak, $snakHash) | |
newRemoveQualifierOp ( $statementGuid, $snakHash) | |
newSetReferenceOp ( $statementGuid, Reference $reference, $referenceHash, $index=null) | |
newRemoveReferenceOp ( $statementGuid, $referenceHash) | |
newSetStatementRankOp ( $statementGuid, $rank) | |
Private Attributes | |
$guidGenerator | |
$guidValidator | |
$guidParser | |
$snakValidator | |
$referenceSnakValidator | |
$snakNormalizer | |
$referenceNormalizer | |
$statementNormalizer | |
Factory for ChangeOps that modify Statements.
Wikibase\Repo\ChangeOp\StatementChangeOpFactory::__construct | ( | GuidGenerator | $guidGenerator, |
StatementGuidValidator | $guidValidator, | ||
StatementGuidParser | $guidParser, | ||
SnakValidator | $snakValidator, | ||
SnakValidator | $referenceSnakValidator, | ||
SnakNormalizer | $snakNormalizer, | ||
ReferenceNormalizer | $referenceNormalizer, | ||
StatementNormalizer | $statementNormalizer ) |
Wikibase\Repo\ChangeOp\StatementChangeOpFactory::newRemoveQualifierOp | ( | $statementGuid, | |
$snakHash ) |
string | $statementGuid | |
string | $snakHash |
InvalidArgumentException |
Wikibase\Repo\ChangeOp\StatementChangeOpFactory::newRemoveReferenceOp | ( | $statementGuid, | |
$referenceHash ) |
string | $statementGuid | |
string | $referenceHash |
InvalidArgumentException |
Wikibase\Repo\ChangeOp\StatementChangeOpFactory::newRemoveStatementOp | ( | $guid | ) |
string | $guid |
InvalidArgumentException |
Wikibase\Repo\ChangeOp\StatementChangeOpFactory::newSetMainSnakOp | ( | $statementGuid, | |
Snak | $snak ) |
string | $statementGuid | |
Snak | $snak |
InvalidArgumentException |
Wikibase\Repo\ChangeOp\StatementChangeOpFactory::newSetQualifierOp | ( | $statementGuid, | |
Snak | $snak, | ||
$snakHash ) |
string | $statementGuid | |
Snak | $snak | |
string | $snakHash | (if not empty '', the old snak is replaced) |
InvalidArgumentException |
Wikibase\Repo\ChangeOp\StatementChangeOpFactory::newSetReferenceOp | ( | $statementGuid, | |
Reference | $reference, | ||
$referenceHash, | |||
$index = null ) |
string | $statementGuid | |
Reference | $reference | |
string | $referenceHash | (if empty '' a new reference will be created) |
int | null | $index | Indicates the new desired position in the list of references. |
InvalidArgumentException |
Wikibase\Repo\ChangeOp\StatementChangeOpFactory::newSetStatementOp | ( | Statement | $statement, |
$index = null ) |
Statement | $statement | |
int | null | $index |
InvalidArgumentException |
Wikibase\Repo\ChangeOp\StatementChangeOpFactory::newSetStatementRankOp | ( | $statementGuid, | |
$rank ) |
string | $statementGuid | |
int | $rank |
InvalidArgumentException |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |