public function generateInner() { $id = $this->getId(); $mv = new MVContainer(); for ($i = 0; $i <= $this->numRows; $i++) { $t = array(); $t[0] = new MDiv('', new MSpan('', $i + 1 . ": ", 'mCaption')); $t[0]->width = '25px'; for ($j = 0; $j <= $this->numCols; $j++) { $text = new MTextField("{$id}[{$i}][{$j}]", $this->aValue[$i][$j], '', $colWidth); if ($this->aMask[$i][$j] != '') { $text->addMask($this->aMask[$i][$j]); } $text->setAttribute('rowNumber', "{$i}"); $t[$j + 1] = $text; } $mh = new MHContainer('', $t); $mv->addControl($mh); } $this->inner = $mv; }