Beispiel #1
0
 public function __toString()
 {
     try {
         return $this->_document->__toString();
     } catch (\Exception $e) {
         return $e->getMessage();
     }
 }
Beispiel #2
0
 /**
  * Procura recursivamente todos os elementos que possuem o atributo name informado
  * @param string $class
  * @return ElementAbstract[]
  */
 public function getElementsByName($name)
 {
     return $this->_document->getElementsByName($name);
 }
 /**
  * Construtor.
  *
  * @param DecoratorAbstract $decorator
  * @throws IllegalArgumentException
  * */
 public function __construct(DecoratorAbstract $decorator = NULL)
 {
     $this->_type = 'html';
     $this->_document = DocumentAbstract::factory($this->_type);
     $this->_decorator = $decorator;
 }
Beispiel #4
0
 /**
  * @override
  * */
 public function render()
 {
     $content = self::T_DOCTYPE;
     $content .= parent::render();
     return $content;
 }