source/Core/Model/ListModel.php
public function add($oObject)
    {
        if ($oObject->getId()) {
            $this->_aArray[$oObject->getId()] = $oObject;
        } else {
            $this->_aArray[] = $oObject;
        }
    }
public function add($oObject)
    {
        if ($oObject->getId()) {
            $this->_aArray[$oObject->getId()] = $oObject;
        } else {
            $this->_aArray[] = $oObject;
        }
    }
public function add ( $ oObject ) { if ( $ oObject -> getId ( ) ) { $ this -> _aArray [ $ oObject -> getId ( ) ] = $ oObject ; } else { $ this -> _aArray [ ] = $ oObject ; } }
Add an entry to object array.

@param object $oObject Object to be added.
Add an entry to object array .