| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Description of DebugPageController |
| 5 |
* |
| 6 |
* @author Ali2Woo Team |
| 7 |
* |
| 8 |
* @autoload: a2wl_before_admin_menu |
| 9 |
*/ |
| 10 |
|
| 11 |
namespace AliNext_Lite;; |
| 12 |
|
| 13 |
use Pages; |
| 14 |
|
| 15 |
class DebugPageController extends AbstractAdminPage |
| 16 |
{ |
| 17 |
public function __construct() |
| 18 |
{ |
| 19 |
if (a2wl_check_defined('A2WL_DEBUG_PAGE')) { |
| 20 |
parent::__construct( |
| 21 |
Pages::getLabel(Pages::DEBUG), |
| 22 |
Pages::getLabel(Pages::DEBUG), |
| 23 |
Capability::pluginAccess(), |
| 24 |
Pages::DEBUG, |
| 25 |
1100 |
| 26 |
); |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
public function render($params = []): void |
| 31 |
{ |
| 32 |
if (!PageGuardHelper::canAccessPage(Pages::DEBUG)) { |
| 33 |
wp_die($this->getErrorTextNoPermissions()); |
| 34 |
} |
| 35 |
} |
| 36 |
} |
| 37 |
|