function RulesElementMap::index

Makes sure each element has an assigned id.

1 call to RulesElementMap::index()
RulesElementMap::lookup in ui/ui.core.inc
Looks up the element with the given id.

File

ui/ui.core.inc, line 109

Class

RulesElementMap
Helper object for mapping elements to ids.

Code

public function index() {
    foreach ($this->getUnIndexedElements($this->configuration) as $element) {
        $id =& $element->property('elementId');
        $id = ++$this->counter;
        $this->index[$id] = $element;
    }
}