21 lines
555 B
PHP
Executable File
21 lines
555 B
PHP
Executable File
<?php
|
|
|
|
class Controller {
|
|
public static $requestReturnMock = 'mockRequestValue';
|
|
public static $checkUserLoggedReturnMock = true;
|
|
public static $isUserSystemEnabledReturnMock = true;
|
|
|
|
public static function request($value) {
|
|
if($value === 'staff') return false;
|
|
return static::$requestReturnMock;
|
|
}
|
|
|
|
public static function checkUserLogged() {
|
|
return static::$checkUserLoggedReturnMock;
|
|
}
|
|
|
|
public static function isUserSystemEnabled() {
|
|
return static::$isUserSystemEnabledReturnMock;
|
|
}
|
|
}
|