Axiom (v1.2.0)

A lightweight PHP framework
H:/Workspace/php-axiom/www/php-axiom/libraries/axiom/axTableDataHelper.class.php
Go to the documentation of this file.
00001 <?php
00016 class axTableDataHelper extends axBaseHelper {
00017     
00023     public function __construct ($value = null, $type = 'data') {
00024         switch (strtolower($type)) {
00025             case 'th':
00026             case 'head':
00027                 parent::__construct('th', array(), $value);
00028                 break;
00029             
00030             case 'td':
00031             case 'data':
00032             default:
00033                 parent::__construct('td', array(), $value);
00034                 break;
00035         }
00036     }
00037     
00044     public static function export ($value = null, $type = 'data') {
00045         return new self ($value, $type);
00046     }
00047 }
 All Data Structures Files Functions Variables