/** * @see SpecialWikibasePage::__construct */ public function __construct() { parent::__construct('GoToLinkedPage', '', true); $wikibaseRepo = WikibaseRepo::getDefaultInstance(); $this->initServices($wikibaseRepo->getSiteStore(), $wikibaseRepo->getStore()->newSiteLinkStore(), $wikibaseRepo->getStore()->getEntityRedirectLookup(), $wikibaseRepo->getEntityIdParser(), $wikibaseRepo->getStore()->getEntityLookup()); $this->errorMessageKey = null; }
/** * @see SpecialWikibasePage::__construct * * @since 0.1 */ public function __construct() { // args $name, $restriction, $listed parent::__construct('ItemByTitle', '', true); $wikibaseRepo = WikibaseRepo::getDefaultInstance(); $this->initSettings($wikibaseRepo->getSettings()->getSetting('siteLinkGroups')); $this->initServices($wikibaseRepo->getEntityTitleLookup(), $wikibaseRepo->getSiteStore(), $wikibaseRepo->getStore()->newSiteLinkStore()); }
/** * @see SpecialWikibasePage::__construct * * @since 0.1 */ public function __construct() { parent::__construct('ItemDisambiguation', '', true); // @todo inject this $this->contentLanguages = new MediaWikiContentLanguages(); // @todo make this configurable $this->limit = 100; }
/** * @param string $name * @param string $restriction * @param bool $listed */ public function __construct($name = '', $restriction = '', $listed = true) { parent::__construct($name, $restriction, $listed); $this->entityTitleLookup = WikibaseRepo::getDefaultInstance()->getEntityTitleLookup(); }
/** * @since 0.4 */ public function __construct() { parent::__construct('EntityData'); }
/** * @since 0.5 */ public function __construct() { parent::__construct('MergeItems', 'item-merge'); $wikibaseRepo = WikibaseRepo::getDefaultInstance(); $this->initServices($wikibaseRepo->getEntityIdParser(), $wikibaseRepo->getExceptionLocalizer(), new TokenCheckInteractor($this->getUser()), new ItemMergeInteractor($wikibaseRepo->getChangeOpFactoryProvider()->getMergeChangeOpFactory(), $wikibaseRepo->getEntityRevisionLookup('uncached'), $wikibaseRepo->getEntityStore(), $wikibaseRepo->getEntityPermissionChecker(), $wikibaseRepo->getSummaryFormatter(), $this->getUser(), $wikibaseRepo->newRedirectCreationInteractor($this->getUser(), $this->getContext()))); }
/** * @since 0.5 */ public function __construct() { parent::__construct('RedirectEntity'); $wikibaseRepo = WikibaseRepo::getDefaultInstance(); $this->initServices($wikibaseRepo->getEntityIdParser(), $wikibaseRepo->getExceptionLocalizer(), new TokenCheckInteractor($this->getUser()), $wikibaseRepo->newRedirectCreationInteractor($this->getUser(), $this->getContext())); }
/** * @since 0.5 */ public function __construct() { parent::__construct('MergeItems', 'item-merge'); $wikibaseRepo = WikibaseRepo::getDefaultInstance(); $this->initServices($wikibaseRepo->getEntityIdParser(), $wikibaseRepo->getExceptionLocalizer(), new TokenCheckInteractor($this->getUser()), $wikibaseRepo->newItemMergeInteractor($this->getContext())); }
/** * @since 0.5 * * @param string $title The title of the special page * @param string $restriction The required user right */ public function __construct($title, $restriction) { parent::__construct($title, $restriction); $wikibaseRepo = WikibaseRepo::getDefaultInstance(); $this->setSpecialWikibaseRepoPageServices($wikibaseRepo->getSummaryFormatter(), $wikibaseRepo->getEntityRevisionLookup('uncached'), $wikibaseRepo->getEntityTitleLookup(), $wikibaseRepo->getSiteStore(), $wikibaseRepo->newEditEntityFactory($this->getContext())); }
/** * @since 0.2 */ public function __construct() { parent::__construct('ListDatatypes'); }
/** * @since 0.2 */ public function __construct() { parent::__construct('DispatchStats'); }