public function get($uid)
    {
        if ($uid <= 0) {
            throw new \InvalidArgumentException('$uid must be > 0.', 1331488761);
        }

        if (!isset($this->items[$uid])) {
            throw new \Tx_Oelib_Exception_NotFound(
                'This map currently does not contain a model with the UID ' .
                $uid . '.'
            );
        }

        return $this->items[$uid];
    }
public function get($uid)
    {
        if ($uid <= 0) {
            throw new \InvalidArgumentException('$uid must be > 0.', 1331488761);
        }

        if (!isset($this->items[$uid])) {
            throw new \Tx_Oelib_Exception_NotFound(
                'This map currently does not contain a model with the UID ' .
                $uid . '.'
            );
        }

        return $this->items[$uid];
    }
public function get ( $ uid ) { if ( $ uid <= 0 ) { throw new \ InvalidArgumentException ( '$uid must be > 0.' , 1331488761 ) ; } if ( ! isset ( $ this -> items [ $ uid ] ) ) { throw new \ Tx_Oelib_Exception_NotFound ( 'This map currently does not contain a model with the UID ' . $ uid . '.' ) ; } return $ this -> items [ $ uid ] ; }
Retrieves a model from the map by UID.

@throws \Tx_Oelib_Exception_NotFound if this map does not have a model
with that particular UID

@param int $uid the UID of the model to retrieve, must be > 0

@return \Tx_Oelib_Model the stored model with the UID $uid
Retrieves a model from the map by UID .