Lines Matching +full:delete +full:- +full:user -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)

12  * @author     Jan Schumann <js@jschumann-it.com>
35 'logout' => true, // can the user logout again? (eg. not possible with HTTP auth)
42 * able to operate. Set capabilities in $this->cando
48 * Set $this->success to false if checks fail
68 return array_keys($this->cando);
74 * Checks the capabilities set in the $this->cando array and
89 // can at least one of the user's properties be changed?
90 return ($this->cando['modPass'] ||
91 $this->cando['modName'] ||
92 $this->cando['modMail']);
95 return ($this->cando['modPass'] ||
96 $this->cando['modName'] ||
97 $this->cando['modMail'] ||
98 $this->cando['modLogin'] ||
99 $this->cando['modGroups'] ||
100 $this->cando['modMail']);
103 if (!isset($this->cando[$cap])) {
104 msg("Check for unknown capability '$cap' - Do you use an outdated Plugin?", -1);
106 return $this->cando[$cap];
115 * example for enforcing a user name schema.
117 * @author Gabriel Birke <birke@d-scribe.de>
118 * @param string $type Modification type ('create', 'modify', 'delete')
128 'delete' => 'deleteUsers'
137 if ($evt->advise_before(true)) {
138 $result = call_user_func_array([$this, $validTypes[$type]], $evt->data['params']);
139 $evt->data['modification_result'] = $result;
141 $evt->advise_after();
147 * Log off the current user [ OPTIONAL ]
162 * Set $this->cando['external'] = true when implemented
165 * authenticate a user - all other DokuWiki internals
180 * the function needs to check if the user is logged in
189 * @param string $user Username
195 public function trustExternal($user, $pass, $sticky = false)
209 $_SERVER['REMOTE_USER'] = $user;
210 $_SESSION[DOKU_COOKIE]['auth']['user'] = $user;
219 * Check user+password [ MUST BE OVERRIDDEN ]
221 * Checks if the given user exists and the given
227 * @param string $user the user name
231 public function checkPass($user, $pass)
233 msg("no valid authorisation system in use", -1);
238 * Return user info [ MUST BE OVERRIDDEN ]
240 * Returns info about the given user needs to contain
243 * name string full name of the user
244 * mail string email address of the user
245 * grps array list of groups the user is in
248 * @param string $user the user name
250 * @return false|array containing user data or false
252 public function getUserData($user, $requireGroups = true)
254 if (!$this->cando['external']) msg("no valid authorisation system in use", -1);
259 * Create a new User [implement only where required/possible]
261 * Returns false if the user already exists, null when an error
264 * The new user HAS TO be added to the default group by this
270 * @param string $user
277 public function createUser($user, $pass, $name, $mail, $grps = null)
279 msg("authorisation method does not allow creation of new users", -1);
284 * Modify user data [implement only where required/possible]
289 * @param string $user nick of the user to be changed
293 public function modifyUser($user, $changes)
295 msg("authorisation method does not allow modifying of user data", -1);
300 * Delete one or more users [implement only where required/possible]
310 msg("authorisation method does not allow deleting of users", -1);
315 * Return a count of the number of user which meet $filter criteria
326 msg("authorisation method does not provide user counts", -1);
331 * Bulk retrieval of user data [implement only where required/possible]
336 * @param int $start index of first user to be returned
343 msg("authorisation method does not support mass retrieval of user data", -1);
358 msg("authorisation method does not support independent group creation", -1);
374 msg("authorisation method does not support group list retrieval", -1);
381 * When your backend is caseinsensitive (eg. you can login with USER and
382 * user) then you need to overwrite this method and return false
394 * This function is applied to any user name that is given to
395 * the backend and should also be applied to any user name within
401 * @param string $user username
404 public function cleanUser($user)
406 return $user;
432 * DokuWiki caches user info in the user's session for the timespan defined
436 * This also means that changes to the user database will not be reflected
439 * To accommodate for this, the user manager plugin will touch a reference
444 * the backend's database through other means than the user manager plugin.
450 * @param string $user - The username
454 public function useSessionCache($user)