Lines Matching refs:form

194         $form =& $event->data;
198 if(is_a($form, \dokuwiki\Form\Form::class)) { //Igor and later
200 $pos = $form->findPositionByAttribute('name', 'fullname');
201 $form->getElementAt($pos)->attr('disabled', 'disabled');
203 $start = $form->findPositionByAttribute('name', 'fullname') + 1;
205 while ($form->elementCount() > $start && $done < 11) {
206 $form->removeElement($start);
209 $pos = $form->elementCount();
223 $this->insertTextInput($form, $pos, $faction, $this->getLang('faction'));
226 $this->insertTextInput($form, $pos, $alliance, $this->getLang('alliance'));
229 $this->insertTextInput($form, $pos, $corp, $this->getLang('corporation'));
233 array_splice($form->_content, 3);
235 $form->getElementAt(3)['disabled'] = 'disabled';
237 $pos = count($form->_content);
249 $form->insertElement($pos, form_closefieldset());
251 …$form->insertElement($pos, form_makeTextField($faction, $faction, $this->getLang('faction'), '', '…
254 …$form->insertElement($pos, form_makeTextField($alliance, $alliance, $this->getLang('alliance'), ''…
257 …$form->insertElement($pos, form_makeTextField($corp, $corp, $this->getLang('corporation'), '', 'bl…
275 private function insertTextInput($form, $pos, $value, $name) { argument
276 $textInput = $form->addTextInput($value, $name, $pos);
283 $form->addHTML('<br>', $pos);
286 private function insertElement($form, $pos, $out) { argument
287 if(is_a($form, \dokuwiki\Form\Form::class)) { //Igor and later
288 $form->addHtml($out, $pos);
290 $form->insertElement($pos, $out);
308 $form =& $event->data;
312 if(is_a($form, \dokuwiki\Form\Form::class)) { //Igor and later
313 while ($form->elementCount() > 0) {
314 $form->removeElement(0);
316 $pos = $form->elementCount() - 3; //At the end
318 $form->_content = array();
324 if(is_a($form, \dokuwiki\Form\Form::class)) { //Igor and later
325 $pos = $form->elementCount(); //At the end
327 $pos = count($form->_content);
330 if(is_a($form, \dokuwiki\Form\Form::class)) { //Igor and later
331 $form->addFieldsetOpen($this->getLang('loginwith'), ++$pos);
332 $form->addHtml($html, ++$pos);
333 $form->addFieldsetClose();
335 …$form->insertElement(++$pos, form_openfieldset(array('_legend' => $this->getLang('loginwith'), 'cl…
336 $form->insertElement(++$pos, $html);
337 $form->insertElement(++$pos, form_closefieldset());