Swat/SwatButton.php
public function process()
    {
        parent::process();

        $data = &$this->getForm()->getFormData();

        if (isset($data[$this->id])) {
            $this->clicked = true;
            $this->getForm()->button = $this;
        }
    }
public function process()
    {
        parent::process();

        $data = &$this->getForm()->getFormData();

        if (isset($data[$this->id])) {
            $this->clicked = true;
            $this->getForm()->button = $this;
        }
    }
public function process ( ) { parent :: process ( ) ; $ data = & $ this -> getForm ( ) -> getFormData ( ) ; if ( isset ( $ data [ $ this -> id ] ) ) { $ this -> clicked = true ; $ this -> getForm ( ) -> button = $ this ; } }
Does button processing

Sets whether this button has been clicked and also updates the form
this button belongs to with a reference to this button if this button
submitted the form.
Does button processing