blob: 0ebe13566a50d1c2d85e0054a129305dc6a3b333 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
/**
* Just call SuperUser when you need to be able to do everything.
*/
class MockSuperUser extends User {
protected $id = 666;
public function setId( $id ) {
$this->id = $id;
}
public function getId() {
return $this->id;
}
public function getName() {
return 'SuperUser';
}
public function isAllowed( $right = '' ) {
return true;
}
}
|