Add swiftmailer external.
[xhtml-compiler.git] / XHTMLCompiler / Filter.php
blob6124fd14e61b5790d48afff48a5dae26bab8ad62
1 <?php
3 /**
4 * Represents a filter that performs processing on documents. Read-only.
5 */
6 abstract class XHTMLCompiler_Filter
9 /**
10 * Unique, human-readable identifier for the filter
12 protected $name;
14 /** Returns the name of the filter */
15 public function getName() {return $this->name;}
17 /**
18 * @param $name Overloading name. If you have to filters that have
19 * the same name, you can simple override the name of one of
20 * them to let them peacefully coexist.
22 public function __construct($name = false) {
23 if (empty($this->name)) throw new Exception('Filter '.__CLASS__ .' must have a name');
24 if ($name) $this->name = $name;