source/Core/Model/ListModel.php
public function offsetSet($offset, $oBase)
    {
        if (isset($offset)) {
            $this->_aArray[$offset] = & $oBase;
        } else {
            $sLongFieldName = $this->_getFieldLongName('oxid');
            if (isset($oBase->$sLongFieldName->value)) {
                $sOxid = $oBase->$sLongFieldName->value;
                $this->_aArray[$sOxid] = & $oBase;
            } else {
                $this->_aArray[] = & $oBase;
            }
        }
    }
public function offsetSet($offset, $oBase)
    {
        if (isset($offset)) {
            $this->_aArray[$offset] = & $oBase;
        } else {
            $sLongFieldName = $this->_getFieldLongName('oxid');
            if (isset($oBase->$sLongFieldName->value)) {
                $sOxid = $oBase->$sLongFieldName->value;
                $this->_aArray[$sOxid] = & $oBase;
            } else {
                $this->_aArray[] = & $oBase;
            }
        }
    }
public function offsetSet ( $ offset , $ oBase ) { if ( isset ( $ offset ) ) { $ this -> _aArray [ $ offset ] = & $ oBase ; } else { $ sLongFieldName = $ this -> _getFieldLongName ( 'oxid' ) ; if ( isset ( $ oBase -> $ sLongFieldName -> value ) ) { $ sOxid = $ oBase -> $ sLongFieldName -> value ; $ this -> _aArray [ $ sOxid ] = & $ oBase ; } else { $ this -> _aArray [ ] = & $ oBase ; } } }
offsetSet for SPL

@param mixed     $offset SPL array offset
@param BaseModel $oBase  Array element
offsetSet for SPL