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

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Page::getButtonName()

Page::getButtonName() – 特定のアクションを起動する submit ボタンの名前を返す

Synopsis

require_once 'HTML/QuickForm/Page.php';

string HTML_QuickForm_Page::getButtonName ( string $actionName )

Description

特定のアクションを起動する submit ボタン (もしくは <input type="image"> コントロール) の名前を返します。これは以下のようなことを意味します。 buildForm() メソッド内で

<?php
$this
->addElement('submit'$this->getButtonName('foo'), 'Foo');
?>
のように使用し、このボタンを用いてフォームを送信した際には 'foo' ハンドラ ( addAction() で追加されたもの) がコールされるということです。

Parameter

string $actionName

アクションの名前です。

Return value

returns submit ボタンの "name" 属性です。

Throws

例外はスローされません。

Note

This function can not be called statically.

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

Download Documentation Last updated: Sun, 21 Jun 2009
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.