HTML_Table::setColGroup()
HTML_Table::setColGroup() – colgroup を設定する
Synopsis
require_once 'HTML/Table.php';
void HTML_Table::setColGroup (
mixed $colgroup
= = null
,
mixed $attributes
= = null
)
Description
colgroup (と、その属性) を追加します。
Example
<?php
require_once 'HTML/Table.php';
$table =& new HTML_Table();
$colgroup = '';
$attributes = 'span="3" class="group1"';
$table->setColGroup($colgroup, $attributes);
?>
<?php
require_once 'HTML/Table.php';
$table =& new HTML_Table();
$colgroup = array('style="font-size: 120%;"', 'class="col2"', 'align="right"');
$attributes = 'span="3" class="group1"';
$table->setColGroup($colgroup, $attributes);
?>
<?php
require_once 'HTML/Table.php';
$colgroup = array('style="font-size:120%;"', 'class="col2"', 'align="right"');
$attributes = 'span="3" class="group1"';
$table->setColGroup($colgroup, $attributes);
$colgroup = array(array('class' => 'col4'), array('class' => 'col5'));
$attributes = 'span="2" class="group2"';
$table->setColGroup($colgroup, $attributes);
?>
Note
This function can not be called
statically.