Lines Matching refs:user

118      * Check user+password.
120 * @param string $user the user name
127 public function checkPass($user, $pass)
129 $data = $this->getUserData($user);
142 * Bulk retrieval of user data.
144 * @param int $start index of first user to be returned
160 foreach ($this->users as $user => $info) {
161 if ($this->applyFilter($user, $info)) {
163 $list[$user] = $info;
177 * Return a count of the number of user which meet $filter criteria.
192 foreach ($this->users as $user => $info) {
193 $count += (int)$this->applyFilter($user, $info);
201 * Returns info about the given user.
203 * @param string $user the user name
206 * @return array|false containing user data or false in case of error
208 public function getUserData($user, $requireGroups = true)
210 if (isset($this->users[$user])) {
211 return $this->users[$user];
215 . 'WHERE user_login = :user';
218 $stmt->bindParam(':user', $user);
219 $this->logDebug("Retrieving data for user '$user'\n$sql");
228 $user = $stmt->fetch(PDO::FETCH_ASSOC);
229 if ($user === false) {
230 // Unknown user
231 $this->logDebug("Unknown user");
235 return $this->cacheUser($user);
271 * Convert a Wordpress DB User row to DokuWiki user info array
274 * @param array $row Raw Wordpress user table row
276 * @return array user data
284 // If the user is already cached, just return it
296 'user' => $login,
321 foreach ($stmt->fetchAll(PDO::FETCH_ASSOC) as $user) {
322 $this->cacheUser($user);
345 * Return true if given user matches filter pattern, false otherwise.
347 * @param string $user login
352 protected function applyFilter(string $user, array $info): bool