/
AdminPageFramework_Form_View___DebugInfo.php
30 lines (29 loc) · 1.28 KB
/
AdminPageFramework_Form_View___DebugInfo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
Admin Page Framework v3.8.30b02 by Michael Uno
Generated by PHP Class Files Script Generator <https://github.com/michaeluno/PHP-Class-Files-Script-Generator>
<http://en.michaeluno.jp/admin-page-framework>
Copyright (c) 2013-2021, Michael Uno; Licensed under MIT <http://opensource.org/licenses/MIT> */
class AdminPageFramework_Form_View___DebugInfo extends AdminPageFramework_FrameworkUtility {
public $sStructureType = '';
public $aCallbacks = array();
public $oMsg;
public function __construct() {
$_aParameters = func_get_args() + array($this->sStructureType, $this->aCallbacks, $this->oMsg,);
$this->sStructureType = $_aParameters[0];
$this->aCallbacks = $_aParameters[1];
$this->oMsg = $_aParameters[2];
}
public function get() {
if (!$this->_shouldProceed()) {
return '';
}
return "<div class='admin-page-framework-info'>" . $this->oMsg->get('debug_info') . ': ' . $this->getFrameworkNameVersion() . "</div>";
}
private function _shouldProceed() {
if (!$this->callBack($this->aCallbacks['show_debug_info'], true)) {
return false;
}
return in_array($this->sStructureType, array('widget', 'post_meta_box', 'page_meta_box', 'user_meta'));
}
}