Lines Matching defs:legacy
18 * Creates a new modern form from an old legacy Doku_Form
97 throw new \UnexpectedValueException('Unsupported legacy field ' . $ctl['elem']);
99 throw new \UnexpectedValueException('Unknown legacy field ' . $ctl['elem']);
110 * @param array $legacy
113 protected function parseLegacyAttr($legacy)
118 foreach ($legacy as $key => $val) {
134 * Translates our types to the legacy types
155 * Creates an old legacy form from this modern form's data
163 $legacy = new \Doku_Form($this->attrs());
164 $legacy->_hidden = $this->hidden;
167 $legacy->_content[] = $element->toHTML();
176 $legacy->_content[] = $data;
180 return $legacy;