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" 属性です。
Note
This function can not be called
statically.