Displays this check-all row
170436
public function display()
    {
        if (!$this->visible || count($this->view->model) < 2) {
            return;
        }

        parent::display();

        $this->createEmbeddedWidgets();

        $columns = $this->view->getVisibleColumns();

        $tr_tag = new SwatHtmlTag('tr');
        $tr_tag->id = $this->id;
        $tr_tag->class = $this->getCSSClassString();
        $tr_tag->open();

        // find checkbox column position
        $position = 0;
        foreach ($columns as $column) {
            if ($column === $this->column) {
                break;
            } else {
                $position++;
            }
        }

        if ($position > 0) {
            $td_before_tag = new SwatHtmlTag('td');
            $td_before_tag->setContent('&nbsp;', 'text/xml');
            if ($position > 1) {
                $td_before_tag->colspan = $position;
            }

            $td_before_tag->display();
        }

        $td_tag = new SwatHtmlTag('td');
        if (count($columns) - $position > 1) {
            $td_tag->colspan = count($columns) - $position;
        }

        $td_tag->open();
        if ($this->title !== null) {
            $this->check_all->title = $this->title;
            $this->check_all->content_type = $this->content_type;
        }

        $this->check_all->extended_count = $this->extended_count;
        $this->check_all->visible_count = $this->visible_count;
        $this->check_all->unit = $this->unit;
        $this->check_all->tab_index = $this->tab_index;
        $this->check_all->display();

        $td_tag->close();

        $tr_tag->close();
    }
288560
public function checkIn() {
        $now = date('Y-m-d H:i:s');
        $serverRow = $this->_fetchServerRow();

        if (!$serverRow) {
            $serverRow = $this->createRow();
            $serverRow->hostname = gethostname();
            $lastCheckIn = $now;
        } else {
            $lastCheckIn = $serverRow->modified;
        }

        //  set the modified date manually, to make sure the record is updated.
        $serverRow->modified = $now;
        $serverId = $serverRow->save();

        return array(
            $serverId,
            $lastCheckIn
        );
    }
77648
def status_table(checkers)
      content_tag(:table, border: 1) do
        concat status_header
        checkers.each { |checker| concat status_row(checker) }
      end
    end
131131
public function displayTiles()
    {
        // this uses read-ahead iteration

        $this->model->rewind();
        $record = $this->model->valid() ? $this->model->current() : null;

        $this->model->next();
        $next_record = $this->model->valid() ? $this->model->current() : null;

        // tile count used for tiles-per-row option
        $count = 1;

        while ($record !== null) {
            ob_start();
            $this->displayTileGroupHeaders($record, $next_record);
            $group_headers = ob_get_clean();

            echo $group_headers;

            // if group headers are displayed, reset tiles-per-row count
            if ($group_headers != '') {
                $count = 1;
            }

            $this->displayTile($record, $next_record);

            // clear tiles-per-row
            if (
                $this->tiles_per_row !== null &&
                $count % $this->tiles_per_row === 0
            ) {
                echo '<div class="swat-tile-view-clear"></div>';
            }

            ob_start();
            $this->displayTileGroupFooters($record, $next_record);
            $group_footers = ob_get_clean();

            echo $group_footers;

            // if group footers are displayed, reset tiles-per-row-count,
            // otherwise, increase tiles-per-row-count
            if ($group_footers != '') {
                $count = 1;
            } else {
                $count++;
            }

            // get next record
            $record = $next_record;
            $this->model->next();
            $next_record = $this->model->valid()
                ? $this->model->current()
                : null;
        }
    }
585568
protected void display() {
        new FilterPresenter(new FilterViewUI()).go(layout);
        resultPresenter = new ResultPresenter(getResultView());
        loadStatusListener.registerObserver(resultPresenter);
        resultPresenter.go(layout);

    }
364771
def previous_row(self):
        """"""
        if self.mode == self.SYMBOL_MODE:
            self.select_row(-1)
            return
        prev_row = self.current_row() - 1
        if prev_row >= 0:
            title = self.list.item(prev_row).text()
        else:
            title = ''
        if prev_row == 0 and '</b></big><br>' in title:
            self.list.scrollToTop()
        elif '</b></big><br>' in title:
            # Select the next previous row, the one following is a title
            self.select_row(-2)
        else:
            self.select_row(-1)
1318787
private void checkIndices(int row, int col) {
        if (row < 0 || row >= rows)
            throw new ArrayIndexOutOfBoundsException("row: " + row);
        else if (col < 0 || col >= cols)
            throw new ArrayIndexOutOfBoundsException("column: " + col);
    }
