Exemplo n.º 1
0
 /**
  * Construtor.
  *
  * @param DecoratorAbstract $decorator
  * @throws IllegalArgumentException
  * */
 public function __construct(DecoratorAbstract $decorator = NULL)
 {
     $this->_type = 'html';
     $this->_document = DocumentAbstract::factory($this->_type);
     $this->_decorator = $decorator;
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 /**
  * Construtor
  * */
 public function __construct()
 {
     $this->_document = DocumentAbstract::factory(self::T_SAF_TYPE);
 }