/** * Retrieve a feed of messages in the currently authenticated user's inbox. * * @throws \Zend\GData\App\Exception if not logged in. * @return \Zend\GData\YouTube\InboxFeed|null */ public function getInboxFeedForCurrentUser() { if (!$this->isAuthenticated()) { throw new App\Exception('You must be authenticated to ' . 'use the getInboxFeedForCurrentUser function in Zend_' . 'Gdata_YouTube.'); } return parent::getFeed(self::INBOX_FEED_URI, '\\Zend\\GData\\YouTube\\InboxFeed'); }