コード例 #1
0
 function show()
 {
     ashow($this);
 }
コード例 #2
0
function show_control()
{
    global $control;
    if (defined('SP_DEVFLAG') && SP_DEVFLAG == true) {
        if ($control) {
            ashow($control);
        }
    }
}
コード例 #3
0
function sp_display_inspector($dName, $dObject)
{
    global $spThisUser;
    if (empty($spThisUser->inspect)) {
        return;
    }
    $i = $spThisUser->inspect;
    if ($dName == 'control') {
        # spVars, spGlobals, spThisUser
        if (array_key_exists('con_spVars', $i) && $i['con_spVars']) {
            global $spVars;
            ashow($spVars, $spThisUser->ID, 'spVars');
        }
        if (array_key_exists('con_spGlobals', $i) && $i['con_spGlobals']) {
            global $spGlobals;
            ashow($spGlobals, $spThisUser->ID, 'spGlobals');
        }
        if (array_key_exists('con_spThisUser', $i) && $i['con_spThisUser']) {
            ashow($spThisUser, $spThisUser->ID, 'spThisUser');
        }
        if (array_key_exists('con_spDevice', $i) && $i['con_spDevice']) {
            global $spDevice;
            ashow($spDevice, $spThisUser->ID, 'spDevice');
        }
    } else {
        # called direct from class file
        if (array_key_exists($dName, $i) && $i[$dName]) {
            if (!empty($dObject)) {
                $dName = ltrim(strrchr($dName, '_'), '_');
                ashow($dObject, $spThisUser->ID, $dName);
            }
        }
    }
}