package proposal: HTML_Table_Matrix
| From: | Ian Eure | Date: | Tue, 10 Jun 2003 22:51:32 +0000 |
| Subject: | package proposal: HTML_Table_Matrix | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-17286@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello.
I'd like to contribute a package I have created, HTML_Table_Matrix. This
package takes a data-set (in an array) and fits it into a HTML table. E.g.,
you can pass in an array with 15 items, and request that H_T_M produce a
table 5 columns wide by 3 rows deep, filled with the data from the array
left-to-right.
Features:
* Can semi-auto fill table. Developer specifies number of rows or columns, and
the table grows to fit the amount of data passed in.
* Can fill horizontally from left-to-right or vertically from top-to-bottom.
* Table size may be constrained, e.g. if you feed it 20 items, then request
the table to be 3x3, only the first nine items will be displayed.
* Filling may start at a row/column offset, to allow for other data (e.g. a
header) to be present in the table.
* Calling toHtml() method automatically fills the table with data and returns
it.
* Fully documented with PHPDoc.
HTML_Table_Matrix inherits from HTML_Table. License is PHP 2.02. The code
(with an example) is available for review at
http://people.debian.org/~ieure/HTML_Table_Matrix-0.9.tar.bz2
- --
"It is a painful thing to be alone. But more painful still, to be... polite."
- Throbbing Gristle, "A Debris Of A Murder"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+5mD5HJcvLJR6wWoRAmeTAKDXWj+1JNEW4294BBXkGX8V5pfPrQCfUjem
BkEcNmNtSiB8Z1po9xgxK3k=
=js+d
-----END PGP SIGNATURE-----