| @@ 52-60 (lines=9) @@ | ||
| 49 | return $this->events; |
|
| 50 | } |
|
| 51 | ||
| 52 | public function setParam($key, $value) |
|
| 53 | { |
|
| 54 | parent::setParam($key, $value); |
|
| 55 | ||
| 56 | $events = $this->getEventManager(); |
|
| 57 | $events->trigger(FormEvent::EVENT_SET_PARAM, $this, [ 'param_name' => $key, 'param_value' => $value ]); |
|
| 58 | ||
| 59 | return $this; |
|
| 60 | } |
|
| 61 | ||
| 62 | ||
| 63 | public function isValid() |
|
| @@ 63-71 (lines=9) @@ | ||
| 60 | } |
|
| 61 | ||
| 62 | ||
| 63 | public function isValid() |
|
| 64 | { |
|
| 65 | $valid = parent::isValid(); |
|
| 66 | ||
| 67 | $events = $this->getEventManager(); |
|
| 68 | $events->trigger(FormEvent::EVENT_VALIDATE, $this, [ 'isValid' => $valid ]); |
|
| 69 | ||
| 70 | return $valid; |
|
| 71 | } |
|
| 72 | ||
| 73 | ||
| 74 | } |
|