Beispiel #1
0
 public function setFormName($name)
 {
     parent::setFormName($name);
     $this->setSubFormName($this->passwordField, 'password');
     $this->setSubFormName($this->confirmationField, 'confirmation');
     return $this;
 }
Beispiel #2
0
 public function wrapHTML($componentContent)
 {
     $this->html = $wrapper = parent::wrapHTML($componentContent);
     if (($snippet = $this->getJavaScript($wrapper)) instanceof \Psc\JS\Snippet) {
         $snippet = clone $snippet;
         $snippet->setVar(Snippet::VAR_NAME_SELF, \Psc\JS\jQuery::getClassSelector($wrapper));
         $wrapper->getContent()->js = $snippet->html();
     }
     return $wrapper;
 }