Exemplo n.º 1
0
 private function _script()
 {
     if (!$this->_s->isEmail()) {
         throw new Exception('Email invalid.' . "\n");
     }
     $js = new Element('script');
     $js->attr('type', 'text/javascript');
     $script = sprintf($this->_s->getSprintfScript(), $this->_s->getUser(), $this->_s->getDomain(), $this->_s->getUserAtDomain());
     $js->add($script);
     $this->_js = $js;
     return $this;
 }
Exemplo n.º 2
0
 public function __construct($href, $name)
 {
     parent::__construct('a');
     parent::attr('href', $href);
     parent::add($name);
 }