minor: make addition of items explicit in form

skala
Laurent Opprecht 14 years ago
parent 7095f75a19
commit a81e35158e
  1. 30
      main/inc/lib/formvalidator/FormValidator.class.php

@ -251,6 +251,36 @@ EOT;
}
}
function add_hidden($name, $value)
{
$this->addElement('hidden', $name, $value);
}
function add_textarea($name, $label, $attributes = array())
{
$this->addElement('textarea', $name, $label, $attributes);
}
function add_button($name, $label, $attributes = array())
{
$this->addElement('button', $name, $label, $attributes);
}
function add_checkbox($name, $label, $trailer = '', $attributes = array())
{
$this->addElement('checkbox', $name, $label, $trailer, $attributes);
}
function add_select($name, $label, $options = '', $attributes = array())
{
$this->addElement('select', $name, $label, $options, $attributes);
}
function add_label($name, $text)
{
$this->addElement('label', $name, $text);
}
function add_header($text)
{
$this->addElement('header', $text);

Loading…
Cancel
Save