Source for file ALineEdit.php

Documentation is available at ALineEdit.php

  1. <?php
  2. /**
  3.  * ALineEdit
  4.  *
  5.  * @package Alia
  6.  * @subpackage Widgets
  7.  * @author Jordan CM Wambaugh <jordan@wamabugh.org>
  8.  *
  9.  */
  10.  
  11.  
  12.  
  13. /**
  14.  * class ALineEdit
  15.  * 
  16.  * @package Alia
  17.  * @subpackage Widgets
  18.  * @author Jordan CM Wambaugh <jordan@wamabugh.org>
  19.  *
  20.  */
  21. class ALineEdit extends AHTMLElement 
  22. {
  23.  
  24.     function __construct($text=''){
  25.         parent::__construct($text);
  26.         $this->setTagName("input");
  27.         $this->setLayout(new AElementLayout($this) );
  28.         $this->addAttribute('type')->setAttribute('type','text');
  29.         $this->addAttribute('value');
  30.         $this->addAttribute('maxlength');
  31.         if($text){
  32.             $this->setAttribute('value',$text);
  33.         }
  34.     }
  35.     
  36.     function render(){
  37.         return parent::render();
  38.         
  39.     }
  40.  
  41. }
  42. ?>

Documentation generated on Fri, 11 Jul 2008 13:28:41 -0400 by phpDocumentor 1.4.2