function __construct($where) { parent::__construct(1); $this->setColClass(1, ""); switch ($where) { case "left": $this->setTableStyle("float:left;"); break; case "right": $this->setTableStyle("float:right;"); break; } $this->addTableClass("sideTable" . ucfirst($where)); }