public function __toString() { try { return $this->_document->__toString(); } catch (\Exception $e) { return $e->getMessage(); } }
/** * 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; }
/** * @override * */ public function render() { $content = self::T_DOCTYPE; $content .= parent::render(); return $content; }