cvs: pear /HTML_QuickForm_advmultiselect advmultiselect.php

From: Date: Mon, 15 Aug 2005 22:19:14 +0000
Subject: cvs: pear /HTML_QuickForm_advmultiselect advmultiselect.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-34000@lists.php.net to get a copy of this message
farell Mon Aug 15 18:19:14 2005 EDT Modified files: /pear/HTML_QuickForm_advmultiselect advmultiselect.php Log: - renamed sort argument of class constructor (there is only one option possible, plurial means nothing) - added missing throws phpdoc tag for setButtonAttributes method http://cvs.php.net/diff.php/pear/HTML_QuickForm_advmultiselect/advmultiselect.php?r1=1.5&r2=1.6&ty=u Index: pear/HTML_QuickForm_advmultiselect/advmultiselect.php diff -u pear/HTML_QuickForm_advmultiselect/advmultiselect.php:1.5 pear/HTML_QuickForm_advmultiselect/advmultiselect.php:1.6 --- pear/HTML_QuickForm_advmultiselect/advmultiselect.php:1.5 Fri Aug 5 10:02:43 2005 +++ pear/HTML_QuickForm_advmultiselect/advmultiselect.php Mon Aug 15 18:19:14 2005 @@ -19,7 +19,7 @@ * @author Laurent Laville <pear@laurent-laville.org> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 -* @version CVS: $Id: advmultiselect.php,v 1.5 2005/08/05 14:02:43 farell Exp $ +* @version CVS: $Id: advmultiselect.php,v 1.6 2005/08/15 22:19:14 farell Exp $ * @link http://pear.php.net/package/HTML_QuickForm_advmultiselect */ @@ -232,7 +232,7 @@ * @param mixed $elementLabel Label(s) for the select boxes * @param mixed $options Data to be used to populate options * @param mixed $attributes Either a typical HTML attribute string or an associative array - * @param integer $sortOptions Either SORT_ASC for auto ascending arrange, + * @param integer $sort Either SORT_ASC for auto ascending arrange, * SORT_DESC for auto descending arrange, or * NULL for no sort (append at end: default) * @@ -242,7 +242,7 @@ */ function HTML_QuickForm_advmultiselect($elementName = null, $elementLabel = null, $options = null, $attributes = null, - $sortOptions = null) + $sort = null) { $this->HTML_QuickForm_select($elementName, $elementLabel, $options, $attributes); @@ -279,8 +279,8 @@ $this->setJsElement(); // set select boxes sort order (none by default) - if (isset($sortOptions)) { - $this->_sort = $sortOptions; + if (isset($sort)) { + $this->_sort = $sort; } else { $this->_sort = false; } @@ -316,6 +316,9 @@ * @param string $button Button identifier, either 'add', 'remove', 'moveup' or 'movedown' * @param mixed $attributes (optional) Either a typical HTML attribute string * or an associative array + * @throws PEAR_Error $button argument + * is not a string + * or not in range (add, remove, moveup, movedown) * @access public * @since 0.4.0 */

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