Lines Matching defs:elements
22 * @var Element[] the elements of the form
24 protected $elements = [];
81 * Returns the numbers of elements in the form
87 return count($this->elements);
103 return array_search($element, $this->elements, true);
116 if ($pos < 0) $pos = count($this->elements) + $pos;
118 if ($pos >= count($this->elements)) $pos = count($this->elements) - 1;
119 return $this->elements[$pos];
133 if ($this->elements[$pos]->getType() == $type) {
152 if ($this->elements[$pos]->attr($name) == $value) {
176 $this->elements[] = $element;
178 array_splice($this->elements, $pos, 0, [$element]);
194 array_splice($this->elements, $pos, 1, [$element]);
204 array_splice($this->elements, $pos, 1);
431 * Adjust the elements so that fieldset open and closes are matching
437 $len = count($this->elements);
440 $type = $this->elements[$pos]->getType();
491 foreach ($this->elements as $element) {