cvs: pear /HTML_QuickForm2/QuickForm2 AbstractElement.php Factory.php

From: Date: Fri, 20 Oct 2006 09:08:33 +0000
Subject: cvs: pear /HTML_QuickForm2/QuickForm2 AbstractElement.php Factory.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42674@lists.php.net to get a copy of this message
avb Fri Oct 20 09:08:33 2006 UTC Modified files: /pear/HTML_QuickForm2/QuickForm2 AbstractElement.php Factory.php Log: Add select element to Factory update some PHPDoc comments http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm2/QuickForm2/AbstractElement.php?r1=1.5&r2=1.6&diff_format=u Index: pear/HTML_QuickForm2/QuickForm2/AbstractElement.php diff -u pear/HTML_QuickForm2/QuickForm2/AbstractElement.php:1.5 pear/HTML_QuickForm2/QuickForm2/AbstractElement.php:1.6 --- pear/HTML_QuickForm2/QuickForm2/AbstractElement.php:1.5 Mon Oct 16 14:32:38 2006 +++ pear/HTML_QuickForm2/QuickForm2/AbstractElement.php Fri Oct 20 09:08:32 2006 @@ -39,7 +39,7 @@ * @author Alexey Borzov <avb@php.net> * @author Bertrand Mansion <golgote@mamasam.com> * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: AbstractElement.php,v 1.5 2006/10/16 14:32:38 avb Exp $ + * @version CVS: $Id: AbstractElement.php,v 1.6 2006/10/20 09:08:32 avb Exp $ * @link http://pear.php.net/package/HTML_QuickForm2 */ @@ -57,7 +57,8 @@ * Abstract base class for all QuickForm2 Elements and Containers * * This class is mostly here to define the interface that should be implemented - * by the subclasses. + * by the subclasses. It also contains static methods handling generation + * of unique ids for elements which do not have ids explicitly set. * * @category HTML * @package HTML_QuickForm2 http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm2/QuickForm2/Factory.php?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_QuickForm2/QuickForm2/Factory.php diff -u pear/HTML_QuickForm2/QuickForm2/Factory.php:1.2 pear/HTML_QuickForm2/QuickForm2/Factory.php:1.3 --- pear/HTML_QuickForm2/QuickForm2/Factory.php:1.2 Fri Sep 8 14:02:45 2006 +++ pear/HTML_QuickForm2/QuickForm2/Factory.php Fri Oct 20 09:08:32 2006 @@ -39,7 +39,7 @@ * @author Alexey Borzov <avb@php.net> * @author Bertrand Mansion <golgote@mamasam.com> * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Factory.php,v 1.2 2006/09/08 14:02:45 avb Exp $ + * @version CVS: $Id: Factory.php,v 1.3 2006/10/20 09:08:32 avb Exp $ * @link http://pear.php.net/package/HTML_QuickForm2 */ @@ -52,8 +52,7 @@ * Static factory class * * The class handles instantiation of Element and Rule objects as well as - * registering of new Element and Rule classes. It also handles generation - * of unique ids for elements which do not have ids explicitly set. + * registering of new Element and Rule classes. * * @category HTML * @package HTML_QuickForm2 @@ -68,6 +67,8 @@ * @var array */ protected static $elementTypes = array( + 'select' => array('HTML_QuickForm2_Element_Select', + 'HTML/QuickForm2/Element/Select.php') ); @@ -121,7 +122,7 @@ * @param mixed Options for the element (passed to element's constructor) * @param mixed Element label (passed to element's constructor) * @param mixed Element attributes (passed to element's constructor) - * @return HTML_QuickForm2_Element A created element + * @return HTML_QuickForm2_AbstractElement A created element * @throws HTML_QuickForm2_InvalidArgumentException If type name is unknown * @throws HTML_QuickForm2_NotFoundException If class for the element can * not be found and/or loaded from file

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