コード例 #1
0
 /**
  * @param string $repoDB Database name of the repo
  * @param SiteLinkLookup $siteLinkLookup
  * @param User $user
  * @param string $siteId Global id of the client wiki
  * @param Title $oldTitle
  * @param Title $newTitle
  */
 public function __construct($repoDB, SiteLinkLookup $siteLinkLookup, User $user, $siteId, Title $oldTitle, Title $newTitle)
 {
     parent::__construct($repoDB, $siteLinkLookup, $user, $siteId, $oldTitle);
     $this->newTitle = $newTitle;
 }
 /**
  * Whether a given UpdateRepo should be pushed to the repo
  *
  * @param UpdateRepo $updateRepo
  * @return bool
  */
 private function shouldBePushed(UpdateRepo $updateRepo)
 {
     return $updateRepo->getEntityId() && $updateRepo->userIsValidOnRepo();
 }