DNBranchList::getIterator PHP Method

getIterator() public method

This function allows you to use ArrayList in foreach loops
    public function getIterator()
    {
        if ($this->loaded === false) {
            $this->items = $this->getReferences();
            $this->loaded = true;
        }
        foreach ($this->items as $i => $item) {
            if (is_array($item)) {
                $this->items[$i] = new ArrayData($item);
            }
        }
        return new ArrayIterator($this->items);
    }