\*=====================================================================*/
/**
-* Printer Element Abstract Class (PrinterAbstract.php)
-*
-* @package ISSO
-*/
+ * Printer Element Abstract Class (PrinterAbstract.php)
+ *
+ * @package ISSO
+ */
/**
-* Printer Element
-*
-* This abstract class is used for all printer elements and describes
-* the basic functionality of an element.
-*
-* @author Blue Static
-* @copyright Copyright (c)2005 - 2008, Blue Static
-* @package ISSO
-*
-*/
+ * Printer Element
+ *
+ * This abstract class is used for all printer elements and describes
+ * the basic functionality of an element.
+ *
+ * @author Blue Static
+ * @copyright Copyright (c)2005 - 2008, Blue Static
+ * @package ISSO
+ *
+ */
abstract class BSPrinterAbstract
{
/**
- * Style information
- * @var array
- */
+ * Style information
+ * @var array
+ */
protected $style = array();
/**
- * The CSS class to use
- * @var string
- */
+ * The CSS class to use
+ * @var string
+ */
protected $cssClass = ':swap:';
/**
public abstract static function make();
/**
- * Tells the element to paint itself (and any children)
- */
+ * Tells the element to paint itself (and any children)
+ */
public abstract function paint();
- // ###################################################################
/**
- * Sets the CSS class to use. Use ":swap:" to alternate
- *
- * @param string CSS class
- *
- * @return fluent interface
- */
+ * Sets the CSS class to use. Use ":swap:" to alternate
+ *
+ * @param string CSS class
+ *
+ * @return fluent interface
+ */
public function setCssClass($class)
{
$this->cssClass = $class;
return $this;
}
- // ###################################################################
/**
- * Sets the style information
- *
- * @param array Style attributes
- *
- * @return fluent interface
- */
+ * Sets the style information
+ *
+ * @param array Style attributes
+ *
+ * @return fluent interface
+ */
public function setStyle(Array $attributes)
{
$this->style = $attributes;
return $this;
}
- // ###################################################################
/**
- * Returns a string of CSS style attributes
- *
- * @return string CSS attributes
- */
+ * Returns a string of CSS style attributes
+ *
+ * @return string CSS attributes
+ */
protected function _prepareStyle()
{
if (empty($this->style) && empty($this->cssClass))