/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/form/form_elements/misc.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/form/form_elements/misc.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jonen, Sat Sep 20 00:20:15 2003 UTC revision 1.4 by jonen, Thu Aug 11 14:09:59 2005 UTC
# Line 4  Line 4 
4   *   *
5   * $Id$   * $Id$
6   *   *
7   * @author Walter A. Boring IV <waboring@buildabetterweb.com>   * @author Walter A. Boring IV <waboring@newsblob.com>
8   * @author Suren Markossian <suren@bcsweb.com>   * @author Suren Markossian <suren@bcsweb.com>
9   * @package phpHtmlLib   * @package phpHtmlLib
10   * @subpackage FormProcessing   * @subpackage FormProcessing
# Line 18  Line 18 
18   * input field of type="hidden". It has no validation method.   * input field of type="hidden". It has no validation method.
19   *   *
20   *   *
21   * @author Walter A. Boring IV <waboring@buildabetterweb.com>   * @author Walter A. Boring IV <waboring@newsblob.com>
22   * @author Suren Markossian <suren@bcsweb.com>   * @author Suren Markossian <suren@bcsweb.com>
23   * @package phpHtmlLib   * @package phpHtmlLib
24   * @subpackage FormProcessing   * @subpackage FormProcessing
# Line 35  class FEHidden extends FormElement { Line 35  class FEHidden extends FormElement {
35      }      }
36    
37      function get_element() {      function get_element() {
38          return form_hidden($this->get_element_name(),                  $attributes = $this->_build_element_attributes();
39                             $this->get_value() );          $attributes["type"] = "hidden";
40    
41            if (($value = $this->get_value()) != NULL)
42                $attributes["value"] = $value;
43    
44            return new INPUTtag($attributes);
45    
46            //return form_hidden($this->get_element_name(),
47            //                   $this->get_value() );
48        }
49    
50        /**
51         * This method returns the hidden version of this
52         * element for a confirmation page.  
53         *
54         * NOTE: This is called by the FormProcessor only.  
55         * It shouldn't be called manually.
56         *
57         * @return INPUTtag of type hidden
58         */
59        function get_confirm_element() {
60            return $this->get_element();
61      }      }
62  }  }
63    
# Line 46  class FEHidden extends FormElement { Line 67  class FEHidden extends FormElement {
67   * a specialized error field and message.   * a specialized error field and message.
68   *   *
69   *   *
70   * @author Walter A. Boring IV <waboring@buildabetterweb.com>   * @author Walter A. Boring IV <waboring@newsblob.com>
71   * @author Suren Markossian <suren@bcsweb.com>   * @author Suren Markossian <suren@bcsweb.com>
72   * @package phpHtmlLib   * @package phpHtmlLib
73   * @subpackage FormProcessing   * @subpackage FormProcessing

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed