/**
  * {@inheritDoc}
  */
 public function getChanges()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getChanges', array());
     return parent::getChanges();
 }
Beispiel #2
0
 /**
  * Add actions
  *
  * @param        $key
  * @param Action $action
  *
  * @return Form
  */
 public function addAction($key, Action $action)
 {
     if ($changes = $action->getChanges()) {
         $this->isChanged('actions', array($key, $changes));
     }
     $this->actions[$key] = $action;
     return $this;
 }