Page::getButtonName()

Page::getButtonName() -- Returns a name for a submit button that will invoke a specific action.

Synopsis

Описание

Returns a name for a submit button (or an <input type="image"> control) that will invoke a specific action. This means the following: if you do

$this->addElement('submit', $this->getButtonName('foo'), 'Foo');
inside the buildForm() method and the user later uses this button to submit the form, then the 'foo' handler (added via addAction() will be called.

Параметр

string $actionName

Name of the action

Возвращаемое значение

returns "name" attribute for a submit button

Throws

throws no exceptions thrown

Заметка

Эта функция не должна вызываться статически.

    Поддержать сайт на родительском проекте КГБ