Page::buildForm() (Previous) (Next) Page::handle()

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Page::getButtonName()

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

Opis

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


<?php
$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.

Parametr

string $actionName

Name of the action

Zwracana wartość

returns "name" attribute for a submit button

Wyjątki

throws no exceptions thrown

Uwagi

Ta funkcja nie może być wywołana statycznie.

Page::buildForm() (Previous) (Next) Page::handle()

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.