source/Core/Model/ListModel.php
public function assignArray($aData)
    {
        $this->clear();
        if (count($aData)) {
            $oSaved = clone $this->getBaseObject();

            foreach ($aData as $aItem) {
                $oListObject = clone $oSaved;
                $this->_assignElement($oListObject, $aItem);
                if ($oListObject->getId()) {
                    $this->_aArray[$oListObject->getId()] = $oListObject;
                } else {
                    $this->_aArray[] = $oListObject;
                }
            }
        }
    }
public function assignArray($aData)
    {
        $this->clear();
        if (count($aData)) {
            $oSaved = clone $this->getBaseObject();

            foreach ($aData as $aItem) {
                $oListObject = clone $oSaved;
                $this->_assignElement($oListObject, $aItem);
                if ($oListObject->getId()) {
                    $this->_aArray[$oListObject->getId()] = $oListObject;
                } else {
                    $this->_aArray[] = $oListObject;
                }
            }
        }
    }
public function assignArray ( $ aData ) { $ this -> clear ( ) ; if ( count ( $ aData ) ) { $ oSaved = clone $ this -> getBaseObject ( ) ; foreach ( $ aData as $ aItem ) { $ oListObject = clone $ oSaved ; $ this -> _assignElement ( $ oListObject , $ aItem ) ; if ( $ oListObject -> getId ( ) ) { $ this -> _aArray [ $ oListObject -> getId ( ) ] = $ oListObject ; } else { $ this -> _aArray [ ] = $ oListObject ; } } } }
Assign data from array to list

@param array $aData data for list
Assign data from array to list