function getName() { $prefix = ''; if (rexFormSection::isValid($this->getParent())) { $section =& $this->getSection(); $prefix = 's' . $section->getId() . '_'; } return $prefix . $this->getRawName(); }
function addSection(&$section) { if (!rexFormSection::isValid($section)) { rexForm::triggerError('Unexpected type "' . gettype($section) . '" for $section! Expecting type string or rexFormSection-Object!'); } $section->rexform =& $this; $this->section =& $section; $this->sections[] =& $section; }