Lines Matching defs:user

24      * This will automatically overwrite any existent subscription for the given user on this
27 * @throws Exception when user or style is empty
31 * @param string $user
37 public function add($id, $user, $style, $data = '')
44 $this->remove($id, $user);
46 $user = auth_nameencode(trim($user));
50 if (!$user) {
51 throw new Exception('no subscription user given');
60 $line = "$user $style $data\n";
74 * @param string|array $user
81 public function remove($id, $user = null, $style = null, $data = null)
93 $re = $regexBuilder->buildRegex($user, $style, $data);
101 * and user is in effect. Else it contains an array of arrays with the fields
105 * @param string $user User, defaults to $_SERVER['REMOTE_USER']
112 public function userSubscription($id = '', $user = '')
124 if (!$user) {
125 $user = $INPUT->server->str('REMOTE_USER');
128 if (empty($user)) {
133 $subs = $this->subscribers($id, $user);
142 'style' => $info[$user][0],
143 'data' => $info[$user][1],
157 * @param string|array $user
167 public function subscribers($page, $user = null, $style = null, $data = null)
181 $re = $regexBuilder->buildRegex($user, $style, $data);
207 $u = rawurldecode($m[1]); // decode the user name
220 * Aggregates all email addresses of user who have subscribed the given page with 'every' style
255 foreach ($users as $user => $info) {
256 $userinfo = $auth->getUserData($user);
263 if (!$self && $user == $INPUT->server->str('REMOTE_USER')) {
267 $level = auth_aclcheck($id, $user, $userinfo['grps']);
269 if (strcasecmp($userinfo['mail'], $conf['notify']) != 0) { //skip user who get notified elsewhere
270 $result[$user] = $userinfo['mail'];