classes/collection/ElementCollection.php
public function all()
    {
        if ($this->isEmpty()) {
            return [];
        }

        $arResult = [];
        foreach ($this->arElementIDList as $iElementID) {
            $obElementItem = $this->makeItem($iElementID, null);
            if ($obElementItem->isEmpty()) {
                continue;
            }

            $arResult[$iElementID] = $obElementItem;
        }

        return $arResult;
    }
public function all()
    {
        if ($this->isEmpty()) {
            return [];
        }

        $arResult = [];
        foreach ($this->arElementIDList as $iElementID) {
            $obElementItem = $this->makeItem($iElementID, null);
            if ($obElementItem->isEmpty()) {
                continue;
            }

            $arResult[$iElementID] = $obElementItem;
        }

        return $arResult;
    }
public function all ( ) { if ( $ this -> isEmpty ( ) ) { return [ ] ; } $ arResult = [ ] ; foreach ( $ this -> arElementIDList as $ iElementID ) { $ obElementItem = $ this -> makeItem ( $ iElementID , null ) ; if ( $ obElementItem -> isEmpty ( ) ) { continue ; } $ arResult [ $ iElementID ] = $ obElementItem ; } return $ arResult ; }
Get element item list
@see  \Lovata\Toolbox\Tests\Unit\CollectionTest::testAllMethod()
@link https://github.com/lovata/oc-toolbox-plugin/wiki/ElementCollection#all
@return array|\Lovata\Toolbox\Classes\Item\ElementItem[]
Get element item list