1<?php 2 3class StrategyTableLayoutFixed { 4 function StrategyTableLayoutFixed() { 5 } 6 7 function apply($table, &$context) { 8 $width = $table->get_width(); 9 $widths = array(); 10 for ($i = 0, $size = $table->cols_count(); $i < $size; $i++) { 11 $cwc =& $table->get_cwc($i); 12 $widths[] = $cwc->apply(0, $table->parent->get_width()); 13 }; 14 return $widths; 15 } 16} 17 18?>