Confirmation screen class.
More...
Public Member Functions |
| __construct () |
| Constructor.
|
| setFormAction ($a_form_action) |
| getFormAction () |
| setHeaderText ($a_headertext) |
| Set Set header text.
|
| getHeaderText () |
| Get Set header text.
|
| addButton ($a_txt, $a_cmd) |
| Set cancel button command and text.
|
| setCancel ($a_txt, $a_cmd) |
| Set cancel button command and text.
|
| setConfirm ($a_txt, $a_cmd) |
| Set confirmation button command and text.
|
| addItem ($a_post_var, $a_id, $a_text, $a_img="", $a_alt="") |
| Add row item.
|
| addHiddenItem ($a_post_var, $a_value) |
| Hidden items are currently not supported in a table gui.
|
| getHTML () |
| Get confirmation screen HTML.
|
Detailed Description
Confirmation screen class.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 34 of file class.ilConfirmationGUI.php.
Constructor & Destructor Documentation
ilConfirmationGUI::__construct |
( |
| ) |
|
Member Function Documentation
ilConfirmationGUI::addButton |
( |
|
$a_txt, |
|
|
|
$a_cmd |
|
) |
| |
|
final |
Set cancel button command and text.
- Parameters
-
string | cancel text |
string | cancel command |
Definition at line 85 of file class.ilConfirmationGUI.php.
{
$this->buttons[] = array(
"txt" => $a_txt, "cmd" => $a_cmd);
}
ilConfirmationGUI::addHiddenItem |
( |
|
$a_post_var, |
|
|
|
$a_value |
|
) |
| |
Hidden items are currently not supported in a table gui.
Problem: after clicking prev/next links the information of the hidden items is lost. Add hidden item.
- Parameters
-
string | name of post variable used for id (e.g. "id[]") |
mixed | value |
- Deprecated:
Definition at line 145 of file class.ilConfirmationGUI.php.
{
$this->hidden_item[] = array("var" => $a_post_var, "value" => $a_value);
}
ilConfirmationGUI::addItem |
( |
|
$a_post_var, |
|
|
|
$a_id, |
|
|
|
$a_text, |
|
|
|
$a_img = "" , |
|
|
|
$a_alt = "" |
|
) |
| |
Add row item.
- Parameters
-
string | name of post variable used for id (e.g. "id[]") |
mixed | id value |
string | item text |
string | item image path |
Definition at line 123 of file class.ilConfirmationGUI.php.
{
$this->item[] = array("var" => $a_post_var, "id" => $a_id,
"text" => $a_text, "img" => $a_img, "alt" => $a_alt);
if ($a_img != "")
{
$this->use_images = true;
}
}
ilConfirmationGUI::getFormAction |
( |
| ) |
|
|
final |
ilConfirmationGUI::getHeaderText |
( |
| ) |
|
ilConfirmationGUI::getHTML |
( |
| ) |
|
|
final |
Get confirmation screen HTML.
- Returns
- string HTML code.
Definition at line 155 of file class.ilConfirmationGUI.php.
References $hidden_item, $lng, getFormAction(), getHeaderText(), and ilUtil\sendQuestion().
{
include_once("./Services/Utilities/classes/class.ilConfirmationTableGUI.php");
$ctab->setData($this->item);
foreach ($this->buttons as $b)
{
$ctab->addCommandButton($b["cmd"], $b["txt"]);
}
$ctab->addCommandButton($this->confirm_cmd, $this->confirm_txt);
$ctab->addCommandButton($this->cancel_cmd, $this->cancel_txt);
{
$ctab->addHiddenInput($hidden_item["var"], $hidden_item["value"]);
}
return $ctab->getHTML();
}
ilConfirmationGUI::setCancel |
( |
|
$a_txt, |
|
|
|
$a_cmd |
|
) |
| |
|
final |
Set cancel button command and text.
- Parameters
-
string | cancel text |
string | cancel command |
Definition at line 97 of file class.ilConfirmationGUI.php.
{
$this->cancel_txt = $a_txt;
$this->cancel_cmd = $a_cmd;
}
ilConfirmationGUI::setConfirm |
( |
|
$a_txt, |
|
|
|
$a_cmd |
|
) |
| |
|
final |
Set confirmation button command and text.
- Parameters
-
string | confirmation button text |
string | confirmation button command |
Definition at line 109 of file class.ilConfirmationGUI.php.
{
$this->confirm_txt = $a_txt;
$this->confirm_cmd = $a_cmd;
}
ilConfirmationGUI::setFormAction |
( |
|
$a_form_action | ) |
|
|
final |
ilConfirmationGUI::setHeaderText |
( |
|
$a_headertext | ) |
|
Set Set header text.
- Parameters
-
string | $a_headertext | Set header text |
Definition at line 64 of file class.ilConfirmationGUI.php.
{
$this->headertext = $a_headertext;
}
Field Documentation
ilConfirmationGUI::$buttons = array() |
|
private |
ilConfirmationGUI::$hidden_item = array() |
|
private |
ilConfirmationGUI::$item = array() |
|
private |
ilConfirmationGUI::$use_images = false |
|
private |
The documentation for this class was generated from the following file: