Lines Matching refs:pos
43 $pos = 0;
61 $pos = $event->data->findElementByAttribute('name', 'u');
62 if ($pos === false) {
65 $event->data->replaceElement($pos, null);
66 $event->data->insertElement($pos, $elem);
73 $pos = $event->data->findElementByAttribute('name', 'p');
74 if ($pos === false) {
77 $event->data->replaceElement($pos, null);
78 $event->data->insertElement($pos, $elem);
86 $pos = $event->data->findElementByAttribute('name', 'r');
87 if ($pos === false) {
90 $event->data->replaceElement($pos, null);
91 $event->data->insertElement($pos, $elem);
99 $event->data->insertElement($pos + 1, $elem);
104 $pos = $event->data->findElementByType('button');
105 if ($pos === false) {
108 $event->data->replaceElement($pos, null);
109 $event->data->insertElement($pos, $elem);
112 $event->data->insertElement($pos - 1, $elem);