コード例 #1
0
 /**
  * @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;
 }
コード例 #2
0
 /**
  * @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;
 }
コード例 #4
0
 /**
  * @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();
 }
コード例 #5
0
 /**
  * @since 0.4
  */
 public function __construct()
 {
     parent::__construct('EntityData');
 }
コード例 #6
0
 /**
  * @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())));
 }
コード例 #7
0
 /**
  * @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()));
 }
コード例 #8
0
 /**
  * @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()));
 }
コード例 #9
0
 /**
  * @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()));
 }
コード例 #10
0
 /**
  * @since 0.2
  */
 public function __construct()
 {
     parent::__construct('ListDatatypes');
 }
コード例 #11
0
 /**
  * @since 0.2
  */
 public function __construct()
 {
     parent::__construct('DispatchStats');
 }