cvs: pear /HTML_Table_Matrix Matrix.php package.xml /HTML_Table_Matrix/Matrix Filler.php

From: Date: Mon, 07 Feb 2005 18:05:56 +0000
Subject: cvs: pear /HTML_Table_Matrix Matrix.php package.xml /HTML_Table_Matrix/Matrix Filler.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29190@lists.php.net to get a copy of this message
ieure Mon Feb 7 13:05:56 2005 EDT Modified files: /pear/HTML_Table_Matrix Matrix.php package.xml /pear/HTML_Table_Matrix/Matrix Filler.php Log: - Fix #3381, #3382. - Bump for release. http://cvs.php.net/diff.php/pear/HTML_Table_Matrix/Matrix.php?r1=1.1.1.1&r2=1.2&ty=u Index: pear/HTML_Table_Matrix/Matrix.php diff -u pear/HTML_Table_Matrix/Matrix.php:1.1.1.1 pear/HTML_Table_Matrix/Matrix.php:1.2 --- pear/HTML_Table_Matrix/Matrix.php:1.1.1.1 Mon Apr 19 19:47:14 2004 +++ pear/HTML_Table_Matrix/Matrix.php Mon Feb 7 13:05:54 2005 @@ -16,7 +16,7 @@ // | Authors: Ian Eure <ieure@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Matrix.php,v 1.1.1.1 2004/04/19 23:47:14 ieure Exp $ +// $Id: Matrix.php,v 1.2 2005/02/07 18:05:54 ieure Exp $ require_once 'PEAR.php'; require_once 'HTML/Table.php'; @@ -236,7 +236,7 @@ $this->_calculateSize(); reset($this->_data); $size = $this->_getTableSize(); - for($i = 0; $i < $size; $i++) { + for($i = $index = 0; $i < $size; $i++) { list($row, $col) = $this->_filler->next($index); $this->_fillCell($row, $col); $index++; http://cvs.php.net/diff.php/pear/HTML_Table_Matrix/package.xml?r1=1.6&r2=1.7&ty=u Index: pear/HTML_Table_Matrix/package.xml diff -u pear/HTML_Table_Matrix/package.xml:1.6 pear/HTML_Table_Matrix/package.xml:1.7 --- pear/HTML_Table_Matrix/package.xml:1.6 Sat Aug 7 21:34:29 2004 +++ pear/HTML_Table_Matrix/package.xml Mon Feb 7 13:05:54 2005 @@ -27,13 +27,13 @@ </maintainers> <release> - <version>1.0.6</version> - <date>2004-08-07</date> + <version>1.0.7</version> + <date>2005-02-07</date> <state>stable</state> <license>PHP License v3.0</license> <notes><![CDATA[ - * Remove call-time pass-by-reference. - * Install examples in the right directory. + - Fix #3381, notice in Matrix::fillTable(). + - Fix #3382, warning in Filler::factory(). ]]></notes> <filelist> <dir name="/" baseinstalldir="HTML/Table"> @@ -54,6 +54,31 @@ <changelog> <release> + <version>1.0.6</version> + <date>2004-08-07</date> + <state>stable</state> + <license>PHP License v3.0</license> + <notes><![CDATA[ + * Remove call-time pass-by-reference. + * Install examples in the right directory. + ]]></notes> + <filelist> + <dir name="/" baseinstalldir="HTML/Table"> + <file role="php">Matrix.php</file> + <dir name="Matrix"> + <file role="php">Filler.php</file> + <dir name="Filler"> + <file role="php">LRTB.php</file> + <file role="php">RLTB.php</file> + </dir> + </dir> + </dir> + <dir name="examples" baseinstalldir="doc/HTML_Table_Matrix"> + <file role="php">HTML_Table_Matrix_example.php</file> + </dir> + </filelist> + </release> + <release> <version>1.0.5</version> <date>2004-06-15</date> <state>stable</state> http://cvs.php.net/diff.php/pear/HTML_Table_Matrix/Matrix/Filler.php?r1=1.3&r2=1.4&ty=u Index: pear/HTML_Table_Matrix/Matrix/Filler.php diff -u pear/HTML_Table_Matrix/Matrix/Filler.php:1.3 pear/HTML_Table_Matrix/Matrix/Filler.php:1.4 --- pear/HTML_Table_Matrix/Matrix/Filler.php:1.3 Sat Aug 7 21:34:15 2004 +++ pear/HTML_Table_Matrix/Matrix/Filler.php Mon Feb 7 13:05:56 2005 @@ -16,7 +16,7 @@ // | Authors: Ian Eure <ieure@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Filler.php,v 1.3 2004/08/08 01:34:15 ieure Exp $ +// $Id: Filler.php,v 1.4 2005/02/07 18:05:56 ieure Exp $ /** * Base class common to all Fillers @@ -73,7 +73,7 @@ * @param array $options Filler options * @return mixed Filler instance on success, PEAR_Error otherwise */ - function &factory($type, &$matrix, $options = false) + function &factory($type, &$matrix, $options = array()) { $class = 'HTML_Table_Matrix_Filler_'.$type; $file = str_replace('_', '/', $class).'.php'; @@ -91,7 +91,7 @@ * @param array $options Options to set * @return void */ - function setOptions($options = false) { + function setOptions($options = array()) { $opts = array_merge($this->_defaultOptions, $options); $this->options = $opts; }

« previous php.pear.cvs (#29190) next »