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

View this page in Last updated: Sun, 17 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Page::getButtonName()

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

説明

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


<?php
$this->addElement('submit'$this->getButtonName('foo'), 'Foo');
?>

のように使用し、このボタンを用いてフォームを送信した際には 'foo' ハンドラ ( addAction() で追加されたもの) がコールされるということです。

パラメータ

string $actionName

アクションの名前です。

返り値

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

例外・エラー

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

注意

この関数は、スタティックにコールする ことはできません。

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

Download Documentation Last updated: Sun, 17 Aug 2008
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.