/**
  * Construtor.
  *
  * @param DecoratorAbstract $decorator
  * @throws IllegalArgumentException
  * */
 public function __construct(DecoratorAbstract $decorator = NULL)
 {
     $this->_type = 'html';
     $this->_document = DocumentAbstract::factory($this->_type);
     $this->_decorator = $decorator;
 }
Exemple #2
0
 /**
  * @param string $type
  * @param DecoratorAbstract $decorator
  * @throws IllegalArgumentException
  * */
 public function __construct($output = 'html', DecoratorAbstract $decorator = NULL)
 {
     $this->_document = DocumentAbstract::factory($output);
     $this->_decorator = $decorator;
 }
Exemple #3
0
 /**
  * Construtor
  * */
 public function __construct()
 {
     $this->_document = DocumentAbstract::factory(self::T_SAF_TYPE);
 }