Source for file textarea.php

Documentation is available at textarea.php

  1. <?php
  2. /**
  3. * a textarea widget
  4. *
  5. @author    Stuart Prescott
  6. @copyright  Copyright Stuart Prescott
  7. @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  8. @version    $Id$
  9. @package    Bumblebee
  10. @subpackage FormsLibrary
  11. */
  12.  
  13. /** Load ancillary functions */
  14. require_once 'inc/typeinfo.php';
  15.  
  16. /** parent object */
  17. require_once 'field.php';
  18.  
  19. /**
  20. * a textarea widget
  21. *
  22. @package    Bumblebee
  23. @subpackage FormsLibrary
  24. */
  25. class TextArea extends TextField {
  26.  
  27.   function TextArea($name$longname=''$description=''{
  28.     parent::TextField($name$longname$description);
  29.   }
  30.  
  31.   function selectable({
  32.     $t  '<textarea name="'.$this->namebase.$this->name.'" ';
  33.     $t .= 'title="'.$this->description.'" ';
  34.     $t .= (isset($this->attr['rows']'rows="'.$this->attr['rows'].'" ' '');
  35.     $t .= (isset($this->attr['cols']'cols="'.$this->attr['cols'].'" ' '');
  36.     $t .= '>';
  37.     $t .= xssqw($this->getValue());
  38.     $t .= '</textarea>';
  39.     return $t;
  40.   }
  41.  
  42. // class TextArea
  43.  
  44.  
  45. ?>

Documentation generated on Tue, 06 Mar 2007 10:02:00 +0000 by phpDocumentor 1.3.0