[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace dokuwiki\test\mock; 4 5 /** 6 * Class dokuwiki\Plugin\DokuWiki_Auth_Plugin 7 */ 8 class AuthDeletePlugin extends AuthPlugin { 9 10 public $loggedOff = false; 11 12 public function __construct($canDeleteUser = true) { 13 $this->cando['delUser'] = $canDeleteUser; 14 } 15 16 public function checkPass($user, $pass) { 17 return $pass == 'password'; 18 } 19 20 public function deleteUsers($users) { 21 return in_array($_SERVER['REMOTE_USER'], $users); 22 } 23 24 public function logoff() { 25 $this->loggedOff = true; 26 } 27 28 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body