Source for file ATableCell.php

Documentation is available at ATableCell.php

  1. <?php
  2. /**
  3.  * ATableCell.php
  4.  * The file for ATableCell class.
  5.  * 
  6.  * @package Alia
  7.  * @subpackage Widgets
  8.  * @author Jordan CM Wambaugh <jordan@wambaugh.org>
  9.  */
  10.  
  11. /**
  12.  * Include requirement
  13.  */
  14. require_once 'AHTMLElement.php';
  15.  
  16. /**
  17.  * ATableCell class - a widget representing a single cell in a table.
  18.  * This is a widget for the <TD> html element.
  19.  * @package Alia
  20.  * @subpackage Widgets
  21.  * @author Jordan CM Wambaugh <jordan@wambaugh.org>
  22.  *
  23.  */
  24. class ATableCell extends AHTMLElement {
  25.     private $__text;
  26.     
  27.     public function __construct($text ''){
  28.         parent::__construct();
  29.         echo "atablecell";
  30.         $this->addAttribute("colspan");
  31.         $this->addAttribute("rowspan");
  32.         $this->setTagName('TD');    
  33.         $this->__text=$text;
  34.         $this->buildLayout();    
  35.     
  36.     }
  37.  
  38.     public function setText$text {
  39.         $this->__text=$text;
  40.     // end of member function setText
  41.  
  42.     public function getText{
  43.         return $this->__text;
  44.     // end of member function getText
  45.  
  46.     
  47.     
  48.     /**
  49.      * Builds the layout for the table cell. Override this method if you don't want an AElementLayout.
  50.      *
  51.      */
  52.     public function buildLayout(){
  53.         $this->setLayout(new AElementLayout($this) );
  54.     }
  55.     
  56. }
  57.  
  58. ?>

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