getCheckboxes() public method

This method essentially extends the getRadios method and uses an identical signature except that $args['value'] can also accept an array of values to be checked.
public getCheckboxes ( array $args ) : str
$args array
return str
    $url = $baseUrl . '?' . http_build_query($_GET);
    if (isset($collection)) {
        $url .= '&collection=' . urlencode($collection);
    }
    echo $form->getFormOpen(array('action' => $url, 'style' => 'width: 80px; height: 20px;')) . $form->getInput(array('name' => 'limit', 'value' => $_SESSION['limit'], 'label' => '', 'addBreak' => false, 'style' => 'width: 40px;')) . $form->getInput(array('type' => 'submit', 'value' => 'limit', 'class' => 'ui-state-hover')) . $form->getFormClose();
    echo '</div>';
}
echo '</div>';
//end of dbcollnav
$dbcollnavJs = '$("#dbcollnav").after(\'<a id="dbcollnavlink" href="javascript: $(\\\'#dbcollnav\\\').show();' . ' $(\\\'#dbcollnavlink\\\').hide(); void(0);">[Show Database &amp; Collection selection]</a>\').hide();';
if (isset($mo->mongo['listRows'])) {
    echo $html->h1($collection);
    if (isset($mo->mongo['listIndexes'])) {
        echo '<ol id="indexes" style="display: none; margin-bottom: 10px;">';
        echo $form->getFormOpen(array('method' => 'get'));
        echo '<div id="indexInput">' . $form->getInput(array('name' => 'index[]', 'label' => '', 'addBreak' => false)) . $form->getCheckboxes(array('name' => 'isdescending[]', 'options' => array('Descending'))) . '</div>' . '<a id="addindexcolumn" style="margin-left: 160px;" href="javascript: ' . "\$('#addindexcolumn').before('<div>' + \$('#indexInput').html().replace(/isdescending_Descending/g, " . "'isdescending_Descending' + mo.indexCount++) + '</div>'); void(0);" . '">[Add another index field]</a>' . $form->getRadios(array('name' => 'unique', 'options' => array('Index', 'Unique'), 'value' => 'Index')) . $form->getInput(array('type' => 'submit', 'value' => 'Add new index', 'class' => 'ui-state-hover')) . $form->getInput(array('name' => 'action', 'type' => 'hidden', 'value' => 'ensureIndex')) . $form->getInput(array('name' => 'db', 'value' => get::htmlentities($db), 'type' => 'hidden')) . $form->getInput(array('name' => 'collection', 'value' => $collection, 'type' => 'hidden')) . $form->getFormClose();
        foreach ($mo->mongo['listIndexes'] as $indexArray) {
            $index = '';
            foreach ($indexArray['key'] as $key => $direction) {
                $index .= !$index ? $key : ', ' . $key;
                if (!is_object($direction)) {
                    $index .= ' [' . ($direction == -1 ? 'desc' : 'asc') . ']';
                }
            }
            if (isset($indexArray['unique']) && $indexArray['unique']) {
                $index .= ' [unique]';
            }
            if (key($indexArray['key']) != '_id' || count($indexArray['key']) !== 1) {
                $index = '[' . $html->link($baseUrl . '?db=' . $dbUrl . '&collection=' . urlencode($collection) . '&action=deleteIndex&index=' . serialize($indexArray['key']), 'X', array('title' => 'Drop Index', 'onclick' => "mo.confirm.href=this.href; " . "mo.confirm('Are you sure that you want to drop this index?', " . "function() {window.location.replace(mo.confirm.href);}); return false;")) . '] ' . $index;
            }
            echo '<li>' . $index . '</li>';