Renaming all the classes for the Printer to match the name of the file
[isso.git] / PrinterElement.php
index 438d709691ca2a4ef90bdfe04e5d361212782bc0..7ed95d6d405ba373104ccf2137828024a5259a16 100644 (file)
@@ -25,7 +25,7 @@
 * @package     ISSO
 */
 
-require_once(ISSO . '/PrinterElement.php');
+require_once(ISSO . '/PrinterAbstract.php');
 
 /**
 * Base Printer Element
@@ -39,7 +39,7 @@ require_once(ISSO . '/PrinterElement.php');
 * @package             ISSO
 *
 */
-class BSPrinterBaseElement extends BSPrinterElement
+class BSPrinterElement extends BSPrinterAbstract
 {
        /**
        * The name of the element
@@ -116,7 +116,7 @@ class BSPrinterBaseElement extends BSPrinterElement
        {
                if (!in_array($this->type, array('checkbox', 'radio', 'option')))
                {
-                       throw new Exception('BSPrinterBaseElement::setActive() can only be used on elements of type checkbox, radio, or option');
+                       throw new Exception('BSPrinterElement::setActive() can only be used on elements of type checkbox, radio, or option');
                }
                $this->active = $active;
        }
@@ -225,7 +225,7 @@ class BSPrinterBaseElement extends BSPrinterElement
                        case 'textarea':
                                if (!isset($this->style['height']) || !isset($this->style['width']))
                                {
-                                       throw new Exception('BSPrinterBaseElement of type "textarea" require a "height" and "width" style attribute');
+                                       throw new Exception('BSPrinterElement of type "textarea" require a "height" and "width" style attribute');
                                }
                                
                                return '<textarea' . $name . ' cols="50" rows="2"' . $this->_prepareStyle() . $accesskey . '>' . $this->value . '</textarea>';