public function getButton($buttonName)
    {
        if (isset($this->buttons[$buttonName])) {
            return $this->buttons[$buttonName];
        }
        else {
            throw new AjaxModalsException("Button $buttonName does not exists.");
        }
    }
public function getButton($buttonName)
    {
        if (isset($this->buttons[$buttonName])) {
            return $this->buttons[$buttonName];
        }
        else {
            throw new AjaxModalsException("Button $buttonName does not exists.");
        }
    }
public function getButton ( $ buttonName ) { if ( isset ( $ this -> buttons [ $ buttonName ] ) ) { return $ this -> buttons [ $ buttonName ] ; } else { throw new AjaxModalsException ( "Button $buttonName does not exists." ) ; } }
Returns a determined button to be able to configure it

@param string $buttonName

@return AjaxViewButton
Returns a determined button to be able to configure it