MockSuperUser.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class MockSuperUser extends User {
00007     protected $id = 666;
00008 
00009     public function setId( $id ) {
00010         $this->id = $id;
00011     }
00012 
00013     public function getId() {
00014         return $this->id;
00015     }
00016 
00017     public function getName() {
00018         return 'SuperUser';
00019     }
00020 
00021     public function isAllowed( $right = '' ) {
00022         return true;
00023     }
00024 }
Generated on Tue Oct 29 00:00:24 2013 for MediaWiki Translate Extension by  doxygen 1.6.3