Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TronsForm extends Form
- {
- /**
- * @return array
- */
- public function getAttributes() {
- $attrs = array(
- 'id' => $this->FormName(),
- 'action' => $this->FormAction(),
- 'method' => $this->FormMethod(),
- 'enctype' => $this->getEncType(),
- 'target' => $this->target,
- 'class' => $this->extraClass(),
- 'me-cry' => $this->FormName(),
- 'why-cry-smeagol' => $this->FormName(),
- 'why-cry-tron' => $this->FormName(),
- 'v-on:submit' => $this->FormName(),
- 'v-on' => $this->FormName(),
- 'p-on' => $this->FormName(),
- );
- if($this->validator && $this->validator->getErrors()) {
- if(!isset($attrs['class'])) $attrs['class'] = '';
- $attrs['class'] .= ' validationerror';
- }
- $attrs = array_merge($attrs, $this->attributes);
- return $attrs;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement