if ($el!=null) {
$el->setFormName($this->name);
if (isset($arguments["id"])) $el->setId($arguments["id"]);
- if (isset($GLOBALS["I18N"])) $el->setLocalization($GLOBALS["I18N"]);
+ if (isset($GLOBALS["I18N"])) $el->localize($GLOBALS["I18N"]);
if (isset($arguments["enable"])) $el->setEnabled($arguments["enable"]);
if (isset($arguments["style"])) $el->setStyle($arguments["style"]);
function addInputElement(&$el) {
if ($el && is_object($el)) {
- if (isset($GLOBALS["I18N"])) $el->setLocalization($GLOBALS["I18N"]);
+ if (isset($GLOBALS["I18N"])) $el->localize($GLOBALS["I18N"]);
$el->setFormName($this->name);
- $this->elements[$el->getName()] = &$el;
+ $this->elements[$el->name] = &$el;
}
}
$html = "\n";
foreach ($this->elements as $elname=>$el) {
if (strtolower(get_class($this->elements[$elname]))=="hidden") {
- $html .= $this->elements[$elname]->toStringControl()."\n";
+ $html .= $this->elements[$elname]->getHtml()."\n";
}
}
$html .= "</form>";