Chora::header PHP Метод

header() публичный статический Метод

Generates and prints the page header.
public static header ( string $title )
$title string The page title.
    public static function header($title)
    {
        global $notification, $page_output;
        if (count(Chora::sourceroots()) < 2) {
            $page_output->sidebar = false;
        }
        $page_output->header(array('title' => $title));
        $notification->notify(array('listeners' => 'status'));
        require CHORA_TEMPLATES . '/headerbar.inc';
    }

Usage Example

Пример #1
0
 * populating the grid with branch revisions. */
for ($row = sizeof($trunk) - 1; $row >= 0; $row--) {
    $grid[$row][0] = $trunk[$row];
    _populateGrid($row, 0);
}
/* Sort the grid array into row order, and determine the maximum
 * column size that we need to render out in HTML. */
ksort($grid);
$maxCol = 0;
foreach ($grid as $cols) {
    krsort($cols);
    list($val) = each($cols);
    $maxCol = max($val, $maxCol);
}
$title = _("Source Branching View for:");
Chora::header($title);
echo Chora::getHistoryViews($where)->render('history');
require CHORA_TEMPLATES . '/history/header.inc';
foreach ($grid as $row) {
    echo '<tr>';
    /* Start traversing the grid of rows and columns. */
    for ($i = 0; $i <= $maxCol; ++$i) {
        /* If this column has nothing in it, require a blank cell. */
        if (!isset($row[$i])) {
            $bg = '';
            require CHORA_TEMPLATES . '/history/blank.inc';
            continue;
        }
        /* Otherwise, this cell has content; determine what it is. */
        $rev = $row[$i];
        //        if ($VC->isValidRevision($rev) && ($VC->sizeof($rev) % 2)) {