| @@ -136,6 +136,9 @@ discard block | ||
| 136 | 136 | return $this->findEntities($qb->getSQL(), $qb->getParameters(), $limit, $offset); | 
| 137 | 137 | } | 
| 138 | 138 | |
| 139 | + /** | |
| 140 | + * @param boolean $hasLoggedIn | |
| 141 | + */ | |
| 139 | 142 |  	public function getUserCountPerBackend($hasLoggedIn) { | 
| 140 | 143 | $qb = $this->db->getQueryBuilder(); | 
| 141 | 144 |  		$qb->select(['backend', $qb->createFunction('count(*) as `count`')]) | 
| @@ -158,6 +161,9 @@ discard block | ||
| 158 | 161 | return $return; | 
| 159 | 162 | } | 
| 160 | 163 | |
| 164 | + /** | |
| 165 | + * @param boolean $hasLoggedIn | |
| 166 | + */ | |
| 161 | 167 |  	public function getUserCount($hasLoggedIn) { | 
| 162 | 168 | $qb = $this->db->getQueryBuilder(); | 
| 163 | 169 |  		$qb->select([$qb->createFunction('count(*) as `count`')]) | 
| @@ -174,6 +180,11 @@ discard block | ||
| 174 | 180 | return (int) $data['count']; | 
| 175 | 181 | } | 
| 176 | 182 | |
| 183 | + /** | |
| 184 | + * @param \Closure $callback | |
| 185 | + * @param string $search | |
| 186 | + * @param boolean $onlySeen | |
| 187 | + */ | |
| 177 | 188 |  	public function callForAllUsers($callback, $search, $onlySeen) { | 
| 178 | 189 | $qb = $this->db->getQueryBuilder(); | 
| 179 | 190 | $qb->select(['*']) | 
| @@ -75,7 +75,7 @@ discard block | ||
| 75 | 75 | * @param Account $account | 
| 76 | 76 | * @param AccountMapper $mapper | 
| 77 | 77 | * @param AccountTermMapper $termMapper | 
| 78 | - * @param null $emitter | |
| 78 | + * @param Manager $emitter | |
| 79 | 79 | * @param IConfig|null $config | 
| 80 | 80 | * @param null $urlGenerator | 
| 81 | 81 | * @param EventDispatcher|null $eventDispatcher | 
| @@ -101,7 +101,7 @@ discard block | ||
| 101 | 101 | /** | 
| 102 | 102 | * get the user id | 
| 103 | 103 | * | 
| 104 | - * @return string | |
| 104 | + * @return integer | |
| 105 | 105 | */ | 
| 106 | 106 |  	public function getUID() { | 
| 107 | 107 | return $this->account->getUserId(); | 
| @@ -437,6 +437,10 @@ discard block | ||
| 437 | 437 | return $url; | 
| 438 | 438 | } | 
| 439 | 439 | |
| 440 | + /** | |
| 441 | + * @param string $feature | |
| 442 | + * @param string $value | |
| 443 | + */ | |
| 440 | 444 |  	public function triggerChange($feature, $value = null) { | 
| 441 | 445 |  		if ($this->emitter) { | 
| 442 | 446 |  			$this->emitter->emit('\OC\User', 'changeUser', [$this, $feature, $value]); | 
| @@ -1,12 +1,10 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | namespace OC\Migrations; | 
| 3 | 3 | |
| 4 | -use OC\User\Account; | |
| 5 | 4 | use OC\User\AccountMapper; | 
| 6 | 5 | use OC\User\AccountTermMapper; | 
| 7 | 6 | use OC\User\Database; | 
| 8 | 7 | use OC\User\SyncService; | 
| 9 | -use OCP\IConfig; | |
| 10 | 8 | use OCP\Migration\ISimpleMigration; | 
| 11 | 9 | use OCP\Migration\IOutput; | 
| 12 | 10 | |