* PrinterAbstract.php:
(BSPrinterAbstract::__toString): New method that calls paint()
- New: BSPrinterAbstract::setId() allows all elements to have an id attribute added in _prepareStyle()
- New: Added an ability to quick-set API information via an array with BSApi::setArray()
- New: Made many private members protected or public
+- Change: Added BSPrinterAbstract::__toString() that merely calls paint()
*/
public abstract function paint();
+ /**
+ * To-string method which invokes paint()
+ */
+ public function __toString()
+ {
+ return $this->paint();
+ }
+
/**
* Sets the CSS class to use. Use ":swap:" to alternate
*