cvs: peardoc /en/package/html html-table.xml /en/package/html/html-table/html-table setcolgroup.xml
| From: | Mark Wiesemann | Date: | Thu, 27 Apr 2006 18:11:20 +0000 |
| Subject: | cvs: peardoc /en/package/html html-table.xml /en/package/html/html-table/html-table setcolgroup.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-7826@lists.php.net to get a copy of this message | ||
wiesemann Thu Apr 27 18:11:20 2006 UTC
Added files:
/peardoc/en/package/html/html-table/html-table setcolgroup.xml
Modified files:
/peardoc/en/package/html html-table.xml
Log:
- add documentation for new colgroup feature
http://cvs.php.net/viewcvs.cgi/peardoc/en/package/html/html-table.xml?r1=1.4&r2=1.5&diff_format=u
Index: peardoc/en/package/html/html-table.xml
diff -u peardoc/en/package/html/html-table.xml:1.4 peardoc/en/package/html/html-table.xml:1.5
--- peardoc/en/package/html/html-table.xml:1.4 Sat Sep 24 17:37:57 2005
+++ peardoc/en/package/html/html-table.xml Thu Apr 27 18:11:20 2006
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<sect1 id="package.html.html-table">
<title>HTML_Table</title>
@@ -37,6 +37,7 @@
&package.html.html-table.html-table.setcellcontents;
&package.html.html-table.html-table.setcolattributes;
&package.html.html-table.html-table.setcolcount;
+ &package.html.html-table.html-table.setcolgroup;
&package.html.html-table.html-table.setcoltype;
&package.html.html-table.html-table.setheadercontents;
&package.html.html-table.html-table.setrowcount;
http://cvs.php.net/viewcvs.cgi/peardoc/en/package/html/html-table/html-table/setcolgroup.xml?view=markup&rev=1.1
Index: peardoc/en/package/html/html-table/html-table/setcolgroup.xml
+++ peardoc/en/package/html/html-table/html-table/setcolgroup.xml
<!-- $Revision: 1.1 $ -->
<refentry id="package.html.html-table.html-table.setcolgroup">
<refnamediv>
<refname>HTML_Table::setColGroup</refname>
<refpurpose>Set a colgroup</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsisinfo>
require_once 'HTML/Table.php';
</funcsynopsisinfo>
<funcprototype>
<funcdef>void <function>HTML_Table::setColGroup</function></funcdef>
<paramdef>
mixed <parameter><optional>$colgroup =
&null;</optional></parameter>
</paramdef>
<paramdef>
mixed <parameter><optional>$attributes =
&null;</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.html.html-table.html-table.setcolgroup.desc">
&title.desc;
<para>
Allows to add a colgroup (with attributes)
</para>
</refsect1>
<refsect1 id="package.html.html-table.html-table.setcolgroup.parameter">
&title.param;
<para>
<itemizedlist>
<listitem>
<para>
<parameter>mixed $colgroup</parameter> -
Empty string, string with attributes or an associative array of
attributes for the columns
</para>
</listitem>
<listitem>
<para>
<parameter>mixed $attributes</parameter> -
Associative array or string of colgroup attributes
</para>
</listitem>
</itemizedlist>
</para>
</refsect1>
<refsect1 id="package.html.html-table.html-table.setcolgroup.example">
&title.example;
<example>
<title>Usage without a col tag</title>
<programlisting role="php">
<![CDATA[
<?php
require_once 'HTML/Table.php';
$table =& new HTML_Table();
$colgroup = '';
$attributes = 'span="3" class="group1"';
$table->setColGroup($colgroup, $attributes);
?>
]]>
</programlisting>
</example>
<example>
<title>Usage with col tags</title>
<programlisting role="php">
<![CDATA[
<?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);
?>
]]>
</programlisting>
</example>
<example>
<title>Usage with multiple colgroups</title>
<programlisting role="php">
<![CDATA[
<?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);
?>
]]>
</programlisting>
</example>
</refsect1>
<refsect1 id="package.html.html-table.html-table.setcolgroup.note">
&title.note;
¬e.notstatic;
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->