Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Api Namespace Reference

Repo implementations of MediaWiki's Action API More...

Classes

class  ApiErrorReporter
 ApiErrorReporter is a component for API modules that handles error reporting. More...
 
class  ApiHelperFactory
 A factory class for API helper objects. More...
 
class  AvailableBadges
 API module to query available badge items. More...
 
class  CombinedEntitySearchHelper
 Helper class to search for entities by ID. More...
 
class  ConceptUriSearchHelper
 EntitySearchHelper decorator that adds an entity concept URI to the TermSearchResult meta data if not already set. More...
 
class  CreateClaim
 API module for creating claims. More...
 
class  CreateRedirect
 API module for creating entity redirects. More...
 
class  EditEntity
 Derived class for API modules modifying a single entity identified by id xor a combination of site and page title. More...
 
class  EditSummaryHelper
 Helper methods for preparing summary instance for editing entity activity. More...
 
class  EntityByTitleHelper
 Helper class for api modules to resolve page+title pairs into entities. More...
 
class  EntityIdSearchHelper
 Helper class to search for entities by ID. More...
 
class  EntityLoadingHelper
 Helper class for api modules to load entities. More...
 
class  EntitySavingHelper
 Helper class for api modules to save entities. More...
 
interface  EntitySearchHelper
 Generic interface for searching entities. More...
 
class  EntityTerms
 Provides wikibase terms (labels, descriptions, aliases) for entity pages. More...
 
class  EntityTermSearchHelper
 Helper class to search for entities. More...
 
class  FormatEntities
 API module for formatting a set of entity IDs. More...
 
class  FormatSnakValue
 API module for using value formatters. More...
 
class  GetClaims
 API module for getting claims. More...
 
class  GetClaimsStatementFilter
 
class  GetEntities
 API module to get the data for one or more Wikibase entities. More...
 
class  LinkTitles
 API module to associate two pages on two different sites with a Wikibase item. More...
 
class  ListSubscribers
 API module for getting wikis subscribed to changes to given entities. More...
 
class  MergeItems
 
class  MetaContentLanguages
 
class  MetaDataBridgeConfig
 
class  ModifyEntity
 Base class for API modules modifying a single entity identified based on id xor a combination of site and page title. More...
 
class  ModifyTerm
 API module to set the terms for a Wikibase entity. More...
 
class  ParseValue
 API module for using value parsers. More...
 
class  PropertyDataTypeSearchHelper
 EntitySearchHelper decorator that adds property data types to the TermSearchResult meta data. More...
 
class  QuerySearchEntities
 API module to search for Wikibase entities that can be used as a generator. More...
 
class  RemoveClaims
 API module for removing claims. More...
 
class  RemoveQualifiers
 API module for removing qualifiers from a statement. More...
 
class  RemoveReferences
 API module for removing one or more references of the same statement. More...
 
class  ResultBuilder
 Builder of MediaWiki ApiResult objects with various convenience functions for adding Wikibase concepts and result parts to results in a uniform way. More...
 
class  SearchEntities
 API module to search for Wikibase entities. More...
 
class  SetAliases
 API module to set the aliases for a Wikibase entity. More...
 
class  SetClaim
 API module for creating or updating an entire Claim. More...
 
class  SetClaimValue
 API module for setting the DataValue contained by the main snak of a claim. More...
 
class  SetDescription
 API module for the language attributes for a Wikibase entity. More...
 
class  SetLabel
 API module to set the label for a Wikibase entity. More...
 
class  SetQualifier
 API module for creating a qualifier or setting the value of an existing one. More...
 
class  SetReference
 API module for creating a reference or setting the value of an existing one. More...
 
class  SetSiteLink
 API module to associate a page on a site with a Wikibase entity or remove an already made such association. More...
 
class  StatementModificationHelper
 Helper class for modifying an entities statements. More...
 
class  TypeDispatchingEntitySearchHelper
 EntitySearchHelper implementation which uses entity configuration to instantiate the specific handler. More...
 

Functions

 validateAlteringEntityById (?EntityId $entityId)
 

Variables

trait FederatedPropertyApiValidatorTrait
 Trait for Action API endpoints to disable altering properties when federated properties is enabled. More...
 
 $federatedPropertiesEnabled
 

Detailed Description

Repo implementations of MediaWiki's Action API

Function Documentation

◆ validateAlteringEntityById()

Wikibase\Repo\Api\validateAlteringEntityById ( ?EntityId  $entityId)
protected

Variable Documentation

◆ $federatedPropertiesEnabled

Wikibase::Repo::Api\$federatedPropertiesEnabled
private

◆ FederatedPropertyApiValidatorTrait

trait Wikibase::Repo::Api\FederatedPropertyApiValidatorTrait
Initial value:
{
protected $errorReporter

Trait for Action API endpoints to disable altering properties when federated properties is enabled.

Author
Tobias Andersson