public function generateInner() { $num_rows = $this->getRowCount(); $num_cols = $this->getColumnCount(); if ($num_rows && $num_cols) { $table = new MSimpleTable($obj->name); $table->setAttribute('width', '100%'); $table->setCell(0, 0, $this->top, "align=\"center\" colspan={$num_cols}"); $table->setCell(1, 0, $this->left, "align=\"center\" valign=\"top\""); $table->setCell(1, 1, $this->center, "align=\"center\" valign=\"top\" width=\"100%\""); $table->setCell(1, 2, $this->right, "align=\"center\" valign=\"top\""); $table->setCell(2, 0, $this->bottom, "align=\"center\" colspan={$num_cols}"); $this->inner = $table; } }