コード例 #1
0
        break;
    case 'list_events':
        $selection = 'list events';
        $data = $unifidata->list_events();
        break;
    case 'list_alarms':
        $selection = 'list alerts';
        $data = $unifidata->list_alarms();
        break;
    case 'list_wlanconf':
        $selection = 'wlan config';
        $data = $unifidata->list_wlanconf();
        break;
    case 'list_health':
        $selection = 'site health metrics';
        $data = $unifidata->list_health();
        break;
    case 'list_settings':
        $selection = 'list site settings';
        $data = $unifidata->list_settings();
        break;
    case 'list_sites':
        $selection = 'details of available sites';
        $data = $sites;
        break;
    default:
        break;
}
function print_output($outputformat, $data)
{
    /*