Lines Matching refs:user

72      * @param  string $user user who would like access
80 public function checkPass($user, $pass) { argument
84 $sql = str_replace('%{user}', $this->_escape($user), $this->getConf('checkPass'));
121 * @param string $user user login to get data for
126 public function getUserData($user, $requireGroups=true) { argument
127 if($this->_cacheExists($user, $requireGroups)) {
128 return $this->cacheUserInfo[$user];
132 $info = $this->_getUserInfo($user, $requireGroups);
148 * @param string $user username of the user whose information is being reterieved
155 protected function _getUserInfo($user, $requireGroups=true, $useCache=true) { argument
157 if ($useCache && isset($this->cacheUserInfo[$user])) {
158 $info = $this->cacheUserInfo[$user];
161 $info = $this->_retrieveUserInfo($user);
164 $info['grps'] = $this->_getGroups($user);
167 $this->cacheUserInfo[$user] = $info;
182 * @param string $user user's nick to get data for
185 protected function _retrieveUserInfo($user) { argument
186 $sql = str_replace('%{user}', $this->_escape($user), $this->getConf('getUserInfo'));
206 * @param string $user user whose groups should be listed
209 protected function _getGroups($user) { argument
212 $sql = str_replace('%{user}', $this->_escape($user), $this->getConf('getGroups'));
291 * @param string $user - The username
499 * @param string $user username of the user whose data is to be removed from the cache
502 protected function _flushUserInfoCache($user=null) { argument
503 if (is_null($user)) {
506 unset($this->cacheUserInfo[$user]);
516 * @param string $user username to be looked up in the cache
521 protected function _cacheExists($user, $requireGroups=true) { argument
522 if (isset($this->cacheUserInfo[$user])) {
523 if (!is_array($this->cacheUserInfo[$user])) {
526 if (!$requireGroups || isset($this->cacheUserInfo[$user]['grps'])) {