Page::getButtonName()

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

概要

require_once 'HTML/QuickForm/Page.php';

string HTML_QuickForm_Page::getButtonName (string $actionName)

説明

特殊アクションを起動するsubmitボタン (もしくは<input type="image">コントロール) の名前を返します。 これは下記を意味します。 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.

パラメータ

string $actionName

アクションの名前です。

返り値

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

例外・エラー

throws 投げられる例外はありません。

注意

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