HTML_QuickForm::getRegisteredTypes() (Previous) (Next) HTML_QuickForm::isError()

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTML_QuickForm::insertElementBefore()

HTML_QuickForm::insertElementBefore() -- Inserts a new element right before the other element

Описание

Inserts a new element right before the other element.

It is not possible to check whether the $element is already added to the form, therefore if you want to move the existing form element to a new position, you'll have to use removeElement():


<?php
$form->insertElementBefore($form->removeElement('foo', false), 'bar');
?>

Параметр

object &$element

Element to insert (instance of HTML_QuickForm_element)

string $nameAfter

Name of the element before which the new one is inserted

Возвращаемое значение

return reference to inserted element.

Заметка

since 3.2.4

Эта функция не должна вызываться статически.

HTML_QuickForm::getRegisteredTypes() (Previous) (Next) HTML_QuickForm::isError()

Download Documentation Last updated: Mon, 02 Jul 2007
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.