*/
private $colspan = 0;
+ // ###################################################################
+ /**
+ * Creates a table element; takes a variable number of arguments which
+ * are added as children in the order passed
+ *
+ * @param BSPrinterTableElement... Variable number (or no) children
+ */
+ public function __construct()
+ {
+ $childs = func_get_args();
+ if (is_array($childs))
+ {
+ $this->children = $childs;
+ }
+ }
+
// ###################################################################
/**
* Prints a simple row of text and text