279503
public function display()
    {
        $style = new Style();
        echo PHP_EOL;

        echo $style->setText('Use    : ')
            ->color('fg', Style::COLOR_GREEN)
            ->highlight('fg')
            ->bold()
            ->get();

        echo $style->reset()
            ->setText('php  ' . $this->scriptName . ' [OPTION]...')
            ->highlight('fg')
            ->bold()
            ->get() . PHP_EOL;

        echo $style->reset()
            ->setText('OPTIONS: ')
            ->color('fg', Style::COLOR_GREEN)
            ->bold()
            ->get() . PHP_EOL;

        foreach ($this->arguments as $argument) {
            $line = '  ';

            if (! empty($argument->shortName)) {
                $line .= '-' . $argument->shortName;

                if ($argument->hasValue) {
                    $line .= ' ARG';
                }

                $line .= ',';
            }

            $line = str_pad($line, 10); // add 8 space


            if (! empty($argument->fullName)) {
                $line .= '--' . $argument->fullName;
                if ($argument->hasValue) {
                    $line .= '=ARG';
                }
            }

            $line = $style->reset()
                ->setText(str_pad($line, 40))
                ->bold()
                ->get();
            $line .= $argument->description;

            if ($argument->isMandatory) {
                $line .= $style->reset()
                    ->setText(' - MANDATORY')
                    ->color('fg', Style::COLOR_RED)
                    ->get();
            }

            echo $line, PHP_EOL;
        }

        echo PHP_EOL;
    }
1072797
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $table_tag = new SwatHtmlTag('table');
        $table_tag->id = $this->id;
        $table_tag->class = $this->getCSSClassString();

        $table_tag->open();
        $this->displayContent();
        $table_tag->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }
1228933
function display(data) {
    let total = 0;
    const rows = Object.keys(data)
        .map(key => {
            const time = data[key];

            total += time;
            return [key, time];
        })
        .sort((a, b) => b[1] - a[1])
        .slice(0, 10);

    rows.forEach(row => {
        row.push(`${(row[1] * 100 / total).toFixed(1)}%`);
        row[1] = row[1].toFixed(3);
    });

    rows.unshift(HEADERS);

    const widths = [];

    rows.forEach(row => {
        const len = row.length;

        for (let i = 0; i < len; i++) {
            const n = row[i].length;

            if (!widths[i] || n > widths[i]) {
                widths[i] = n;
            }
        }
    });

    const table = rows.map(row => (
        row
            .map((cell, index) => ALIGN[index](cell, widths[index]))
            .join(" | ")
    ));

    table.splice(1, 0, widths.map((width, index) => {
        const extraAlignment = index !== 0 && index !== widths.length - 1 ? 2 : 1;

        return ALIGN[index](":", width + extraAlignment, "-");
    }).join("|"));

    console.log(table.join("\n")); // eslint-disable-line no-console
}
862079
private function show_all()
    {
        $query = "SELECT expires, body FROM cache";
        if ($result = $this->db->query($query)) {
            if ($result->size() > 0) {
                $results = $result->fetchAll();
                echo '<pre>';
                print_r($results);
                echo '</pre>';
            } else {
                return false;
            }
        } else {
            // TODO: Handle error
            return false;
        }
    }
1273823
public function displayTidy()
    {
        $breaking_tags = '@</?(div|p|table|tr|td|ul|li|ol|dl|option)[^<>]*>@ui';

        ob_start();
        $this->display();
        $buffer = ob_get_clean();
        $tidy = preg_replace($breaking_tags, "\n\\0\n", $buffer);
        $tidy = str_replace("\n\n", "\n", $tidy);
        echo $tidy;
    }
109037
function getAllChildRowIndex(row) {
    // if(row.allChildRowIndex && row.allChildRowIndex.length > 0){
    // 	return row.allChildRowIndex;
    // }
    row.allChildRowIndex = new Array();
    this.getAllChildRowIndexFun(row, row.allChildRowIndex);
    return row.allChildRowIndex;
}
655100
public function display($row)
    {
        if (!$this->visible) {
            return;
        }

        $this->setupRenderers($row);
        $this->displayRenderers($row);
    }
773821
public function display() {
        global $PAGE, $COURSE;

        $this->require_definition_after_data();

        $config = new stdClass;
        if ($this->uistage->get_ui() instanceof import_ui) {
            $config->title = get_string('confirmcancelimport', 'backup');
        } else if ($this->uistage->get_ui() instanceof restore_ui) {
            $config->title = get_string('confirmcancelrestore', 'backup');
        } else {
            $config->title = get_string('confirmcancel', 'backup');
        }
        $config->question = get_string('confirmcancelquestion', 'backup');
        $config->yesLabel = $config->title;
        $config->noLabel = get_string('confirmcancelno', 'backup');
        $config->closeButtonTitle = get_string('close', 'editor');
        $PAGE->requires->yui_module(
            'moodle-backup-confirmcancel',
            'M.core_backup.confirmcancel.watch_cancel_buttons',
            array($config)
        );

        // Get list of module types on course.
        $modinfo = get_fast_modinfo($COURSE);
        $modnames = $modinfo->get_used_module_names(true);
        $PAGE->requires->yui_module('moodle-backup-backupselectall', 'M.core_backup.backupselectall',
                array($modnames));
        $PAGE->requires->strings_for_js(array('select', 'all', 'none'), 'moodle');
        $PAGE->requires->strings_for_js(array('showtypes', 'hidetypes'), 'backup');

        parent::display();
    }
513832
def all(self, command, params=None):
        
        dr = self.query(command, params)
        return dr['rows']
1128296
def view(self):
        
        print(self.format(remove='bnode',
                          sort=True,
                          pretty=True,
                          compress=True,
                          output='json',
                          add_ids=True))