Example #1
0
function marantz_vocal_command(&$response, $actionUrl)
{
    global $_, $conf;
    $marantz = new MarantzCmd();
    $marantzCmd = $marantz->loadAll(array('vocal' => true));
    if (is_array($marantzCmd)) {
        foreach ($marantzCmd as $row) {
            $response['commands'][] = array('command' => $conf->get('VOCAL_ENTITY_NAME') . $row->getCmd(), 'url' => $actionUrl . '?action=marantz_vocale' . '&id=' . $row->getId(), 'confidence' => $row->getConfidence(), 'categorie' => 'Marantz');
        }
    }
}