userprofileentry.php
来自「Bug tracker, and reporter.」· PHP 代码 · 共 782 行 · 第 1/2 页
PHP
782 行
* @param Zend_Gdata_YouTube_Extension_Age $age The age * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setAge($age = null) { $this->_age = $age; return $this; } /** * Returns the age * * @return Zend_Gdata_YouTube_Extension_Age The age */ public function getAge() { return $this->_age; } /** * Sets the username * * @param Zend_Gdata_YouTube_Extension_Username $username The username * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setUsername($username = null) { $this->_username = $username; return $this; } /** * Returns the username * * @return Zend_Gdata_YouTube_Extension_Username The username */ public function getUsername() { return $this->_username; } /** * Sets the books * * @param Zend_Gdata_YouTube_Extension_Books $books The books * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setBooks($books = null) { $this->_books = $books; return $this; } /** * Returns the books * * @return Zend_Gdata_YouTube_Extension_Books The books */ public function getBooks() { return $this->_books; } /** * Sets the company * * @param Zend_Gdata_YouTube_Extension_Company $company The company * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setCompany($company = null) { $this->_company = $company; return $this; } /** * Returns the company * * @return Zend_Gdata_YouTube_Extension_Company The company */ public function getCompany() { return $this->_company; } /** * Sets the hobbies * * @param Zend_Gdata_YouTube_Extension_Hobbies $hobbies The hobbies * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setHobbies($hobbies = null) { $this->_hobbies = $hobbies; return $this; } /** * Returns the hobbies * * @return Zend_Gdata_YouTube_Extension_Hobbies The hobbies */ public function getHobbies() { return $this->_hobbies; } /** * Sets the hometown * * @param Zend_Gdata_YouTube_Extension_Hometown $hometown The hometown * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setHometown($hometown = null) { $this->_hometown = $hometown; return $this; } /** * Returns the hometown * * @return Zend_Gdata_YouTube_Extension_Hometown The hometown */ public function getHometown() { return $this->_hometown; } /** * Sets the location * * @param Zend_Gdata_YouTube_Extension_Location $location The location * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setLocation($location = null) { $this->_location = $location; return $this; } /** * Returns the location * * @return Zend_Gdata_YouTube_Extension_Location The location */ public function getLocation() { return $this->_location; } /** * Sets the movies * * @param Zend_Gdata_YouTube_Extension_Movies $movies The movies * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setMovies($movies = null) { $this->_movies = $movies; return $this; } /** * Returns the movies * * @return Zend_Gdata_YouTube_Extension_Movies The movies */ public function getMovies() { return $this->_movies; } /** * Sets the music * * @param Zend_Gdata_YouTube_Extension_Music $music The music * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setMusic($music = null) { $this->_music = $music; return $this; } /** * Returns the music * * @return Zend_Gdata_YouTube_Extension_Music The music */ public function getMusic() { return $this->_music; } /** * Sets the occupation * * @param Zend_Gdata_YouTube_Extension_Occupation $occupation The occupation * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setOccupation($occupation = null) { $this->_occupation = $occupation; return $this; } /** * Returns the occupation * * @return Zend_Gdata_YouTube_Extension_Occupation The occupation */ public function getOccupation() { return $this->_occupation; } /** * Sets the school * * @param Zend_Gdata_YouTube_Extension_School $school The school * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setSchool($school = null) { $this->_school = $school; return $this; } /** * Returns the school * * @return Zend_Gdata_YouTube_Extension_School The school */ public function getSchool() { return $this->_school; } /** * Sets the gender * * @param Zend_Gdata_YouTube_Extension_Gender $gender The gender * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setGender($gender = null) { $this->_gender = $gender; return $this; } /** * Returns the gender * * @return Zend_Gdata_YouTube_Extension_Gender The gender */ public function getGender() { return $this->_gender; } /** * Sets the relationship * * @param Zend_Gdata_YouTube_Extension_Relationship $relationship The relationship * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setRelationship($relationship = null) { $this->_relationship = $relationship; return $this; } /** * Returns the relationship * * @return Zend_Gdata_YouTube_Extension_Relationship The relationship */ public function getRelationship() { return $this->_relationship; } /** * Sets the array of embedded feeds related to the video * * @param array $feedLink The array of embedded feeds relating to the video * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface */ public function setFeedLink($feedLink = null) { $this->_feedLink = $feedLink; return $this; } /** * Get the feed link property for this entry. * * @see setFeedLink * @param string $rel (optional) The rel value of the link to be found. * If null, the array of links is returned. * @return mixed If $rel is specified, a Zend_Gdata_Extension_FeedLink * object corresponding to the requested rel value is returned * if found, or null if the requested value is not found. If * $rel is null or not specified, an array of all available * feed links for this entry is returned, or null if no feed * links are set. */ public function getFeedLink($rel = null) { if ($rel == null) { return $this->_feedLink; } else { foreach ($this->_feedLink as $feedLink) { if ($feedLink->rel == $rel) { return $feedLink; } } return null; } } /** * Returns the URL in the gd:feedLink with the provided rel value * * @param string $rel The rel value to find * @return mixed Either the URL as a string or null if a feedLink wasn't * found with the provided rel value */ public function getFeedLinkHref($rel) { $feedLink = $this->getFeedLink($rel); if ($feedLink !== null) { return $feedLink->href; } else { return null; } } /** * Returns the URL of the playlist list feed * * @return string The URL of the playlist video feed */ public function getPlaylistListFeedUrl() { return getFeedLinkHref(Zend_Gdata_YouTube::USER_PLAYLISTS_REL); } /** * Returns the URL of the uploads feed * * @return string The URL of the uploads video feed */ public function getUploadsFeedUrl() { return getFeedLinkHref(Zend_Gdata_YouTube::USER_UPLOADS_REL); } /** * Returns the URL of the subscriptions feed * * @return string The URL of the subscriptions feed */ public function getSubscriptionsFeedUrl() { return getFeedLinkHref(Zend_Gdata_YouTube::USER_SUBSCRIPTIONS_REL); } /** * Returns the URL of the contacts feed * * @return string The URL of the contacts feed */ public function getContactsFeedUrl() { return getFeedLinkHref(Zend_Gdata_YouTube::USER_CONTACTS_REL); } /** * Returns the URL of the favorites feed * * @return string The URL of the favorites feed */ public function getFavoritesFeedUrl() { return getFeedLinkHref(Zend_Gdata_YouTube::USER_FAVORITES_REL); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?