From 5178798fa957345c47cd29db5a9801e3d8694fd7 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 14 Nov 2014 15:06:26 +0100 Subject: [PATCH] Remove Zend/Gdata from our vendor library Let's waste less space --- library/vendor/Zend/Gdata/Analytics.php | 130 -- .../Zend/Gdata/Analytics/AccountEntry.php | 97 - .../Zend/Gdata/Analytics/AccountFeed.php | 56 - .../Zend/Gdata/Analytics/AccountQuery.php | 189 -- .../vendor/Zend/Gdata/Analytics/DataEntry.php | 115 -- .../vendor/Zend/Gdata/Analytics/DataFeed.php | 61 - .../vendor/Zend/Gdata/Analytics/DataQuery.php | 402 ---- .../Gdata/Analytics/Extension/Dimension.php | 39 - .../Zend/Gdata/Analytics/Extension/Goal.php | 51 - .../Zend/Gdata/Analytics/Extension/Metric.php | 53 - .../Gdata/Analytics/Extension/Property.php | 121 -- .../Gdata/Analytics/Extension/TableId.php | 111 -- library/vendor/Zend/Gdata/App.php | 1219 ------------ .../vendor/Zend/Gdata/App/AuthException.php | 40 - .../Zend/Gdata/App/BadMethodCallException.php | 41 - library/vendor/Zend/Gdata/App/Base.php | 567 ------ .../vendor/Zend/Gdata/App/BaseMediaSource.php | 175 -- .../Gdata/App/CaptchaRequiredException.php | 93 - library/vendor/Zend/Gdata/App/Entry.php | 382 ---- library/vendor/Zend/Gdata/App/Exception.php | 42 - library/vendor/Zend/Gdata/App/Extension.php | 39 - .../Zend/Gdata/App/Extension/Author.php | 42 - .../Zend/Gdata/App/Extension/Category.php | 139 -- .../Zend/Gdata/App/Extension/Content.php | 87 - .../Zend/Gdata/App/Extension/Contributor.php | 42 - .../Zend/Gdata/App/Extension/Control.php | 96 - .../vendor/Zend/Gdata/App/Extension/Draft.php | 49 - .../Zend/Gdata/App/Extension/Edited.php | 48 - .../Zend/Gdata/App/Extension/Element.php | 57 - .../vendor/Zend/Gdata/App/Extension/Email.php | 48 - .../Zend/Gdata/App/Extension/Generator.php | 114 -- .../vendor/Zend/Gdata/App/Extension/Icon.php | 48 - .../vendor/Zend/Gdata/App/Extension/Id.php | 48 - .../vendor/Zend/Gdata/App/Extension/Link.php | 218 --- .../vendor/Zend/Gdata/App/Extension/Logo.php | 48 - .../vendor/Zend/Gdata/App/Extension/Name.php | 47 - .../Zend/Gdata/App/Extension/Person.php | 159 -- .../Zend/Gdata/App/Extension/Published.php | 48 - .../Zend/Gdata/App/Extension/Rights.php | 48 - .../Zend/Gdata/App/Extension/Source.php | 44 - .../Zend/Gdata/App/Extension/Subtitle.php | 42 - .../Zend/Gdata/App/Extension/Summary.php | 42 - .../vendor/Zend/Gdata/App/Extension/Text.php | 89 - .../vendor/Zend/Gdata/App/Extension/Title.php | 42 - .../Zend/Gdata/App/Extension/Updated.php | 48 - .../vendor/Zend/Gdata/App/Extension/Uri.php | 48 - library/vendor/Zend/Gdata/App/Feed.php | 348 ---- .../vendor/Zend/Gdata/App/FeedEntryParent.php | 669 ------- .../Zend/Gdata/App/FeedSourceParent.php | 261 --- .../vendor/Zend/Gdata/App/HttpException.php | 119 -- library/vendor/Zend/Gdata/App/IOException.php | 42 - .../Gdata/App/InvalidArgumentException.php | 41 - .../App/LoggingHttpClientAdapterSocket.php | 118 -- library/vendor/Zend/Gdata/App/MediaEntry.php | 115 -- .../vendor/Zend/Gdata/App/MediaFileSource.php | 143 -- library/vendor/Zend/Gdata/App/MediaSource.php | 73 - library/vendor/Zend/Gdata/App/Util.php | 109 -- .../Zend/Gdata/App/VersionException.php | 41 - library/vendor/Zend/Gdata/AuthSub.php | 241 --- library/vendor/Zend/Gdata/Books.php | 198 -- .../Zend/Gdata/Books/CollectionEntry.php | 55 - .../Zend/Gdata/Books/CollectionFeed.php | 61 - .../Gdata/Books/Extension/AnnotationLink.php | 62 - .../Gdata/Books/Extension/BooksCategory.php | 58 - .../Zend/Gdata/Books/Extension/BooksLink.php | 60 - .../Gdata/Books/Extension/Embeddability.php | 121 -- .../Zend/Gdata/Books/Extension/InfoLink.php | 58 - .../Gdata/Books/Extension/PreviewLink.php | 59 - .../Zend/Gdata/Books/Extension/Review.php | 151 -- .../Gdata/Books/Extension/ThumbnailLink.php | 59 - .../Gdata/Books/Extension/Viewability.php | 122 -- .../vendor/Zend/Gdata/Books/VolumeEntry.php | 671 ------- .../vendor/Zend/Gdata/Books/VolumeFeed.php | 61 - .../vendor/Zend/Gdata/Books/VolumeQuery.php | 110 -- library/vendor/Zend/Gdata/Calendar.php | 162 -- .../vendor/Zend/Gdata/Calendar/EventEntry.php | 158 -- .../vendor/Zend/Gdata/Calendar/EventFeed.php | 104 -- .../vendor/Zend/Gdata/Calendar/EventQuery.php | 485 ----- .../Gdata/Calendar/Extension/AccessLevel.php | 124 -- .../Zend/Gdata/Calendar/Extension/Color.php | 124 -- .../Zend/Gdata/Calendar/Extension/Hidden.php | 132 -- .../Zend/Gdata/Calendar/Extension/Link.php | 123 -- .../Gdata/Calendar/Extension/QuickAdd.php | 131 -- .../Gdata/Calendar/Extension/Selected.php | 131 -- .../Extension/SendEventNotifications.php | 131 -- .../Gdata/Calendar/Extension/Timezone.php | 123 -- .../Gdata/Calendar/Extension/WebContent.php | 176 -- .../vendor/Zend/Gdata/Calendar/ListEntry.php | 238 --- .../vendor/Zend/Gdata/Calendar/ListFeed.php | 104 -- library/vendor/Zend/Gdata/ClientLogin.php | 174 -- library/vendor/Zend/Gdata/Docs.php | 315 ---- .../Zend/Gdata/Docs/DocumentListEntry.php | 53 - .../Zend/Gdata/Docs/DocumentListFeed.php | 67 - library/vendor/Zend/Gdata/Docs/Query.php | 219 --- library/vendor/Zend/Gdata/DublinCore.php | 64 - .../Gdata/DublinCore/Extension/Creator.php | 57 - .../Zend/Gdata/DublinCore/Extension/Date.php | 59 - .../DublinCore/Extension/Description.php | 57 - .../Gdata/DublinCore/Extension/Format.php | 57 - .../Gdata/DublinCore/Extension/Identifier.php | 57 - .../Gdata/DublinCore/Extension/Language.php | 57 - .../Gdata/DublinCore/Extension/Publisher.php | 57 - .../Gdata/DublinCore/Extension/Rights.php | 57 - .../Gdata/DublinCore/Extension/Subject.php | 57 - .../Zend/Gdata/DublinCore/Extension/Title.php | 57 - library/vendor/Zend/Gdata/Entry.php | 129 -- library/vendor/Zend/Gdata/Exif.php | 64 - library/vendor/Zend/Gdata/Exif/Entry.php | 142 -- .../Zend/Gdata/Exif/Extension/Distance.php | 59 - .../Zend/Gdata/Exif/Extension/Exposure.php | 59 - .../Zend/Gdata/Exif/Extension/FStop.php | 59 - .../Zend/Gdata/Exif/Extension/Flash.php | 59 - .../Zend/Gdata/Exif/Extension/FocalLength.php | 59 - .../Gdata/Exif/Extension/ImageUniqueId.php | 59 - .../vendor/Zend/Gdata/Exif/Extension/Iso.php | 59 - .../vendor/Zend/Gdata/Exif/Extension/Make.php | 59 - .../Zend/Gdata/Exif/Extension/Model.php | 59 - .../vendor/Zend/Gdata/Exif/Extension/Tags.php | 537 ------ .../vendor/Zend/Gdata/Exif/Extension/Time.php | 59 - library/vendor/Zend/Gdata/Exif/Feed.php | 67 - library/vendor/Zend/Gdata/Extension.php | 57 - .../Zend/Gdata/Extension/AttendeeStatus.php | 122 -- .../Zend/Gdata/Extension/AttendeeType.php | 122 -- .../vendor/Zend/Gdata/Extension/Comments.php | 115 -- .../vendor/Zend/Gdata/Extension/EntryLink.php | 165 -- .../Zend/Gdata/Extension/EventStatus.php | 100 - .../Zend/Gdata/Extension/ExtendedProperty.php | 105 -- .../vendor/Zend/Gdata/Extension/FeedLink.php | 173 -- .../Extension/OpenSearchItemsPerPage.php | 49 - .../Gdata/Extension/OpenSearchStartIndex.php | 49 - .../Extension/OpenSearchTotalResults.php | 49 - .../Zend/Gdata/Extension/OriginalEvent.php | 139 -- .../vendor/Zend/Gdata/Extension/Rating.php | 239 --- .../Zend/Gdata/Extension/Recurrence.php | 48 - .../Gdata/Extension/RecurrenceException.php | 212 --- .../vendor/Zend/Gdata/Extension/Reminder.php | 170 -- .../Zend/Gdata/Extension/Transparency.php | 122 -- .../Zend/Gdata/Extension/Visibility.php | 122 -- library/vendor/Zend/Gdata/Extension/When.php | 167 -- library/vendor/Zend/Gdata/Extension/Where.php | 169 -- library/vendor/Zend/Gdata/Extension/Who.php | 295 --- library/vendor/Zend/Gdata/Feed.php | 244 --- library/vendor/Zend/Gdata/Gapps.php | 1657 ----------------- .../Zend/Gdata/Gapps/EmailListEntry.php | 211 --- .../vendor/Zend/Gdata/Gapps/EmailListFeed.php | 51 - .../Zend/Gdata/Gapps/EmailListQuery.php | 186 -- .../Gdata/Gapps/EmailListRecipientEntry.php | 144 -- .../Gdata/Gapps/EmailListRecipientFeed.php | 51 - .../Gdata/Gapps/EmailListRecipientQuery.php | 151 -- library/vendor/Zend/Gdata/Gapps/Error.php | 232 --- .../Zend/Gdata/Gapps/Extension/EmailList.php | 142 -- .../Zend/Gdata/Gapps/Extension/Login.php | 471 ----- .../Zend/Gdata/Gapps/Extension/Name.php | 179 -- .../Zend/Gdata/Gapps/Extension/Nickname.php | 140 -- .../Zend/Gdata/Gapps/Extension/Property.php | 177 -- .../Zend/Gdata/Gapps/Extension/Quota.php | 140 -- .../vendor/Zend/Gdata/Gapps/GroupEntry.php | 156 -- library/vendor/Zend/Gdata/Gapps/GroupFeed.php | 51 - .../vendor/Zend/Gdata/Gapps/GroupQuery.php | 225 --- .../vendor/Zend/Gdata/Gapps/MemberEntry.php | 157 -- .../vendor/Zend/Gdata/Gapps/MemberFeed.php | 51 - .../vendor/Zend/Gdata/Gapps/MemberQuery.php | 192 -- .../vendor/Zend/Gdata/Gapps/NicknameEntry.php | 186 -- .../vendor/Zend/Gdata/Gapps/NicknameFeed.php | 51 - .../vendor/Zend/Gdata/Gapps/NicknameQuery.php | 185 -- .../vendor/Zend/Gdata/Gapps/OwnerEntry.php | 156 -- library/vendor/Zend/Gdata/Gapps/OwnerFeed.php | 51 - .../vendor/Zend/Gdata/Gapps/OwnerQuery.php | 145 -- library/vendor/Zend/Gdata/Gapps/Query.php | 120 -- .../Zend/Gdata/Gapps/ServiceException.php | 204 -- library/vendor/Zend/Gdata/Gapps/UserEntry.php | 290 --- library/vendor/Zend/Gdata/Gapps/UserFeed.php | 51 - library/vendor/Zend/Gdata/Gapps/UserQuery.php | 146 -- library/vendor/Zend/Gdata/Gbase.php | 76 - library/vendor/Zend/Gdata/Gbase/Entry.php | 57 - .../Gdata/Gbase/Extension/BaseAttribute.php | 53 - library/vendor/Zend/Gdata/Gbase/Feed.php | 59 - library/vendor/Zend/Gdata/Gbase/ItemEntry.php | 41 - library/vendor/Zend/Gdata/Gbase/ItemFeed.php | 41 - library/vendor/Zend/Gdata/Gbase/ItemQuery.php | 50 - library/vendor/Zend/Gdata/Gbase/Query.php | 67 - .../vendor/Zend/Gdata/Gbase/SnippetEntry.php | 41 - .../vendor/Zend/Gdata/Gbase/SnippetFeed.php | 45 - .../vendor/Zend/Gdata/Gbase/SnippetQuery.php | 45 - library/vendor/Zend/Gdata/Geo.php | 69 - library/vendor/Zend/Gdata/Geo/Entry.php | 94 - .../Zend/Gdata/Geo/Extension/GeoRssWhere.php | 132 -- .../Zend/Gdata/Geo/Extension/GmlPoint.php | 133 -- .../Zend/Gdata/Geo/Extension/GmlPos.php | 59 - library/vendor/Zend/Gdata/Geo/Feed.php | 61 - library/vendor/Zend/Gdata/Health.php | 87 - .../Zend/Gdata/Health/Extension/Ccr.php | 56 - .../vendor/Zend/Gdata/Health/ProfileEntry.php | 57 - .../vendor/Zend/Gdata/Health/ProfileFeed.php | 59 - .../Zend/Gdata/Health/ProfileListEntry.php | 57 - .../Zend/Gdata/Health/ProfileListFeed.php | 53 - library/vendor/Zend/Gdata/Health/Query.php | 73 - .../Zend/Gdata/HttpAdapterStreamingProxy.php | 121 -- .../Zend/Gdata/HttpAdapterStreamingSocket.php | 106 -- library/vendor/Zend/Gdata/HttpClient.php | 348 ---- library/vendor/Zend/Gdata/Kind/EventEntry.php | 414 ---- library/vendor/Zend/Gdata/Media.php | 64 - library/vendor/Zend/Gdata/Media/Entry.php | 131 -- .../Gdata/Media/Extension/MediaCategory.php | 147 -- .../Gdata/Media/Extension/MediaContent.php | 521 ------ .../Gdata/Media/Extension/MediaCopyright.php | 115 -- .../Gdata/Media/Extension/MediaCredit.php | 148 -- .../Media/Extension/MediaDescription.php | 115 -- .../Zend/Gdata/Media/Extension/MediaGroup.php | 551 ------ .../Zend/Gdata/Media/Extension/MediaHash.php | 114 -- .../Gdata/Media/Extension/MediaKeywords.php | 51 - .../Gdata/Media/Extension/MediaPlayer.php | 177 -- .../Gdata/Media/Extension/MediaRating.php | 117 -- .../Media/Extension/MediaRestriction.php | 148 -- .../Zend/Gdata/Media/Extension/MediaText.php | 210 --- .../Gdata/Media/Extension/MediaThumbnail.php | 209 --- .../Zend/Gdata/Media/Extension/MediaTitle.php | 117 -- library/vendor/Zend/Gdata/Media/Feed.php | 67 - library/vendor/Zend/Gdata/MediaMimeStream.php | 187 -- library/vendor/Zend/Gdata/MimeBodyString.php | 92 - library/vendor/Zend/Gdata/MimeFile.php | 66 - library/vendor/Zend/Gdata/Photos.php | 563 ------ .../vendor/Zend/Gdata/Photos/AlbumEntry.php | 597 ------ .../vendor/Zend/Gdata/Photos/AlbumFeed.php | 505 ----- .../vendor/Zend/Gdata/Photos/AlbumQuery.php | 146 -- .../vendor/Zend/Gdata/Photos/CommentEntry.php | 190 -- .../Zend/Gdata/Photos/Extension/Access.php | 61 - .../Zend/Gdata/Photos/Extension/AlbumId.php | 61 - .../Zend/Gdata/Photos/Extension/BytesUsed.php | 60 - .../Zend/Gdata/Photos/Extension/Checksum.php | 61 - .../Zend/Gdata/Photos/Extension/Client.php | 61 - .../Gdata/Photos/Extension/CommentCount.php | 61 - .../Photos/Extension/CommentingEnabled.php | 62 - .../Zend/Gdata/Photos/Extension/Height.php | 60 - .../vendor/Zend/Gdata/Photos/Extension/Id.php | 60 - .../Zend/Gdata/Photos/Extension/Location.php | 60 - .../Photos/Extension/MaxPhotosPerAlbum.php | 61 - .../Zend/Gdata/Photos/Extension/Name.php | 60 - .../Zend/Gdata/Photos/Extension/Nickname.php | 60 - .../Zend/Gdata/Photos/Extension/NumPhotos.php | 60 - .../Photos/Extension/NumPhotosRemaining.php | 60 - .../Zend/Gdata/Photos/Extension/PhotoId.php | 59 - .../Zend/Gdata/Photos/Extension/Position.php | 60 - .../Gdata/Photos/Extension/QuotaCurrent.php | 60 - .../Gdata/Photos/Extension/QuotaLimit.php | 61 - .../Zend/Gdata/Photos/Extension/Rotation.php | 61 - .../Zend/Gdata/Photos/Extension/Size.php | 60 - .../Zend/Gdata/Photos/Extension/Thumbnail.php | 60 - .../Zend/Gdata/Photos/Extension/Timestamp.php | 61 - .../Zend/Gdata/Photos/Extension/User.php | 60 - .../Zend/Gdata/Photos/Extension/Version.php | 61 - .../Zend/Gdata/Photos/Extension/Weight.php | 61 - .../Zend/Gdata/Photos/Extension/Width.php | 60 - .../vendor/Zend/Gdata/Photos/PhotoEntry.php | 675 ------- .../vendor/Zend/Gdata/Photos/PhotoFeed.php | 555 ------ .../vendor/Zend/Gdata/Photos/PhotoQuery.php | 96 - library/vendor/Zend/Gdata/Photos/TagEntry.php | 137 -- .../vendor/Zend/Gdata/Photos/UserEntry.php | 357 ---- library/vendor/Zend/Gdata/Photos/UserFeed.php | 239 --- .../vendor/Zend/Gdata/Photos/UserQuery.php | 351 ---- library/vendor/Zend/Gdata/Query.php | 415 ----- library/vendor/Zend/Gdata/Spreadsheets.php | 433 ----- .../Zend/Gdata/Spreadsheets/CellEntry.php | 102 - .../Zend/Gdata/Spreadsheets/CellFeed.php | 155 -- .../Zend/Gdata/Spreadsheets/CellQuery.php | 411 ---- .../Zend/Gdata/Spreadsheets/DocumentQuery.php | 282 --- .../Gdata/Spreadsheets/Extension/Cell.php | 199 -- .../Gdata/Spreadsheets/Extension/ColCount.php | 57 - .../Gdata/Spreadsheets/Extension/Custom.php | 98 - .../Gdata/Spreadsheets/Extension/RowCount.php | 58 - .../Zend/Gdata/Spreadsheets/ListEntry.php | 204 -- .../Zend/Gdata/Spreadsheets/ListFeed.php | 63 - .../Zend/Gdata/Spreadsheets/ListQuery.php | 299 --- .../Gdata/Spreadsheets/SpreadsheetEntry.php | 63 - .../Gdata/Spreadsheets/SpreadsheetFeed.php | 63 - .../Gdata/Spreadsheets/WorksheetEntry.php | 184 -- .../Zend/Gdata/Spreadsheets/WorksheetFeed.php | 63 - library/vendor/Zend/Gdata/YouTube.php | 856 --------- .../Zend/Gdata/YouTube/ActivityEntry.php | 228 --- .../Zend/Gdata/YouTube/ActivityFeed.php | 64 - .../Zend/Gdata/YouTube/CommentEntry.php | 58 - .../vendor/Zend/Gdata/YouTube/CommentFeed.php | 64 - .../Zend/Gdata/YouTube/ContactEntry.php | 134 -- .../vendor/Zend/Gdata/YouTube/ContactFeed.php | 66 - .../Zend/Gdata/YouTube/Extension/AboutMe.php | 50 - .../Zend/Gdata/YouTube/Extension/Age.php | 50 - .../Zend/Gdata/YouTube/Extension/Books.php | 50 - .../Zend/Gdata/YouTube/Extension/Company.php | 50 - .../Zend/Gdata/YouTube/Extension/Control.php | 131 -- .../Gdata/YouTube/Extension/CountHint.php | 50 - .../Gdata/YouTube/Extension/Description.php | 50 - .../Zend/Gdata/YouTube/Extension/Duration.php | 125 -- .../Gdata/YouTube/Extension/FirstName.php | 50 - .../Zend/Gdata/YouTube/Extension/Gender.php | 50 - .../Zend/Gdata/YouTube/Extension/Hobbies.php | 50 - .../Zend/Gdata/YouTube/Extension/Hometown.php | 50 - .../Zend/Gdata/YouTube/Extension/LastName.php | 50 - .../Zend/Gdata/YouTube/Extension/Link.php | 131 -- .../Zend/Gdata/YouTube/Extension/Location.php | 50 - .../Gdata/YouTube/Extension/MediaContent.php | 119 -- .../Gdata/YouTube/Extension/MediaCredit.php | 188 -- .../Gdata/YouTube/Extension/MediaGroup.php | 328 ---- .../Gdata/YouTube/Extension/MediaRating.php | 149 -- .../Zend/Gdata/YouTube/Extension/Movies.php | 50 - .../Zend/Gdata/YouTube/Extension/Music.php | 50 - .../Zend/Gdata/YouTube/Extension/NoEmbed.php | 53 - .../Gdata/YouTube/Extension/Occupation.php | 50 - .../Gdata/YouTube/Extension/PlaylistId.php | 50 - .../Gdata/YouTube/Extension/PlaylistTitle.php | 50 - .../Zend/Gdata/YouTube/Extension/Position.php | 89 - .../Zend/Gdata/YouTube/Extension/Private.php | 80 - .../Gdata/YouTube/Extension/QueryString.php | 50 - .../Zend/Gdata/YouTube/Extension/Racy.php | 123 -- .../Zend/Gdata/YouTube/Extension/Recorded.php | 50 - .../Gdata/YouTube/Extension/Relationship.php | 50 - .../Gdata/YouTube/Extension/ReleaseDate.php | 50 - .../Zend/Gdata/YouTube/Extension/School.php | 50 - .../Zend/Gdata/YouTube/Extension/State.php | 192 -- .../Gdata/YouTube/Extension/Statistics.php | 308 --- .../Zend/Gdata/YouTube/Extension/Status.php | 50 - .../Zend/Gdata/YouTube/Extension/Token.php | 69 - .../Zend/Gdata/YouTube/Extension/Uploaded.php | 50 - .../Zend/Gdata/YouTube/Extension/Username.php | 50 - .../Zend/Gdata/YouTube/Extension/VideoId.php | 50 - .../vendor/Zend/Gdata/YouTube/InboxEntry.php | 274 --- .../vendor/Zend/Gdata/YouTube/InboxFeed.php | 66 - .../vendor/Zend/Gdata/YouTube/MediaEntry.php | 78 - .../Zend/Gdata/YouTube/PlaylistListEntry.php | 292 --- .../Zend/Gdata/YouTube/PlaylistListFeed.php | 66 - .../Zend/Gdata/YouTube/PlaylistVideoEntry.php | 130 -- .../Zend/Gdata/YouTube/PlaylistVideoFeed.php | 66 - .../Zend/Gdata/YouTube/SubscriptionEntry.php | 431 ----- .../Zend/Gdata/YouTube/SubscriptionFeed.php | 66 - .../Zend/Gdata/YouTube/UserProfileEntry.php | 1012 ---------- .../vendor/Zend/Gdata/YouTube/VideoEntry.php | 1077 ----------- .../vendor/Zend/Gdata/YouTube/VideoFeed.php | 63 - .../vendor/Zend/Gdata/YouTube/VideoQuery.php | 525 ------ 337 files changed, 48905 deletions(-) delete mode 100644 library/vendor/Zend/Gdata/Analytics.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/AccountEntry.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/AccountFeed.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/AccountQuery.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/DataEntry.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/DataFeed.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/DataQuery.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/Extension/Dimension.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/Extension/Goal.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/Extension/Metric.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/Extension/Property.php delete mode 100644 library/vendor/Zend/Gdata/Analytics/Extension/TableId.php delete mode 100644 library/vendor/Zend/Gdata/App.php delete mode 100644 library/vendor/Zend/Gdata/App/AuthException.php delete mode 100644 library/vendor/Zend/Gdata/App/BadMethodCallException.php delete mode 100644 library/vendor/Zend/Gdata/App/Base.php delete mode 100644 library/vendor/Zend/Gdata/App/BaseMediaSource.php delete mode 100644 library/vendor/Zend/Gdata/App/CaptchaRequiredException.php delete mode 100644 library/vendor/Zend/Gdata/App/Entry.php delete mode 100644 library/vendor/Zend/Gdata/App/Exception.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Author.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Category.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Content.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Contributor.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Control.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Draft.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Edited.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Element.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Email.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Generator.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Icon.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Id.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Link.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Logo.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Name.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Person.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Published.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Rights.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Source.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Subtitle.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Summary.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Text.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Title.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Updated.php delete mode 100644 library/vendor/Zend/Gdata/App/Extension/Uri.php delete mode 100755 library/vendor/Zend/Gdata/App/Feed.php delete mode 100755 library/vendor/Zend/Gdata/App/FeedEntryParent.php delete mode 100644 library/vendor/Zend/Gdata/App/FeedSourceParent.php delete mode 100644 library/vendor/Zend/Gdata/App/HttpException.php delete mode 100644 library/vendor/Zend/Gdata/App/IOException.php delete mode 100644 library/vendor/Zend/Gdata/App/InvalidArgumentException.php delete mode 100644 library/vendor/Zend/Gdata/App/LoggingHttpClientAdapterSocket.php delete mode 100644 library/vendor/Zend/Gdata/App/MediaEntry.php delete mode 100644 library/vendor/Zend/Gdata/App/MediaFileSource.php delete mode 100644 library/vendor/Zend/Gdata/App/MediaSource.php delete mode 100644 library/vendor/Zend/Gdata/App/Util.php delete mode 100644 library/vendor/Zend/Gdata/App/VersionException.php delete mode 100644 library/vendor/Zend/Gdata/AuthSub.php delete mode 100755 library/vendor/Zend/Gdata/Books.php delete mode 100644 library/vendor/Zend/Gdata/Books/CollectionEntry.php delete mode 100644 library/vendor/Zend/Gdata/Books/CollectionFeed.php delete mode 100644 library/vendor/Zend/Gdata/Books/Extension/AnnotationLink.php delete mode 100644 library/vendor/Zend/Gdata/Books/Extension/BooksCategory.php delete mode 100644 library/vendor/Zend/Gdata/Books/Extension/BooksLink.php delete mode 100644 library/vendor/Zend/Gdata/Books/Extension/Embeddability.php delete mode 100644 library/vendor/Zend/Gdata/Books/Extension/InfoLink.php delete mode 100644 library/vendor/Zend/Gdata/Books/Extension/PreviewLink.php delete mode 100644 library/vendor/Zend/Gdata/Books/Extension/Review.php delete mode 100644 library/vendor/Zend/Gdata/Books/Extension/ThumbnailLink.php delete mode 100644 library/vendor/Zend/Gdata/Books/Extension/Viewability.php delete mode 100644 library/vendor/Zend/Gdata/Books/VolumeEntry.php delete mode 100644 library/vendor/Zend/Gdata/Books/VolumeFeed.php delete mode 100755 library/vendor/Zend/Gdata/Books/VolumeQuery.php delete mode 100644 library/vendor/Zend/Gdata/Calendar.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/EventEntry.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/EventFeed.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/EventQuery.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/Extension/AccessLevel.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/Extension/Color.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/Extension/Hidden.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/Extension/Link.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/Extension/QuickAdd.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/Extension/Selected.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/Extension/SendEventNotifications.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/Extension/Timezone.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/Extension/WebContent.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/ListEntry.php delete mode 100644 library/vendor/Zend/Gdata/Calendar/ListFeed.php delete mode 100644 library/vendor/Zend/Gdata/ClientLogin.php delete mode 100755 library/vendor/Zend/Gdata/Docs.php delete mode 100755 library/vendor/Zend/Gdata/Docs/DocumentListEntry.php delete mode 100755 library/vendor/Zend/Gdata/Docs/DocumentListFeed.php delete mode 100755 library/vendor/Zend/Gdata/Docs/Query.php delete mode 100755 library/vendor/Zend/Gdata/DublinCore.php delete mode 100644 library/vendor/Zend/Gdata/DublinCore/Extension/Creator.php delete mode 100644 library/vendor/Zend/Gdata/DublinCore/Extension/Date.php delete mode 100644 library/vendor/Zend/Gdata/DublinCore/Extension/Description.php delete mode 100644 library/vendor/Zend/Gdata/DublinCore/Extension/Format.php delete mode 100644 library/vendor/Zend/Gdata/DublinCore/Extension/Identifier.php delete mode 100644 library/vendor/Zend/Gdata/DublinCore/Extension/Language.php delete mode 100644 library/vendor/Zend/Gdata/DublinCore/Extension/Publisher.php delete mode 100644 library/vendor/Zend/Gdata/DublinCore/Extension/Rights.php delete mode 100644 library/vendor/Zend/Gdata/DublinCore/Extension/Subject.php delete mode 100644 library/vendor/Zend/Gdata/DublinCore/Extension/Title.php delete mode 100644 library/vendor/Zend/Gdata/Entry.php delete mode 100755 library/vendor/Zend/Gdata/Exif.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Entry.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/Distance.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/Exposure.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/FStop.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/Flash.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/FocalLength.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/ImageUniqueId.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/Iso.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/Make.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/Model.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/Tags.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Extension/Time.php delete mode 100755 library/vendor/Zend/Gdata/Exif/Feed.php delete mode 100644 library/vendor/Zend/Gdata/Extension.php delete mode 100644 library/vendor/Zend/Gdata/Extension/AttendeeStatus.php delete mode 100644 library/vendor/Zend/Gdata/Extension/AttendeeType.php delete mode 100644 library/vendor/Zend/Gdata/Extension/Comments.php delete mode 100644 library/vendor/Zend/Gdata/Extension/EntryLink.php delete mode 100644 library/vendor/Zend/Gdata/Extension/EventStatus.php delete mode 100644 library/vendor/Zend/Gdata/Extension/ExtendedProperty.php delete mode 100644 library/vendor/Zend/Gdata/Extension/FeedLink.php delete mode 100644 library/vendor/Zend/Gdata/Extension/OpenSearchItemsPerPage.php delete mode 100644 library/vendor/Zend/Gdata/Extension/OpenSearchStartIndex.php delete mode 100644 library/vendor/Zend/Gdata/Extension/OpenSearchTotalResults.php delete mode 100644 library/vendor/Zend/Gdata/Extension/OriginalEvent.php delete mode 100644 library/vendor/Zend/Gdata/Extension/Rating.php delete mode 100644 library/vendor/Zend/Gdata/Extension/Recurrence.php delete mode 100644 library/vendor/Zend/Gdata/Extension/RecurrenceException.php delete mode 100644 library/vendor/Zend/Gdata/Extension/Reminder.php delete mode 100644 library/vendor/Zend/Gdata/Extension/Transparency.php delete mode 100644 library/vendor/Zend/Gdata/Extension/Visibility.php delete mode 100644 library/vendor/Zend/Gdata/Extension/When.php delete mode 100644 library/vendor/Zend/Gdata/Extension/Where.php delete mode 100644 library/vendor/Zend/Gdata/Extension/Who.php delete mode 100644 library/vendor/Zend/Gdata/Feed.php delete mode 100644 library/vendor/Zend/Gdata/Gapps.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/EmailListEntry.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/EmailListFeed.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/EmailListQuery.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/EmailListRecipientEntry.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/EmailListRecipientFeed.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/EmailListRecipientQuery.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/Error.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/Extension/EmailList.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/Extension/Login.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/Extension/Name.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/Extension/Nickname.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/Extension/Property.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/Extension/Quota.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/GroupEntry.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/GroupFeed.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/GroupQuery.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/MemberEntry.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/MemberFeed.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/MemberQuery.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/NicknameEntry.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/NicknameFeed.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/NicknameQuery.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/OwnerEntry.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/OwnerFeed.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/OwnerQuery.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/Query.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/ServiceException.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/UserEntry.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/UserFeed.php delete mode 100644 library/vendor/Zend/Gdata/Gapps/UserQuery.php delete mode 100644 library/vendor/Zend/Gdata/Gbase.php delete mode 100644 library/vendor/Zend/Gdata/Gbase/Entry.php delete mode 100644 library/vendor/Zend/Gdata/Gbase/Extension/BaseAttribute.php delete mode 100644 library/vendor/Zend/Gdata/Gbase/Feed.php delete mode 100644 library/vendor/Zend/Gdata/Gbase/ItemEntry.php delete mode 100644 library/vendor/Zend/Gdata/Gbase/ItemFeed.php delete mode 100644 library/vendor/Zend/Gdata/Gbase/ItemQuery.php delete mode 100644 library/vendor/Zend/Gdata/Gbase/Query.php delete mode 100644 library/vendor/Zend/Gdata/Gbase/SnippetEntry.php delete mode 100644 library/vendor/Zend/Gdata/Gbase/SnippetFeed.php delete mode 100644 library/vendor/Zend/Gdata/Gbase/SnippetQuery.php delete mode 100755 library/vendor/Zend/Gdata/Geo.php delete mode 100755 library/vendor/Zend/Gdata/Geo/Entry.php delete mode 100755 library/vendor/Zend/Gdata/Geo/Extension/GeoRssWhere.php delete mode 100755 library/vendor/Zend/Gdata/Geo/Extension/GmlPoint.php delete mode 100755 library/vendor/Zend/Gdata/Geo/Extension/GmlPos.php delete mode 100755 library/vendor/Zend/Gdata/Geo/Feed.php delete mode 100755 library/vendor/Zend/Gdata/Health.php delete mode 100755 library/vendor/Zend/Gdata/Health/Extension/Ccr.php delete mode 100755 library/vendor/Zend/Gdata/Health/ProfileEntry.php delete mode 100755 library/vendor/Zend/Gdata/Health/ProfileFeed.php delete mode 100755 library/vendor/Zend/Gdata/Health/ProfileListEntry.php delete mode 100755 library/vendor/Zend/Gdata/Health/ProfileListFeed.php delete mode 100755 library/vendor/Zend/Gdata/Health/Query.php delete mode 100644 library/vendor/Zend/Gdata/HttpAdapterStreamingProxy.php delete mode 100644 library/vendor/Zend/Gdata/HttpAdapterStreamingSocket.php delete mode 100644 library/vendor/Zend/Gdata/HttpClient.php delete mode 100644 library/vendor/Zend/Gdata/Kind/EventEntry.php delete mode 100755 library/vendor/Zend/Gdata/Media.php delete mode 100755 library/vendor/Zend/Gdata/Media/Entry.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaCategory.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaContent.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaCopyright.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaCredit.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaDescription.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaGroup.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaHash.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaKeywords.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaPlayer.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaRating.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaRestriction.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaText.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaThumbnail.php delete mode 100755 library/vendor/Zend/Gdata/Media/Extension/MediaTitle.php delete mode 100755 library/vendor/Zend/Gdata/Media/Feed.php delete mode 100644 library/vendor/Zend/Gdata/MediaMimeStream.php delete mode 100644 library/vendor/Zend/Gdata/MimeBodyString.php delete mode 100644 library/vendor/Zend/Gdata/MimeFile.php delete mode 100755 library/vendor/Zend/Gdata/Photos.php delete mode 100755 library/vendor/Zend/Gdata/Photos/AlbumEntry.php delete mode 100755 library/vendor/Zend/Gdata/Photos/AlbumFeed.php delete mode 100755 library/vendor/Zend/Gdata/Photos/AlbumQuery.php delete mode 100755 library/vendor/Zend/Gdata/Photos/CommentEntry.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Access.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/AlbumId.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/BytesUsed.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Checksum.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Client.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/CommentCount.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/CommentingEnabled.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Height.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Id.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Location.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/MaxPhotosPerAlbum.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Name.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Nickname.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/NumPhotos.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/NumPhotosRemaining.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/PhotoId.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Position.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/QuotaCurrent.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/QuotaLimit.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Rotation.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Size.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Thumbnail.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Timestamp.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/User.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Version.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Weight.php delete mode 100755 library/vendor/Zend/Gdata/Photos/Extension/Width.php delete mode 100755 library/vendor/Zend/Gdata/Photos/PhotoEntry.php delete mode 100755 library/vendor/Zend/Gdata/Photos/PhotoFeed.php delete mode 100755 library/vendor/Zend/Gdata/Photos/PhotoQuery.php delete mode 100755 library/vendor/Zend/Gdata/Photos/TagEntry.php delete mode 100755 library/vendor/Zend/Gdata/Photos/UserEntry.php delete mode 100755 library/vendor/Zend/Gdata/Photos/UserFeed.php delete mode 100755 library/vendor/Zend/Gdata/Photos/UserQuery.php delete mode 100644 library/vendor/Zend/Gdata/Query.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/CellEntry.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/CellFeed.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/CellQuery.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/DocumentQuery.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/Extension/Cell.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/Extension/ColCount.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/Extension/Custom.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/Extension/RowCount.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/ListEntry.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/ListFeed.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/ListQuery.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/SpreadsheetEntry.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/SpreadsheetFeed.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/WorksheetEntry.php delete mode 100644 library/vendor/Zend/Gdata/Spreadsheets/WorksheetFeed.php delete mode 100644 library/vendor/Zend/Gdata/YouTube.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/ActivityEntry.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/ActivityFeed.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/CommentEntry.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/CommentFeed.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/ContactEntry.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/ContactFeed.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/AboutMe.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Age.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Books.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Company.php delete mode 100755 library/vendor/Zend/Gdata/YouTube/Extension/Control.php delete mode 100755 library/vendor/Zend/Gdata/YouTube/Extension/CountHint.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Description.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Duration.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/FirstName.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Gender.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Hobbies.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Hometown.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/LastName.php delete mode 100755 library/vendor/Zend/Gdata/YouTube/Extension/Link.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Location.php delete mode 100755 library/vendor/Zend/Gdata/YouTube/Extension/MediaContent.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/MediaCredit.php delete mode 100755 library/vendor/Zend/Gdata/YouTube/Extension/MediaGroup.php delete mode 100755 library/vendor/Zend/Gdata/YouTube/Extension/MediaRating.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Movies.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Music.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/NoEmbed.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Occupation.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/PlaylistId.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/PlaylistTitle.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Position.php delete mode 100755 library/vendor/Zend/Gdata/YouTube/Extension/Private.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/QueryString.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Racy.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Recorded.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Relationship.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/ReleaseDate.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/School.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/State.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Statistics.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Status.php delete mode 100755 library/vendor/Zend/Gdata/YouTube/Extension/Token.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Uploaded.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/Username.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/Extension/VideoId.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/InboxEntry.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/InboxFeed.php delete mode 100755 library/vendor/Zend/Gdata/YouTube/MediaEntry.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/PlaylistListEntry.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/PlaylistListFeed.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/PlaylistVideoEntry.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/PlaylistVideoFeed.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/SubscriptionEntry.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/SubscriptionFeed.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/UserProfileEntry.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/VideoEntry.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/VideoFeed.php delete mode 100644 library/vendor/Zend/Gdata/YouTube/VideoQuery.php diff --git a/library/vendor/Zend/Gdata/Analytics.php b/library/vendor/Zend/Gdata/Analytics.php deleted file mode 100644 index 57cdaa1e0..000000000 --- a/library/vendor/Zend/Gdata/Analytics.php +++ /dev/null @@ -1,130 +0,0 @@ -registerPackage('Zend_Gdata_Analytics'); - $this->registerPackage('Zend_Gdata_Analytics_Extension'); - parent::__construct($client, $applicationId); - $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); - } - - /** - * Retrieve account feed object - * - * @param string|Zend_Uri_Uri $uri - * @return Zend_Gdata_Analytics_AccountFeed - */ - public function getAccountFeed($uri = self::ANALYTICS_ACCOUNT_FEED_URI) - { - if ($uri instanceof Query) { - $uri = $uri->getQueryUrl(); - } - return parent::getFeed($uri, 'Zend_Gdata_Analytics_AccountFeed'); - } - - /** - * Retrieve data feed object - * - * @param string|Zend_Uri_Uri $uri - * @return Zend_Gdata_Analytics_DataFeed - */ - public function getDataFeed($uri = self::ANALYTICS_FEED_URI) - { - if ($uri instanceof Query) { - $uri = $uri->getQueryUrl(); - } - return parent::getFeed($uri, 'Zend_Gdata_Analytics_DataFeed'); - } - - /** - * Returns a new DataQuery object. - * - * @return Zend_Gdata_Analytics_DataQuery - */ - public function newDataQuery() - { - return new Zend_Gdata_Analytics_DataQuery(); - } - - /** - * Returns a new AccountQuery object. - * - * @return Zend_Gdata_Analytics_AccountQuery - */ - public function newAccountQuery() - { - return new Zend_Gdata_Analytics_AccountQuery(); - } -} diff --git a/library/vendor/Zend/Gdata/Analytics/AccountEntry.php b/library/vendor/Zend/Gdata/Analytics/AccountEntry.php deleted file mode 100644 index 964b4ce8c..000000000 --- a/library/vendor/Zend/Gdata/Analytics/AccountEntry.php +++ /dev/null @@ -1,97 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Analytics::$namespaces); - parent::__construct($element); - } - - /** - * @param DOMElement $child - * @return void - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName){ - case $this->lookupNamespace('analytics') . ':' . 'property'; - $property = new Zend_Gdata_Analytics_Extension_Property(); - $property->transferFromDOM($child); - $this->{$property->getName()} = $property; - break; - case $this->lookupNamespace('analytics') . ':' . 'tableId'; - $tableId = new Zend_Gdata_Analytics_Extension_TableId(); - $tableId->transferFromDOM($child); - $this->_tableId = $tableId; - break; - case $this->lookupNamespace('ga') . ':' . 'goal'; - $goal = new Zend_Gdata_Analytics_Extension_Goal(); - $goal->transferFromDOM($child); - $this->_goal = $goal; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } -} diff --git a/library/vendor/Zend/Gdata/Analytics/AccountFeed.php b/library/vendor/Zend/Gdata/Analytics/AccountFeed.php deleted file mode 100644 index 361a670ca..000000000 --- a/library/vendor/Zend/Gdata/Analytics/AccountFeed.php +++ /dev/null @@ -1,56 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Analytics::$namespaces); - parent::__construct($element); - } -} diff --git a/library/vendor/Zend/Gdata/Analytics/AccountQuery.php b/library/vendor/Zend/Gdata/Analytics/AccountQuery.php deleted file mode 100644 index cf8b3229c..000000000 --- a/library/vendor/Zend/Gdata/Analytics/AccountQuery.php +++ /dev/null @@ -1,189 +0,0 @@ -_accountId = $accountId; - return $this; - } - - /** - * @return string - */ - public function getAccountId() - { - return $this->_accountId; - } - - /** - * @param string $webpropertyId - * @return Zend_Gdata_Analytics_AccountQuery - */ - public function setWebpropertyId($webpropertyId) - { - $this->_webpropertyId = $webpropertyId; - return $this; - } - - /** - * @return string - */ - public function getWebpropertyId() - { - return $this->_webpropertyId; - } - - /** - * @param string $profileId - * @return Zend_Gdata_Analytics_AccountQuery - */ - public function setProfileId($profileId) - { - $this->_profileId = $profileId; - return $this; - } - - /** - * @return string - */ - public function getProfileId() - { - return $this->_profileId; - } - - /** - * @param string $accountId - * @return Zend_Gdata_Analytics_AccountQuery - */ - public function webproperties($accountId = '~all') - { - $this->_webproperties = true; - $this->setAccountId($accountId); - return $this; - } - - /** - * @param string $webpropertyId - * @param string $accountId - * @return Zend_Gdata_Analytics_AccountQuery - */ - public function profiles($webpropertyId = '~all', $accountId = '~all') - { - $this->_profiles = true; - if (null !== $accountId) { - $this->setAccountId($accountId); - } - $this->setWebpropertyId($webpropertyId); - return $this; - } - - /** - * @param string $webpropertyId - * @param string $accountId - * @param string $accountId - * @return Zend_Gdata_Analytics_AccountQuery - */ - public function goals($profileId = '~all', $webpropertyId = '~all', $accountId = '~all') - { - $this->_goals = true; - if (null !== $accountId) { - $this->setAccountId($accountId); - } - if (null !== $webpropertyId) { - $this->setWebpropertyId($webpropertyId); - } - $this->setProfileId($profileId); - return $this; - } - - /** - * @return string url - */ - public function getQueryUrl() - { - $url = $this->_defaultFeedUri; - - // add account id - if ($this->_webproperties or $this->_profiles or $this->_goals) { - $url .= '/' . $this->_accountId . '/webproperties'; - } - - if ($this->_profiles or $this->_goals) { - $url .= '/' . $this->_webpropertyId . '/profiles'; - } - - if ($this->_goals) { - $url .= '/' . $this->_profileId . '/goals'; - } - - $url .= $this->getQueryString(); - return $url; - } -} diff --git a/library/vendor/Zend/Gdata/Analytics/DataEntry.php b/library/vendor/Zend/Gdata/Analytics/DataEntry.php deleted file mode 100644 index ec85f20d9..000000000 --- a/library/vendor/Zend/Gdata/Analytics/DataEntry.php +++ /dev/null @@ -1,115 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Analytics::$namespaces); - parent::__construct($element); - } - - /** - * @param DOMElement $child - * @return void - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('analytics') . ':' . 'dimension'; - $dimension = new Zend_Gdata_Analytics_Extension_Dimension(); - $dimension->transferFromDOM($child); - $this->_dimensions[] = $dimension; - break; - case $this->lookupNamespace('analytics') . ':' . 'metric'; - $metric = new Zend_Gdata_Analytics_Extension_Metric(); - $metric->transferFromDOM($child); - $this->_metrics[] = $metric; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * @param string $name - * @return mixed - */ - public function getDimension($name) - { - foreach ($this->_dimensions as $dimension) { - if ($dimension->getName() == $name) { - return $dimension; - } - } - return null; - } - - /** - * @param string $name - * @return mixed - */ - public function getMetric($name) - { - foreach ($this->_metrics as $metric) { - if ($metric->getName() == $name) { - return $metric; - } - } - return null; - } - - /** - * @param string $name - * @return mixed - */ - public function getValue($name) - { - if (null !== ($metric = $this->getMetric($name))) { - return $metric; - } - return $this->getDimension($name); - } -} diff --git a/library/vendor/Zend/Gdata/Analytics/DataFeed.php b/library/vendor/Zend/Gdata/Analytics/DataFeed.php deleted file mode 100644 index 7ec123cc7..000000000 --- a/library/vendor/Zend/Gdata/Analytics/DataFeed.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Analytics::$namespaces); - parent::__construct($element); - } -} diff --git a/library/vendor/Zend/Gdata/Analytics/DataQuery.php b/library/vendor/Zend/Gdata/Analytics/DataQuery.php deleted file mode 100644 index 8cfd9a190..000000000 --- a/library/vendor/Zend/Gdata/Analytics/DataQuery.php +++ /dev/null @@ -1,402 +0,0 @@ -"; - const LESS = ">"; - const GREATER_EQUAL = ">="; - const LESS_EQUAL = "<="; - const CONTAINS = "=@"; - const CONTAINS_NOT ="!@"; - const REGULAR ="=~"; - const REGULAR_NOT ="!~"; - - /** - * @var string - */ - protected $_profileId; - /** - * @var array - */ - protected $_dimensions = array(); - /** - * @var array - */ - protected $_metrics = array(); - /** - * @var array - */ - protected $_sort = array(); - /** - * @var array - */ - protected $_filters = array(); - - /** - * @param string $id - * @return Zend_Gdata_Analytics_DataQuery - */ - public function setProfileId($id) - { - $this->_profileId = $id; - return $this; - } - - /** - * @return string - */ - public function getProfileId() - { - return $this->_profileId; - } - - /** - * @param string $dimension - * @return Zend_Gdata_Analytics_DataQuery - */ - public function addDimension($dimension) - { - $this->_dimensions[$dimension] = true; - return $this; - } - - /** - * @param string $metric - * @return Zend_Gdata_Analytics_DataQuery - */ - public function addMetric($metric) - { - $this->_metrics[$metric] = true; - return $this; - } - - /** - * @return array - */ - public function getDimensions() - { - return $this->_dimensions; - } - - /** - * @return array - */ - public function getMetrics() - { - return $this->_metrics; - } - - /** - * @param string $dimension - * @return Zend_Gdata_Analytics_DataQuery - */ - public function removeDimension($dimension) - { - unset($this->_dimensions[$dimension]); - return $this; - } - /** - * @param string $metric - * @return Zend_Gdata_Analytics_DataQuery - */ - public function removeMetric($metric) - { - unset($this->_metrics[$metric]); - return $this; - } - /** - * @param string $value - * @return Zend_Gdata_Analytics_DataQuery - */ - public function setStartDate($date) - { - $this->setParam("start-date", $date); - return $this; - } - /** - * @param string $value - * @return Zend_Gdata_Analytics_DataQuery - */ - public function setEndDate($date) - { - $this->setParam("end-date", $date); - return $this; - } - - /** - * @param string $filter - * @return Zend_Gdata_Analytics_DataQuery - */ - public function addFilter($filter) - { - $this->_filters[] = array($filter, true); - return $this; - } - - /** - * @param string $filter - * @return Zend_Gdata_Analytics_DataQuery - */ - public function addOrFilter($filter) - { - $this->_filters[] = array($filter, false); - return $this; - } - - /** - * @param string $sort - * @param boolean[optional] $descending - * @return Zend_Gdata_Analytics_DataQuery - */ - public function addSort($sort, $descending=false) - { - // add to sort storage - $this->_sort[] = ($descending?'-':'').$sort; - return $this; - } - - /** - * @return Zend_Gdata_Analytics_DataQuery - */ - public function clearSort() - { - $this->_sort = array(); - return $this; - } - - /** - * @param string $segment - * @return Zend_Gdata_Analytics_DataQuery - */ - public function setSegment($segment) - { - $this->setParam('segment', $segment); - return $this; - } - - /** - * @return string url - */ - public function getQueryUrl() - { - $uri = $this->_defaultFeedUri; - if (isset($this->_url)) { - $uri = $this->_url; - } - - $dimensions = $this->getDimensions(); - if (!empty($dimensions)) { - $this->setParam('dimensions', implode(",", array_keys($dimensions))); - } - - $metrics = $this->getMetrics(); - if (!empty($metrics)) { - $this->setParam('metrics', implode(",", array_keys($metrics))); - } - - // profile id (ga:tableId) - if ($this->getProfileId() != null) { - $this->setParam('ids', 'ga:'.ltrim($this->getProfileId(), "ga:")); - } - - // sorting - if ($this->_sort) { - $this->setParam('sort', implode(",", $this->_sort)); - } - - // filtering - $filters = ""; - foreach ($this->_filters as $filter) { - $filters.=($filter[1]===true?';':',').$filter[0]; - } - - if ($filters!="") { - $this->setParam('filters', ltrim($filters, ",;")); - } - - $uri .= $this->getQueryString(); - return $uri; - } -} diff --git a/library/vendor/Zend/Gdata/Analytics/Extension/Dimension.php b/library/vendor/Zend/Gdata/Analytics/Extension/Dimension.php deleted file mode 100644 index 7be057679..000000000 --- a/library/vendor/Zend/Gdata/Analytics/Extension/Dimension.php +++ /dev/null @@ -1,39 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Analytics::$namespaces); - parent::__construct(); - } - - /** - * @return string - */ - public function __toString() - { - $attribs = $this->getExtensionAttributes(); - return $attribs['name']['value']; - } -} diff --git a/library/vendor/Zend/Gdata/Analytics/Extension/Metric.php b/library/vendor/Zend/Gdata/Analytics/Extension/Metric.php deleted file mode 100644 index 63c9a68cd..000000000 --- a/library/vendor/Zend/Gdata/Analytics/Extension/Metric.php +++ /dev/null @@ -1,53 +0,0 @@ -localName) { - case 'name': - $this->_name = $attribute->nodeValue; - break; - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } -} diff --git a/library/vendor/Zend/Gdata/Analytics/Extension/Property.php b/library/vendor/Zend/Gdata/Analytics/Extension/Property.php deleted file mode 100644 index 6a7cb7a7b..000000000 --- a/library/vendor/Zend/Gdata/Analytics/Extension/Property.php +++ /dev/null @@ -1,121 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Analytics::$namespaces); - parent::__construct(); - $this->_value = $value; - $this->_name = $name; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'name': - $name = explode(':', $attribute->nodeValue); - $this->_name = end($name); - break; - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's value attribute. - * - * @return string The value associated with this attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Analytics_Extension_Property The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * @param string $name - * @return Zend_Gdata_Analytics_Extension_Property - */ - public function setName($name) - { - $this->_name = $name; - return $this; - } - - /** - * @return string - */ - public function getName() - { - return $this->_name; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } -} diff --git a/library/vendor/Zend/Gdata/Analytics/Extension/TableId.php b/library/vendor/Zend/Gdata/Analytics/Extension/TableId.php deleted file mode 100644 index 6890d8bfa..000000000 --- a/library/vendor/Zend/Gdata/Analytics/Extension/TableId.php +++ /dev/null @@ -1,111 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Analytics::$namespaces); - parent::__construct(); - $this->_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value != null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeChildFromDOM($child) - { - $this->_value = $child->nodeValue; - } - - /** - * Get the value for this element's value attribute. - * - * @return string The value associated with this attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Calendar_Extension_Timezone The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } -} diff --git a/library/vendor/Zend/Gdata/App.php b/library/vendor/Zend/Gdata/App.php deleted file mode 100644 index 8b7c1f442..000000000 --- a/library/vendor/Zend/Gdata/App.php +++ /dev/null @@ -1,1219 +0,0 @@ -= 1 is considered valid. - * - * Under most circumtances, this will be automatically set by - * Zend_Gdata_App subclasses. - * - * @see setMajorProtocolVersion() - * @see getMajorProtocolVersion() - */ - protected $_majorProtocolVersion; - - /** - * Indicates the minor protocol version that should be used. Can be set - * to either an integer >= 0, or NULL if no minor version should be sent - * to the server. - * - * At present, this field is not used by any Google services, but may be - * used in the future. - * - * Under most circumtances, this will be automatically set by - * Zend_Gdata_App subclasses. - * - * @see setMinorProtocolVersion() - * @see getMinorProtocolVersion() - */ - protected $_minorProtocolVersion; - - /** - * Whether we want to use XML to object mapping when fetching data. - * - * @var boolean - */ - protected $_useObjectMapping = true; - - /** - * Create Gdata object - * - * @param Zend_Http_Client $client - * @param string $applicationId - */ - public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0') - { - $this->setHttpClient($client, $applicationId); - // Set default protocol version. Subclasses should override this as - // needed once a given service supports a new version. - $this->setMajorProtocolVersion(self::DEFAULT_MAJOR_PROTOCOL_VERSION); - $this->setMinorProtocolVersion(self::DEFAULT_MINOR_PROTOCOL_VERSION); - } - - /** - * Adds a Zend Framework package to the $_registeredPackages array. - * This array is searched when using the magic __call method below - * to instantiante new objects. - * - * @param string $name The name of the package (eg Zend_Gdata_App) - * @return void - */ - public function registerPackage($name) - { - array_unshift($this->_registeredPackages, $name); - } - - /** - * Retrieve feed as string or object - * - * @param string $uri The uri from which to retrieve the feed - * @param string $className The class which is used as the return type - * @return string|Zend_Gdata_App_Feed Returns string only if the object - * mapping has been disabled explicitly - * by passing false to the - * useObjectMapping() function. - */ - public function getFeed($uri, $className='Zend_Gdata_App_Feed') - { - return $this->importUrl($uri, $className, null); - } - - /** - * Retrieve entry as string or object - * - * @param string $uri - * @param string $className The class which is used as the return type - * @return string|Zend_Gdata_App_Entry Returns string only if the object - * mapping has been disabled explicitly - * by passing false to the - * useObjectMapping() function. - */ - public function getEntry($uri, $className='Zend_Gdata_App_Entry') - { - return $this->importUrl($uri, $className, null); - } - - /** - * Get the Zend_Http_Client object used for communication - * - * @return Zend_Http_Client - */ - public function getHttpClient() - { - return $this->_httpClient; - } - - /** - * Set the Zend_Http_Client object used for communication - * - * @param Zend_Http_Client $client The client to use for communication - * @throws Zend_Gdata_App_HttpException - * @return Zend_Gdata_App Provides a fluent interface - */ - public function setHttpClient($client, - $applicationId = 'MyCompany-MyApp-1.0') - { - if ($client === null) { - $client = new Zend_Http_Client(); - } - if (!$client instanceof Zend_Http_Client) { - throw new Zend_Gdata_App_HttpException( - 'Argument is not an instance of Zend_Http_Client.'); - } - $userAgent = $applicationId . ' Zend_Framework_Gdata/' . - Zend_Version::VERSION; - $client->setHeaders('User-Agent', $userAgent); - $client->setConfig(array( - 'strictredirects' => true - ) - ); - $this->_httpClient = $client; - self::setStaticHttpClient($client); - return $this; - } - - /** - * Set the static HTTP client instance - * - * Sets the static HTTP client object to use for retrieving the feed. - * - * @param Zend_Http_Client $httpClient - * @return void - */ - public static function setStaticHttpClient(Zend_Http_Client $httpClient) - { - self::$_staticHttpClient = $httpClient; - } - - - /** - * Gets the HTTP client object. If none is set, a new Zend_Http_Client will be used. - * - * @return Zend_Http_Client - */ - public static function getStaticHttpClient() - { - if (!self::$_staticHttpClient instanceof Zend_Http_Client) { - $client = new Zend_Http_Client(); - $userAgent = 'Zend_Framework_Gdata/' . Zend_Version::VERSION; - $client->setHeaders('User-Agent', $userAgent); - $client->setConfig(array( - 'strictredirects' => true - ) - ); - self::$_staticHttpClient = $client; - } - return self::$_staticHttpClient; - } - - /** - * Toggle using POST instead of PUT and DELETE HTTP methods - * - * Some feed implementations do not accept PUT and DELETE HTTP - * methods, or they can't be used because of proxies or other - * measures. This allows turning on using POST where PUT and - * DELETE would normally be used; in addition, an - * X-Method-Override header will be sent with a value of PUT or - * DELETE as appropriate. - * - * @param boolean $override Whether to override PUT and DELETE with POST. - * @return void - */ - public static function setHttpMethodOverride($override = true) - { - self::$_httpMethodOverride = $override; - } - - /** - * Get the HTTP override state - * - * @return boolean - */ - public static function getHttpMethodOverride() - { - return self::$_httpMethodOverride; - } - - /** - * Toggle requesting gzip encoded responses - * - * @param boolean $enabled Whether or not to enable gzipped responses - * @return void - */ - public static function setGzipEnabled($enabled = false) - { - if ($enabled && !function_exists('gzinflate')) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'You cannot enable gzipped responses if the zlib module ' . - 'is not enabled in your PHP installation.'); - - } - self::$_gzipEnabled = $enabled; - } - - /** - * Get the HTTP override state - * - * @return boolean - */ - public static function getGzipEnabled() - { - return self::$_gzipEnabled; - } - - /** - * Get whether to use verbose exception messages - * - * In the case of HTTP errors, use the body of the HTTP response - * in the exception message. - * - * @return boolean - */ - public static function getVerboseExceptionMessages() - { - return self::$_verboseExceptionMessages; - } - - /** - * Set whether to use verbose exception messages - * - * In the case of HTTP errors, use the body of the HTTP response - * in the exception message. - * - * @param boolean $verbose Whether to use verbose exception messages - */ - public static function setVerboseExceptionMessages($verbose) - { - self::$_verboseExceptionMessages = $verbose; - } - - /** - * Set the maximum number of redirects to follow during HTTP operations - * - * @param int $maxRedirects Maximum number of redirects to follow - * @return void - */ - public static function setMaxRedirects($maxRedirects) - { - self::$_maxRedirects = $maxRedirects; - } - - /** - * Get the maximum number of redirects to follow during HTTP operations - * - * @return int Maximum number of redirects to follow - */ - public static function getMaxRedirects() - { - return self::$_maxRedirects; - } - - /** - * Set the major protocol version that should be used. Values < 1 will - * cause a Zend_Gdata_App_InvalidArgumentException to be thrown. - * - * @see _majorProtocolVersion - * @param int $value The major protocol version to use. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function setMajorProtocolVersion($value) - { - if (!($value >= 1)) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Major protocol version must be >= 1'); - } - $this->_majorProtocolVersion = $value; - } - - /** - * Get the major protocol version that is in use. - * - * @see _majorProtocolVersion - * @return int The major protocol version in use. - */ - public function getMajorProtocolVersion() - { - return $this->_majorProtocolVersion; - } - - /** - * Set the minor protocol version that should be used. If set to NULL, no - * minor protocol version will be sent to the server. Values < 0 will - * cause a Zend_Gdata_App_InvalidArgumentException to be thrown. - * - * @see _minorProtocolVersion - * @param (int|NULL) $value The minor protocol version to use. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function setMinorProtocolVersion($value) - { - if (!($value >= 0)) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Minor protocol version must be >= 0'); - } - $this->_minorProtocolVersion = $value; - } - - /** - * Get the minor protocol version that is in use. - * - * @see _minorProtocolVersion - * @return (int|NULL) The major protocol version in use, or NULL if no - * minor version is specified. - */ - public function getMinorProtocolVersion() - { - return $this->_minorProtocolVersion; - } - - /** - * Provides pre-processing for HTTP requests to APP services. - * - * 1. Checks the $data element and, if it's an entry, extracts the XML, - * multipart data, edit link (PUT,DELETE), etc. - * 2. If $data is a string, sets the default content-type header as - * 'application/atom+xml' if it's not already been set. - * 3. Adds a x-http-method override header and changes the HTTP method - * to 'POST' if necessary as per getHttpMethodOverride() - * - * @param string $method The HTTP method for the request - 'GET', 'POST', - * 'PUT', 'DELETE' - * @param string $url The URL to which this request is being performed, - * or null if found in $data - * @param array $headers An associative array of HTTP headers for this - * request - * @param mixed $data The Zend_Gdata_App_Entry or XML for the - * body of the request - * @param string $contentTypeOverride The override value for the - * content type of the request body - * @return array An associative array containing the determined - * 'method', 'url', 'data', 'headers', 'contentType' - */ - public function prepareRequest($method, - $url = null, - $headers = array(), - $data = null, - $contentTypeOverride = null) - { - // As a convenience, if $headers is null, we'll convert it back to - // an empty array. - if ($headers === null) { - $headers = array(); - } - - $rawData = null; - $finalContentType = null; - if ($url == null) { - $url = $this->_defaultPostUri; - } - - if (is_string($data)) { - $rawData = $data; - if ($contentTypeOverride === null) { - $finalContentType = 'application/atom+xml'; - } - } elseif ($data instanceof Zend_Gdata_App_MediaEntry) { - $rawData = $data->encode(); - if ($data->getMediaSource() !== null) { - $finalContentType = $rawData->getContentType(); - $headers['MIME-version'] = '1.0'; - $headers['Slug'] = $data->getMediaSource()->getSlug(); - } else { - $finalContentType = 'application/atom+xml'; - } - if ($method == 'PUT' || $method == 'DELETE') { - $editLink = $data->getEditLink(); - if ($editLink != null && $url == null) { - $url = $editLink->getHref(); - } - } - } elseif ($data instanceof Zend_Gdata_App_Entry) { - $rawData = $data->saveXML(); - $finalContentType = 'application/atom+xml'; - if ($method == 'PUT' || $method == 'DELETE') { - $editLink = $data->getEditLink(); - if ($editLink != null) { - $url = $editLink->getHref(); - } - } - } elseif ($data instanceof Zend_Gdata_App_MediaSource) { - $rawData = $data->encode(); - if ($data->getSlug() !== null) { - $headers['Slug'] = $data->getSlug(); - } - $finalContentType = $data->getContentType(); - } - - if ($method == 'DELETE') { - $rawData = null; - } - - // Set an If-Match header if: - // - This isn't a DELETE - // - If this isn't a GET, the Etag isn't weak - // - A similar header (If-Match/If-None-Match) hasn't already been - // set. - if ($method != 'DELETE' && ( - !array_key_exists('If-Match', $headers) && - !array_key_exists('If-None-Match', $headers) - ) ) { - $allowWeak = $method == 'GET'; - if ($ifMatchHeader = $this->generateIfMatchHeaderData( - $data, $allowWeak)) { - $headers['If-Match'] = $ifMatchHeader; - } - } - - if ($method != 'POST' && $method != 'GET' && Zend_Gdata_App::getHttpMethodOverride()) { - $headers['x-http-method-override'] = $method; - $method = 'POST'; - } else { - $headers['x-http-method-override'] = null; - } - - if ($contentTypeOverride != null) { - $finalContentType = $contentTypeOverride; - } - - return array('method' => $method, 'url' => $url, - 'data' => $rawData, 'headers' => $headers, - 'contentType' => $finalContentType); - } - - /** - * Performs a HTTP request using the specified method - * - * @param string $method The HTTP method for the request - 'GET', 'POST', - * 'PUT', 'DELETE' - * @param string $url The URL to which this request is being performed - * @param array $headers An associative array of HTTP headers - * for this request - * @param string $body The body of the HTTP request - * @param string $contentType The value for the content type - * of the request body - * @param int $remainingRedirects Number of redirects to follow if request - * s results in one - * @return Zend_Http_Response The response object - */ - public function performHttpRequest($method, $url, $headers = null, - $body = null, $contentType = null, $remainingRedirects = null) - { - if ($remainingRedirects === null) { - $remainingRedirects = self::getMaxRedirects(); - } - if ($headers === null) { - $headers = array(); - } - // Append a Gdata version header if protocol v2 or higher is in use. - // (Protocol v1 does not use this header.) - $major = $this->getMajorProtocolVersion(); - $minor = $this->getMinorProtocolVersion(); - if ($major >= 2) { - $headers['GData-Version'] = $major + - (($minor === null) ? '.' + $minor : ''); - } - - // check the overridden method - if (($method == 'POST' || $method == 'PUT') && $body === null && - $headers['x-http-method-override'] != 'DELETE') { - throw new Zend_Gdata_App_InvalidArgumentException( - 'You must specify the data to post as either a ' . - 'string or a child of Zend_Gdata_App_Entry'); - } - if ($url === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'You must specify an URI to which to post.'); - } - $headers['Content-Type'] = $contentType; - if (Zend_Gdata_App::getGzipEnabled()) { - // some services require the word 'gzip' to be in the user-agent - // header in addition to the accept-encoding header - if (strpos($this->_httpClient->getHeader('User-Agent'), - 'gzip') === false) { - $headers['User-Agent'] = - $this->_httpClient->getHeader('User-Agent') . ' (gzip)'; - } - $headers['Accept-encoding'] = 'gzip, deflate'; - } else { - $headers['Accept-encoding'] = 'identity'; - } - - // Make sure the HTTP client object is 'clean' before making a request - // In addition to standard headers to reset via resetParameters(), - // also reset the Slug and If-Match headers - $this->_httpClient->resetParameters(); - $this->_httpClient->setHeaders(array('Slug', 'If-Match')); - - // Set the params for the new request to be performed - $this->_httpClient->setHeaders($headers); - $uri = Zend_Uri_Http::fromString($url); - preg_match("/^(.*?)(\?.*)?$/", $url, $matches); - $this->_httpClient->setUri($matches[1]); - $queryArray = $uri->getQueryAsArray(); - foreach ($queryArray as $name => $value) { - $this->_httpClient->setParameterGet($name, $value); - } - - - $this->_httpClient->setConfig(array('maxredirects' => 0)); - - // Set the proper adapter if we are handling a streaming upload - $usingMimeStream = false; - $oldHttpAdapter = null; - - if ($body instanceof Zend_Gdata_MediaMimeStream) { - $usingMimeStream = true; - $this->_httpClient->setRawDataStream($body, $contentType); - $oldHttpAdapter = $this->_httpClient->getAdapter(); - - if ($oldHttpAdapter instanceof Zend_Http_Client_Adapter_Proxy) { - $newAdapter = new Zend_Gdata_HttpAdapterStreamingProxy(); - } else { - $newAdapter = new Zend_Gdata_HttpAdapterStreamingSocket(); - } - $this->_httpClient->setAdapter($newAdapter); - } else { - $this->_httpClient->setRawData($body, $contentType); - } - - try { - $response = $this->_httpClient->request($method); - // reset adapter - if ($usingMimeStream) { - $this->_httpClient->setAdapter($oldHttpAdapter); - } - } catch (Zend_Http_Client_Exception $e) { - // reset adapter - if ($usingMimeStream) { - $this->_httpClient->setAdapter($oldHttpAdapter); - } - throw new Zend_Gdata_App_HttpException($e->getMessage(), $e); - } - if ($response->isRedirect() && $response->getStatus() != '304') { - if ($remainingRedirects > 0) { - $newUrl = $response->getHeader('Location'); - $response = $this->performHttpRequest( - $method, $newUrl, $headers, $body, - $contentType, $remainingRedirects); - } else { - throw new Zend_Gdata_App_HttpException( - 'Number of redirects exceeds maximum', null, $response); - } - } - if (!$response->isSuccessful()) { - $exceptionMessage = 'Expected response code 200, got ' . - $response->getStatus(); - if (self::getVerboseExceptionMessages()) { - $exceptionMessage .= "\n" . $response->getBody(); - } - $exception = new Zend_Gdata_App_HttpException($exceptionMessage); - $exception->setResponse($response); - throw $exception; - } - return $response; - } - - /** - * Imports a feed located at $uri. - * - * @param string $uri - * @param Zend_Http_Client $client The client used for communication - * @param string $className The class which is used as the return type - * @param bool $useObjectMapping Enable/disable the use of XML to object mapping. - * @throws Zend_Gdata_App_Exception - * @return string|Zend_Gdata_App_Feed Returns string only if the fourth - * parameter ($useObjectMapping) is set - * to false. - */ - public static function import($uri, $client = null, - $className='Zend_Gdata_App_Feed', $useObjectMapping = true) - { - $app = new Zend_Gdata_App($client); - $requestData = $app->prepareRequest('GET', $uri); - $response = $app->performHttpRequest( - $requestData['method'], $requestData['url']); - - $feedContent = $response->getBody(); - if (false === $useObjectMapping) { - return $feedContent; - } - $feed = self::importString($feedContent, $className); - if ($client != null) { - $feed->setHttpClient($client); - } - return $feed; - } - - /** - * Imports the specified URL (non-statically). - * - * @param string $url The URL to import - * @param string $className The class which is used as the return type - * @param array $extraHeaders Extra headers to add to the request, as an - * array of string-based key/value pairs. - * @throws Zend_Gdata_App_Exception - * @return string|Zend_Gdata_App_Feed Returns string only if the object - * mapping has been disabled explicitly - * by passing false to the - * useObjectMapping() function. - */ - public function importUrl($url, $className='Zend_Gdata_App_Feed', - $extraHeaders = array()) - { - $response = $this->get($url, $extraHeaders); - - $feedContent = $response->getBody(); - if (!$this->_useObjectMapping) { - return $feedContent; - } - - $protocolVersionStr = $response->getHeader('GData-Version'); - $majorProtocolVersion = null; - $minorProtocolVersion = null; - if ($protocolVersionStr !== null) { - // Extract protocol major and minor version from header - $delimiterPos = strpos($protocolVersionStr, '.'); - $length = strlen($protocolVersionStr); - $major = substr($protocolVersionStr, 0, $delimiterPos); - $minor = substr($protocolVersionStr, $delimiterPos + 1, $length); - $majorProtocolVersion = $major; - $minorProtocolVersion = $minor; - } - - $feed = self::importString($feedContent, $className, - $majorProtocolVersion, $minorProtocolVersion); - if ($this->getHttpClient() != null) { - $feed->setHttpClient($this->getHttpClient()); - } - $etag = $response->getHeader('ETag'); - if ($etag !== null) { - $feed->setEtag($etag); - } - return $feed; - } - - - /** - * Imports a feed represented by $string. - * - * @param string $string - * @param string $className The class which is used as the return type - * @param integer $majorProcolVersion (optional) The major protocol version - * of the data model object that is to be created. - * @param integer $minorProcolVersion (optional) The minor protocol version - * of the data model object that is to be created. - * @throws Zend_Gdata_App_Exception - * @return Zend_Gdata_App_Feed - */ - public static function importString($string, - $className='Zend_Gdata_App_Feed', $majorProtocolVersion = null, - $minorProtocolVersion = null) - { - if (!class_exists($className, false)) { - @Zend_Loader::loadClass($className); - } - - // Load the feed as an XML DOMDocument object - @ini_set('track_errors', 1); - $doc = new DOMDocument(); - $doc = @Zend_Xml_Security::scan($string, $doc); - @ini_restore('track_errors'); - - if (!$doc) { - throw new Zend_Gdata_App_Exception( - "DOMDocument cannot parse XML: $php_errormsg"); - } - - $feed = new $className(); - $feed->setMajorProtocolVersion($majorProtocolVersion); - $feed->setMinorProtocolVersion($minorProtocolVersion); - $feed->transferFromXML($string); - $feed->setHttpClient(self::getstaticHttpClient()); - return $feed; - } - - - /** - * Imports a feed from a file located at $filename. - * - * @param string $filename - * @param string $className The class which is used as the return type - * @param string $useIncludePath Whether the include_path should be searched - * @throws Zend_Gdata_App_Exception - * @return Zend_Gdata_App_Feed - */ - public static function importFile($filename, - $className='Zend_Gdata_App_Feed', $useIncludePath = false) - { - @ini_set('track_errors', 1); - $feed = @file_get_contents($filename, $useIncludePath); - @ini_restore('track_errors'); - if ($feed === false) { - throw new Zend_Gdata_App_Exception( - "File could not be loaded: $php_errormsg"); - } - return self::importString($feed, $className); - } - - /** - * GET a URI using client object. - * - * @param string $uri GET URI - * @param array $extraHeaders Extra headers to add to the request, as an - * array of string-based key/value pairs. - * @throws Zend_Gdata_App_HttpException - * @return Zend_Http_Response - */ - public function get($uri, $extraHeaders = array()) - { - $requestData = $this->prepareRequest('GET', $uri, $extraHeaders); - return $this->performHttpRequest( - $requestData['method'], $requestData['url'], - $requestData['headers']); - } - - /** - * POST data with client object - * - * @param mixed $data The Zend_Gdata_App_Entry or XML to post - * @param string $uri POST URI - * @param array $headers Additional HTTP headers to insert. - * @param string $contentType Content-type of the data - * @param array $extraHeaders Extra headers to add to the request, as an - * array of string-based key/value pairs. - * @return Zend_Http_Response - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function post($data, $uri = null, $remainingRedirects = null, - $contentType = null, $extraHeaders = null) - { - $requestData = $this->prepareRequest( - 'POST', $uri, $extraHeaders, $data, $contentType); - return $this->performHttpRequest( - $requestData['method'], $requestData['url'], - $requestData['headers'], $requestData['data'], - $requestData['contentType']); - } - - /** - * PUT data with client object - * - * @param mixed $data The Zend_Gdata_App_Entry or XML to post - * @param string $uri PUT URI - * @param array $headers Additional HTTP headers to insert. - * @param string $contentType Content-type of the data - * @param array $extraHeaders Extra headers to add to the request, as an - * array of string-based key/value pairs. - * @return Zend_Http_Response - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function put($data, $uri = null, $remainingRedirects = null, - $contentType = null, $extraHeaders = null) - { - $requestData = $this->prepareRequest( - 'PUT', $uri, $extraHeaders, $data, $contentType); - return $this->performHttpRequest( - $requestData['method'], $requestData['url'], - $requestData['headers'], $requestData['data'], - $requestData['contentType']); - } - - /** - * DELETE entry with client object - * - * @param mixed $data The Zend_Gdata_App_Entry or URL to delete - * @return void - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function delete($data, $remainingRedirects = null) - { - if (is_string($data)) { - $requestData = $this->prepareRequest('DELETE', $data); - } else { - $headers = array(); - - $requestData = $this->prepareRequest( - 'DELETE', null, $headers, $data); - } - return $this->performHttpRequest($requestData['method'], - $requestData['url'], - $requestData['headers'], - '', - $requestData['contentType'], - $remainingRedirects); - } - - /** - * Inserts an entry to a given URI and returns the response as a - * fully formed Entry. - * - * @param mixed $data The Zend_Gdata_App_Entry or XML to post - * @param string $uri POST URI - * @param string $className The class of entry to be returned. - * @param array $extraHeaders Extra headers to add to the request, as an - * array of string-based key/value pairs. - * @return Zend_Gdata_App_Entry The entry returned by the service after - * insertion. - */ - public function insertEntry($data, $uri, $className='Zend_Gdata_App_Entry', - $extraHeaders = array()) - { - if (!class_exists($className, false)) { - @Zend_Loader::loadClass($className); - } - - $response = $this->post($data, $uri, null, null, $extraHeaders); - - $returnEntry = new $className($response->getBody()); - $returnEntry->setHttpClient(self::getstaticHttpClient()); - - $etag = $response->getHeader('ETag'); - if ($etag !== null) { - $returnEntry->setEtag($etag); - } - - return $returnEntry; - } - - /** - * Update an entry - * - * @param mixed $data Zend_Gdata_App_Entry or XML (w/ID and link rel='edit') - * @param string|null The URI to send requests to, or null if $data - * contains the URI. - * @param string|null The name of the class that should be deserialized - * from the server response. If null, then 'Zend_Gdata_App_Entry' - * will be used. - * @param array $extraHeaders Extra headers to add to the request, as an - * array of string-based key/value pairs. - * @return Zend_Gdata_App_Entry The entry returned from the server - * @throws Zend_Gdata_App_Exception - */ - public function updateEntry($data, $uri = null, $className = null, - $extraHeaders = array()) - { - if ($className === null && $data instanceof Zend_Gdata_App_Entry) { - $className = get_class($data); - } elseif ($className === null) { - $className = 'Zend_Gdata_App_Entry'; - } - - if (!class_exists($className, false)) { - @Zend_Loader::loadClass($className); - } - - $response = $this->put($data, $uri, null, null, $extraHeaders); - $returnEntry = new $className($response->getBody()); - $returnEntry->setHttpClient(self::getstaticHttpClient()); - - $etag = $response->getHeader('ETag'); - if ($etag !== null) { - $returnEntry->setEtag($etag); - } - - return $returnEntry; - } - - /** - * Provides a magic factory method to instantiate new objects with - * shorter syntax than would otherwise be required by the Zend Framework - * naming conventions. For instance, to construct a new - * Zend_Gdata_Calendar_Extension_Color, a developer simply needs to do - * $gCal->newColor(). For this magic constructor, packages are searched - * in the same order as which they appear in the $_registeredPackages - * array - * - * @param string $method The method name being called - * @param array $args The arguments passed to the call - * @throws Zend_Gdata_App_Exception - */ - public function __call($method, $args) - { - if (preg_match('/^new(\w+)/', $method, $matches)) { - $class = $matches[1]; - $foundClassName = null; - foreach ($this->_registeredPackages as $name) { - try { - // Autoloading disabled on next line for compatibility - // with magic factories. See ZF-6660. - if (!class_exists($name . '_' . $class, false)) { - @Zend_Loader::loadClass($name . '_' . $class); - } - $foundClassName = $name . '_' . $class; - break; - } catch (Zend_Exception $e) { - // package wasn't here- continue searching - } catch (ErrorException $e) { - // package wasn't here- continue searching - // @see ZF-7013 and ZF-11959 - } - } - if ($foundClassName != null) { - $reflectionObj = new ReflectionClass($foundClassName); - $instance = $reflectionObj->newInstanceArgs($args); - if ($instance instanceof Zend_Gdata_App_FeedEntryParent) { - $instance->setHttpClient($this->_httpClient); - - // Propogate version data - $instance->setMajorProtocolVersion( - $this->_majorProtocolVersion); - $instance->setMinorProtocolVersion( - $this->_minorProtocolVersion); - } - return $instance; - } else { - throw new Zend_Gdata_App_Exception( - "Unable to find '${class}' in registered packages"); - } - } else { - throw new Zend_Gdata_App_Exception("No such method ${method}"); - } - } - - /** - * Retrieve all entries for a feed, iterating through pages as necessary. - * Be aware that calling this function on a large dataset will take a - * significant amount of time to complete. In some cases this may cause - * execution to timeout without proper precautions in place. - * - * @param object $feed The feed to iterate through. - * @return mixed A new feed of the same type as the one originally - * passed in, containing all relevent entries. - */ - public function retrieveAllEntriesForFeed($feed) { - $feedClass = get_class($feed); - $reflectionObj = new ReflectionClass($feedClass); - $result = $reflectionObj->newInstance(); - do { - foreach ($feed as $entry) { - $result->addEntry($entry); - } - - $next = $feed->getLink('next'); - if ($next !== null) { - $feed = $this->getFeed($next->href, $feedClass); - } else { - $feed = null; - } - } - while ($feed != null); - return $result; - } - - /** - * This method enables logging of requests by changing the - * Zend_Http_Client_Adapter used for performing the requests. - * NOTE: This will not work if you have customized the adapter - * already to use a proxy server or other interface. - * - * @param string $logfile The logfile to use when logging the requests - */ - public function enableRequestDebugLogging($logfile) - { - $this->_httpClient->setConfig(array( - 'adapter' => 'Zend_Gdata_App_LoggingHttpClientAdapterSocket', - 'logfile' => $logfile - )); - } - - /** - * Retrieve next set of results based on a given feed. - * - * @param Zend_Gdata_App_Feed $feed The feed from which to - * retreive the next set of results. - * @param string $className (optional) The class of feed to be returned. - * If null, the next feed (if found) will be the same class as - * the feed that was given as the first argument. - * @return Zend_Gdata_App_Feed|null Returns a - * Zend_Gdata_App_Feed or null if no next set of results - * exists. - */ - public function getNextFeed($feed, $className = null) - { - $nextLink = $feed->getNextLink(); - if (!$nextLink) { - return null; - } - $nextLinkHref = $nextLink->getHref(); - - if ($className === null) { - $className = get_class($feed); - } - - return $this->getFeed($nextLinkHref, $className); - } - - /** - * Retrieve previous set of results based on a given feed. - * - * @param Zend_Gdata_App_Feed $feed The feed from which to - * retreive the previous set of results. - * @param string $className (optional) The class of feed to be returned. - * If null, the previous feed (if found) will be the same class as - * the feed that was given as the first argument. - * @return Zend_Gdata_App_Feed|null Returns a - * Zend_Gdata_App_Feed or null if no previous set of results - * exists. - */ - public function getPreviousFeed($feed, $className = null) - { - $previousLink = $feed->getPreviousLink(); - if (!$previousLink) { - return null; - } - $previousLinkHref = $previousLink->getHref(); - - if ($className === null) { - $className = get_class($feed); - } - - return $this->getFeed($previousLinkHref, $className); - } - - /** - * Returns the data for an If-Match header based on the current Etag - * property. If Etags are not supported by the server or cannot be - * extracted from the data, then null will be returned. - * - * @param boolean $allowWeak If false, then if a weak Etag is detected, - * then return null rather than the Etag. - * @return string|null $data - */ - public function generateIfMatchHeaderData($data, $allowWeek) - { - $result = ''; - // Set an If-Match header if an ETag has been set (version >= 2 only) - if ($this->_majorProtocolVersion >= 2 && - $data instanceof Zend_Gdata_App_Entry) { - $etag = $data->getEtag(); - if (($etag !== null) && - ($allowWeek || substr($etag, 0, 2) != 'W/')) { - $result = $data->getEtag(); - } - } - return $result; - } - - /** - * Determine whether service object is using XML to object mapping. - * - * @return boolean True if service object is using XML to object mapping, - * false otherwise. - */ - public function usingObjectMapping() - { - return $this->_useObjectMapping; - } - - /** - * Enable/disable the use of XML to object mapping. - * - * @param boolean $value Pass in true to use the XML to object mapping. - * Pass in false or null to disable it. - * @return void - */ - public function useObjectMapping($value) - { - if ($value === True) { - $this->_useObjectMapping = true; - } else { - $this->_useObjectMapping = false; - } - } - -} diff --git a/library/vendor/Zend/Gdata/App/AuthException.php b/library/vendor/Zend/Gdata/App/AuthException.php deleted file mode 100644 index 6f0849720..000000000 --- a/library/vendor/Zend/Gdata/App/AuthException.php +++ /dev/null @@ -1,40 +0,0 @@ - array( - 1 => array( - 0 => 'http://www.w3.org/2005/Atom' - ) - ), - 'app' => array( - 1 => array( - 0 => 'http://purl.org/atom/app#' - ), - 2 => array( - 0 => 'http://www.w3.org/2007/app' - ) - ) - ); - - public function __construct() - { - } - - /** - * Returns the child text node of this element - * This represents any raw text contained within the XML element - * - * @return string Child text node - */ - public function getText($trim = true) - { - if ($trim) { - return trim($this->_text); - } else { - return $this->_text; - } - } - - /** - * Sets the child text node of this element - * This represents any raw text contained within the XML element - * - * @param string $value Child text node - * @return Zend_Gdata_App_Base Returns an object of the same type as 'this' to provide a fluent interface. - */ - public function setText($value) - { - $this->_text = $value; - return $this; - } - - /** - * Returns an array of all elements not matched to data model classes - * during the parsing of the XML - * - * @return array All elements not matched to data model classes during parsing - */ - public function getExtensionElements() - { - return $this->_extensionElements; - } - - /** - * Sets an array of all elements not matched to data model classes - * during the parsing of the XML. This method can be used to add arbitrary - * child XML elements to any data model class. - * - * @param array $value All extension elements - * @return Zend_Gdata_App_Base Returns an object of the same type as 'this' to provide a fluent interface. - */ - public function setExtensionElements($value) - { - $this->_extensionElements = $value; - return $this; - } - - /** - * Returns an array of all extension attributes not transformed into data - * model properties during parsing of the XML. Each element of the array - * is a hashed array of the format: - * array('namespaceUri' => string, 'name' => string, 'value' => string); - * - * @return array All extension attributes - */ - public function getExtensionAttributes() - { - return $this->_extensionAttributes; - } - - /** - * Sets an array of all extension attributes not transformed into data - * model properties during parsing of the XML. Each element of the array - * is a hashed array of the format: - * array('namespaceUri' => string, 'name' => string, 'value' => string); - * This can be used to add arbitrary attributes to any data model element - * - * @param array $value All extension attributes - * @return Zend_Gdata_App_Base Returns an object of the same type as 'this' to provide a fluent interface. - */ - public function setExtensionAttributes($value) - { - $this->_extensionAttributes = $value; - return $this; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - if ($doc === null) { - $doc = new DOMDocument('1.0', 'utf-8'); - } - if ($this->_rootNamespaceURI != null) { - $element = $doc->createElementNS($this->_rootNamespaceURI, $this->_rootElement); - } elseif ($this->_rootNamespace !== null) { - if (strpos($this->_rootElement, ':') === false) { - $elementName = $this->_rootNamespace . ':' . $this->_rootElement; - } else { - $elementName = $this->_rootElement; - } - $element = $doc->createElementNS($this->lookupNamespace($this->_rootNamespace), $elementName); - } else { - $element = $doc->createElement($this->_rootElement); - } - if ($this->_text != null) { - $element->appendChild($element->ownerDocument->createTextNode($this->_text)); - } - foreach ($this->_extensionElements as $extensionElement) { - $element->appendChild($extensionElement->getDOM($element->ownerDocument)); - } - foreach ($this->_extensionAttributes as $attribute) { - $element->setAttribute($attribute['name'], $attribute['value']); - } - return $element; - } - - /** - * Given a child DOMNode, tries to determine how to map the data into - * object instance members. If no mapping is defined, Extension_Element - * objects are created and stored in an array. - * - * @param DOMNode $child The DOMNode needed to be handled - */ - protected function takeChildFromDOM($child) - { - if ($child->nodeType == XML_TEXT_NODE) { - $this->_text = $child->nodeValue; - } else { - $extensionElement = new Zend_Gdata_App_Extension_Element(); - $extensionElement->transferFromDOM($child); - $this->_extensionElements[] = $extensionElement; - } - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - $arrayIndex = ($attribute->namespaceURI != '')?( - $attribute->namespaceURI . ':' . $attribute->name): - $attribute->name; - $this->_extensionAttributes[$arrayIndex] = - array('namespaceUri' => $attribute->namespaceURI, - 'name' => $attribute->localName, - 'value' => $attribute->nodeValue); - } - - /** - * Transfers each child and attribute into member variables. - * This is called when XML is received over the wire and the data - * model needs to be built to represent this XML. - * - * @param DOMNode $node The DOMNode that represents this object's data - */ - public function transferFromDOM($node) - { - foreach ($node->childNodes as $child) { - $this->takeChildFromDOM($child); - } - foreach ($node->attributes as $attribute) { - $this->takeAttributeFromDOM($attribute); - } - } - - /** - * Parses the provided XML text and generates data model classes for - * each know element by turning the XML text into a DOM tree and calling - * transferFromDOM($element). The first data model element with the same - * name as $this->_rootElement is used and the child elements are - * recursively parsed. - * - * @param string $xml The XML text to parse - */ - public function transferFromXML($xml) - { - if ($xml) { - // Load the feed as an XML DOMDocument object - @ini_set('track_errors', 1); - $doc = new DOMDocument(); - $doc = @Zend_Xml_Security::scan($xml, $doc); - @ini_restore('track_errors'); - if (!$doc) { - throw new Zend_Gdata_App_Exception("DOMDocument cannot parse XML: $php_errormsg"); - } - $element = $doc->getElementsByTagName($this->_rootElement)->item(0); - if (!$element) { - throw new Zend_Gdata_App_Exception('No root <' . $this->_rootElement . '> element'); - } - $this->transferFromDOM($element); - } else { - throw new Zend_Gdata_App_Exception('XML passed to transferFromXML cannot be null'); - } - } - - /** - * Converts this element and all children into XML text using getDOM() - * - * @return string XML content - */ - public function saveXML() - { - $element = $this->getDOM(); - return $element->ownerDocument->saveXML($element); - } - - /** - * Alias for saveXML() returns XML content for this element and all - * children - * - * @return string XML content - */ - public function getXML() - { - return $this->saveXML(); - } - - /** - * Alias for saveXML() - * - * Can be overridden by children to provide more complex representations - * of entries. - * - * @return string Encoded string content - */ - public function encode() - { - return $this->saveXML(); - } - - /** - * Get the full version of a namespace prefix - * - * Looks up a prefix (atom:, etc.) in the list of registered - * namespaces and returns the full namespace URI if - * available. Returns the prefix, unmodified, if it's not - * registered. - * - * @param string $prefix The namespace prefix to lookup. - * @param integer $majorVersion The major protocol version in effect. - * Defaults to '1'. - * @param integer $minorVersion The minor protocol version in effect. - * Defaults to null (use latest). - * @return string - */ - public function lookupNamespace($prefix, - $majorVersion = 1, - $minorVersion = null) - { - // Check for a memoized result - $key = $prefix . ' ' . - ($majorVersion === null ? 'NULL' : $majorVersion) . - ' '. ($minorVersion === null ? 'NULL' : $minorVersion); - if (array_key_exists($key, self::$_namespaceLookupCache)) - return self::$_namespaceLookupCache[$key]; - // If no match, return the prefix by default - $result = $prefix; - - // Find tuple of keys that correspond to the namespace we should use - if (isset($this->_namespaces[$prefix])) { - // Major version search - $nsData = $this->_namespaces[$prefix]; - $foundMajorV = Zend_Gdata_App_Util::findGreatestBoundedValue( - $majorVersion, $nsData); - // Minor version search - $nsData = $nsData[$foundMajorV]; - $foundMinorV = Zend_Gdata_App_Util::findGreatestBoundedValue( - $minorVersion, $nsData); - // Extract NS - $result = $nsData[$foundMinorV]; - } - - // Memoize result - self::$_namespaceLookupCache[$key] = $result; - - return $result; - } - - /** - * Add a namespace and prefix to the registered list - * - * Takes a prefix and a full namespace URI and adds them to the - * list of registered namespaces for use by - * $this->lookupNamespace(). - * - * WARNING: Currently, registering a namespace will NOT invalidate any - * memoized data stored in $_namespaceLookupCache. Under normal - * use, this behavior is acceptable. If you are adding - * contradictory data to the namespace lookup table, you must - * call flushNamespaceLookupCache(). - * - * @param string $prefix The namespace prefix - * @param string $namespaceUri The full namespace URI - * @param integer $majorVersion The major protocol version in effect. - * Defaults to '1'. - * @param integer $minorVersion The minor protocol version in effect. - * Defaults to null (use latest). - * @return void - */ - public function registerNamespace($prefix, - $namespaceUri, - $majorVersion = 1, - $minorVersion = 0) - { - $this->_namespaces[$prefix][$majorVersion][$minorVersion] = - $namespaceUri; - } - - /** - * Flush namespace lookup cache. - * - * Empties the namespace lookup cache. Call this function if you have - * added data to the namespace lookup table that contradicts values that - * may have been cached during a previous call to lookupNamespace(). - */ - public static function flushNamespaceLookupCache() - { - self::$_namespaceLookupCache = array(); - } - - /** - * Add an array of namespaces to the registered list. - * - * Takes an array in the format of: - * namespace prefix, namespace URI, major protocol version, - * minor protocol version and adds them with calls to ->registerNamespace() - * - * @param array $namespaceArray An array of namespaces. - * @return void - */ - public function registerAllNamespaces($namespaceArray) - { - foreach($namespaceArray as $namespace) { - $this->registerNamespace( - $namespace[0], $namespace[1], $namespace[2], $namespace[3]); - } - } - - - /** - * Magic getter to allow access like $entry->foo to call $entry->getFoo() - * Alternatively, if no getFoo() is defined, but a $_foo protected variable - * is defined, this is returned. - * - * TODO Remove ability to bypass getFoo() methods?? - * - * @param string $name The variable name sought - */ - public function __get($name) - { - $method = 'get'.ucfirst($name); - if (method_exists($this, $method)) { - return call_user_func(array(&$this, $method)); - } else if (property_exists($this, "_${name}")) { - return $this->{'_' . $name}; - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Property ' . $name . ' does not exist'); - } - } - - /** - * Magic setter to allow acces like $entry->foo='bar' to call - * $entry->setFoo('bar') automatically. - * - * Alternatively, if no setFoo() is defined, but a $_foo protected variable - * is defined, this is returned. - * - * TODO Remove ability to bypass getFoo() methods?? - * - * @param string $name - * @param string $value - */ - public function __set($name, $val) - { - $method = 'set'.ucfirst($name); - if (method_exists($this, $method)) { - return call_user_func(array(&$this, $method), $val); - } else if (isset($this->{'_' . $name}) || ($this->{'_' . $name} === null)) { - $this->{'_' . $name} = $val; - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Property ' . $name . ' does not exist'); - } - } - - /** - * Magic __isset method - * - * @param string $name - */ - public function __isset($name) - { - $rc = new ReflectionClass(get_class($this)); - $privName = '_' . $name; - if (!($rc->hasProperty($privName))) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Property ' . $name . ' does not exist'); - } else { - if (isset($this->{$privName})) { - if (is_array($this->{$privName})) { - if (count($this->{$privName}) > 0) { - return true; - } else { - return false; - } - } else { - return true; - } - } else { - return false; - } - } - } - - /** - * Magic __unset method - * - * @param string $name - */ - public function __unset($name) - { - if (isset($this->{'_' . $name})) { - if (is_array($this->{'_' . $name})) { - $this->{'_' . $name} = array(); - } else { - $this->{'_' . $name} = null; - } - } - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - * - * @return string The text representation of this object - */ - public function __toString() - { - return $this->getText(); - } - -} diff --git a/library/vendor/Zend/Gdata/App/BaseMediaSource.php b/library/vendor/Zend/Gdata/App/BaseMediaSource.php deleted file mode 100644 index 893858f0d..000000000 --- a/library/vendor/Zend/Gdata/App/BaseMediaSource.php +++ /dev/null @@ -1,175 +0,0 @@ -_contentType; - } - - /** - * Set the content type for the file attached (example image/png) - * - * @param string $value The content type - * @return Zend_Gdata_App_MediaFileSource Provides a fluent interface - */ - public function setContentType($value) - { - $this->_contentType = $value; - return $this; - } - - /** - * Returns the Slug header value. Used by some services to determine the - * title for the uploaded file. Returns null if no slug should be used. - * - * @return string - */ - public function getSlug(){ - return $this->_slug; - } - - /** - * Sets the Slug header value. Used by some services to determine the - * title for the uploaded file. A null value indicates no slug header. - * - * @var string The slug value - * @return Zend_Gdata_App_MediaSource Provides a fluent interface - */ - public function setSlug($value){ - $this->_slug = $value; - return $this; - } - - - /** - * Magic getter to allow acces like $source->foo to call $source->getFoo() - * Alternatively, if no getFoo() is defined, but a $_foo protected variable - * is defined, this is returned. - * - * TODO Remove ability to bypass getFoo() methods?? - * - * @param string $name The variable name sought - */ - public function __get($name) - { - $method = 'get'.ucfirst($name); - if (method_exists($this, $method)) { - return call_user_func(array(&$this, $method)); - } else if (property_exists($this, "_${name}")) { - return $this->{'_' . $name}; - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Property ' . $name . ' does not exist'); - } - } - - /** - * Magic setter to allow acces like $source->foo='bar' to call - * $source->setFoo('bar') automatically. - * - * Alternatively, if no setFoo() is defined, but a $_foo protected variable - * is defined, this is returned. - * - * @param string $name - * @param string $value - */ - public function __set($name, $val) - { - $method = 'set'.ucfirst($name); - if (method_exists($this, $method)) { - return call_user_func(array(&$this, $method), $val); - } else if (isset($this->{'_' . $name}) || ($this->{'_' . $name} === null)) { - $this->{'_' . $name} = $val; - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Property ' . $name . ' does not exist'); - } - } - - /** - * Magic __isset method - * - * @param string $name - */ - public function __isset($name) - { - $rc = new ReflectionClass(get_class($this)); - $privName = '_' . $name; - if (!($rc->hasProperty($privName))) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Property ' . $name . ' does not exist'); - } else { - if (isset($this->{$privName})) { - if (is_array($this->{$privName})) { - if (count($this->{$privName}) > 0) { - return true; - } else { - return false; - } - } else { - return true; - } - } else { - return false; - } - } - } - -} diff --git a/library/vendor/Zend/Gdata/App/CaptchaRequiredException.php b/library/vendor/Zend/Gdata/App/CaptchaRequiredException.php deleted file mode 100644 index b97e98da3..000000000 --- a/library/vendor/Zend/Gdata/App/CaptchaRequiredException.php +++ /dev/null @@ -1,93 +0,0 @@ -captchaToken = $captchaToken; - $this->captchaUrl = Zend_Gdata_App_CaptchaRequiredException::ACCOUNTS_URL . $captchaUrl; - parent::__construct('CAPTCHA challenge issued by server'); - } - - /** - * Retrieves the token identifier as provided by the server. - * - * @return string - */ - public function getCaptchaToken() { - return $this->captchaToken; - } - - /** - * Retrieves the URL CAPTCHA image as provided by the server. - * - * @return string - */ - public function getCaptchaUrl() { - return $this->captchaUrl; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Entry.php b/library/vendor/Zend/Gdata/App/Entry.php deleted file mode 100644 index 96c2aac95..000000000 --- a/library/vendor/Zend/Gdata/App/Entry.php +++ /dev/null @@ -1,382 +0,0 @@ -_content != null) { - $element->appendChild($this->_content->getDOM($element->ownerDocument)); - } - if ($this->_published != null) { - $element->appendChild($this->_published->getDOM($element->ownerDocument)); - } - if ($this->_source != null) { - $element->appendChild($this->_source->getDOM($element->ownerDocument)); - } - if ($this->_summary != null) { - $element->appendChild($this->_summary->getDOM($element->ownerDocument)); - } - if ($this->_control != null) { - $element->appendChild($this->_control->getDOM($element->ownerDocument)); - } - if ($this->_edited != null) { - $element->appendChild($this->_edited->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('atom') . ':' . 'content': - $content = new Zend_Gdata_App_Extension_Content(); - $content->transferFromDOM($child); - $this->_content = $content; - break; - case $this->lookupNamespace('atom') . ':' . 'published': - $published = new Zend_Gdata_App_Extension_Published(); - $published->transferFromDOM($child); - $this->_published = $published; - break; - case $this->lookupNamespace('atom') . ':' . 'source': - $source = new Zend_Gdata_App_Extension_Source(); - $source->transferFromDOM($child); - $this->_source = $source; - break; - case $this->lookupNamespace('atom') . ':' . 'summary': - $summary = new Zend_Gdata_App_Extension_Summary(); - $summary->transferFromDOM($child); - $this->_summary = $summary; - break; - case $this->lookupNamespace('app') . ':' . 'control': - $control = new Zend_Gdata_App_Extension_Control(); - $control->transferFromDOM($child); - $this->_control = $control; - break; - case $this->lookupNamespace('app') . ':' . 'edited': - $edited = new Zend_Gdata_App_Extension_Edited(); - $edited->transferFromDOM($child); - $this->_edited = $edited; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Uploads changes in this entry to the server using Zend_Gdata_App - * - * @param string|null $uri The URI to send requests to, or null if $data - * contains the URI. - * @param string|null $className The name of the class that should we - * deserializing the server response. If null, then - * 'Zend_Gdata_App_Entry' will be used. - * @param array $extraHeaders Extra headers to add to the request, as an - * array of string-based key/value pairs. - * @return Zend_Gdata_App_Entry The updated entry. - * @throws Zend_Gdata_App_Exception - */ - public function save($uri = null, $className = null, $extraHeaders = array()) - { - return $this->getService()->updateEntry($this, - $uri, - $className, - $extraHeaders); - } - - /** - * Deletes this entry to the server using the referenced - * Zend_Http_Client to do a HTTP DELETE to the edit link stored in this - * entry's link collection. - * - * @return void - * @throws Zend_Gdata_App_Exception - */ - public function delete() - { - $this->getService()->delete($this); - } - - /** - * Reload the current entry. Returns a new copy of the entry as returned - * by the server, or null if no changes exist. This does not - * modify the current entry instance. - * - * @param string|null The URI to send requests to, or null if $data - * contains the URI. - * @param string|null The name of the class that should we deserializing - * the server response. If null, then 'Zend_Gdata_App_Entry' will - * be used. - * @param array $extraHeaders Extra headers to add to the request, as an - * array of string-based key/value pairs. - * @return mixed A new instance of the current entry with updated data, or - * null if the server reports that no changes have been made. - * @throws Zend_Gdata_App_Exception - */ - public function reload($uri = null, $className = null, $extraHeaders = array()) - { - // Get URI - $editLink = $this->getEditLink(); - if (($uri === null) && $editLink != null) { - $uri = $editLink->getHref(); - } - - // Set classname to current class, if not otherwise set - if ($className === null) { - $className = get_class($this); - } - - // Append ETag, if present (Gdata v2 and above, only) and doesn't - // conflict with existing headers - if ($this->_etag != null - && !array_key_exists('If-Match', $extraHeaders) - && !array_key_exists('If-None-Match', $extraHeaders)) { - $extraHeaders['If-None-Match'] = $this->_etag; - } - - // If an HTTP 304 status (Not Modified)is returned, then we return - // null. - $result = null; - try { - $result = $this->service->importUrl($uri, $className, $extraHeaders); - } catch (Zend_Gdata_App_HttpException $e) { - if ($e->getResponse()->getStatus() != '304') - throw $e; - } - - return $result; - } - - /** - * Gets the value of the atom:content element - * - * @return Zend_Gdata_App_Extension_Content - */ - public function getContent() - { - return $this->_content; - } - - /** - * Sets the value of the atom:content element - * - * @param Zend_Gdata_App_Extension_Content $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setContent($value) - { - $this->_content = $value; - return $this; - } - - /** - * Sets the value of the atom:published element - * This represents the publishing date for an entry - * - * @return Zend_Gdata_App_Extension_Published - */ - public function getPublished() - { - return $this->_published; - } - - /** - * Sets the value of the atom:published element - * This represents the publishing date for an entry - * - * @param Zend_Gdata_App_Extension_Published $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setPublished($value) - { - $this->_published = $value; - return $this; - } - - /** - * Gets the value of the atom:source element - * - * @return Zend_Gdata_App_Extension_Source - */ - public function getSource() - { - return $this->_source; - } - - /** - * Sets the value of the atom:source element - * - * @param Zend_Gdata_App_Extension_Source $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setSource($value) - { - $this->_source = $value; - return $this; - } - - /** - * Gets the value of the atom:summary element - * This represents a textual summary of this entry's content - * - * @return Zend_Gdata_App_Extension_Summary - */ - public function getSummary() - { - return $this->_summary; - } - - /** - * Sets the value of the atom:summary element - * This represents a textual summary of this entry's content - * - * @param Zend_Gdata_App_Extension_Summary $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setSummary($value) - { - $this->_summary = $value; - return $this; - } - - /** - * Gets the value of the app:control element - * - * @return Zend_Gdata_App_Extension_Control - */ - public function getControl() - { - return $this->_control; - } - - /** - * Sets the value of the app:control element - * - * @param Zend_Gdata_App_Extension_Control $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setControl($value) - { - $this->_control = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Exception.php b/library/vendor/Zend/Gdata/App/Exception.php deleted file mode 100644 index d57b26959..000000000 --- a/library/vendor/Zend/Gdata/App/Exception.php +++ /dev/null @@ -1,42 +0,0 @@ -_term = $term; - $this->_scheme = $scheme; - $this->_label = $label; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_term !== null) { - $element->setAttribute('term', $this->_term); - } - if ($this->_scheme !== null) { - $element->setAttribute('scheme', $this->_scheme); - } - if ($this->_label !== null) { - $element->setAttribute('label', $this->_label); - } - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'term': - $this->_term = $attribute->nodeValue; - break; - case 'scheme': - $this->_scheme = $attribute->nodeValue; - break; - case 'label': - $this->_label = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string|null - */ - public function getTerm() - { - return $this->_term; - } - - /** - * @param string|null $value - * @return Zend_Gdata_App_Extension_Category Provides a fluent interface - */ - public function setTerm($value) - { - $this->_term = $value; - return $this; - } - - /** - * @return string|null - */ - public function getScheme() - { - return $this->_scheme; - } - - /** - * @param string|null $value - * @return Zend_Gdata_App_Extension_Category Provides a fluent interface - */ - public function setScheme($value) - { - $this->_scheme = $value; - return $this; - } - - /** - * @return string|null - */ - public function getLabel() - { - return $this->_label; - } - - /** - * @param string|null $value - * @return Zend_Gdata_App_Extension_Category Provides a fluent interface - */ - public function setLabel($value) - { - $this->_label = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Content.php b/library/vendor/Zend/Gdata/App/Extension/Content.php deleted file mode 100644 index f81628b6d..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Content.php +++ /dev/null @@ -1,87 +0,0 @@ -_src = $src; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_src !== null) { - $element->setAttribute('src', $this->_src); - } - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'src': - $this->_src = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getSrc() - { - return $this->_src; - } - - /** - * @param string $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setSrc($value) - { - $this->_src = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Contributor.php b/library/vendor/Zend/Gdata/App/Extension/Contributor.php deleted file mode 100644 index b47277aab..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Contributor.php +++ /dev/null @@ -1,42 +0,0 @@ -_draft = $draft; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_draft != null) { - $element->appendChild($this->_draft->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('app') . ':' . 'draft': - $draft = new Zend_Gdata_App_Extension_Draft(); - $draft->transferFromDOM($child); - $this->_draft = $draft; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * @return Zend_Gdata_App_Extension_Draft - */ - public function getDraft() - { - return $this->_draft; - } - - /** - * @param Zend_Gdata_App_Extension_Draft $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setDraft($value) - { - $this->_draft = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Draft.php b/library/vendor/Zend/Gdata/App/Extension/Draft.php deleted file mode 100644 index 4e48bc0b1..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Draft.php +++ /dev/null @@ -1,49 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Edited.php b/library/vendor/Zend/Gdata/App/Extension/Edited.php deleted file mode 100644 index a5d28bad0..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Edited.php +++ /dev/null @@ -1,48 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Element.php b/library/vendor/Zend/Gdata/App/Extension/Element.php deleted file mode 100644 index 0a3770fed..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Element.php +++ /dev/null @@ -1,57 +0,0 @@ -_rootElement = $rootElement; - $this->_rootNamespace = $rootNamespace; - $this->_rootNamespaceURI = $rootNamespaceURI; - $this->_text = $text; - } - - public function transferFromDOM($node) - { - parent::transferFromDOM($node); - $this->_rootNamespace = null; - $this->_rootNamespaceURI = $node->namespaceURI; - $this->_rootElement = $node->localName; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Email.php b/library/vendor/Zend/Gdata/App/Extension/Email.php deleted file mode 100644 index 47fa75a54..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Email.php +++ /dev/null @@ -1,48 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Generator.php b/library/vendor/Zend/Gdata/App/Extension/Generator.php deleted file mode 100644 index e49ddddec..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Generator.php +++ /dev/null @@ -1,114 +0,0 @@ -_text = $text; - $this->_uri = $uri; - $this->_version = $version; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_uri !== null) { - $element->setAttribute('uri', $this->_uri); - } - if ($this->_version !== null) { - $element->setAttribute('version', $this->_version); - } - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'uri': - $this->_uri = $attribute->nodeValue; - break; - case 'version': - $this->_version= $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return Zend_Gdata_App_Extension_Uri - */ - public function getUri() - { - return $this->_uri; - } - - /** - * @param Zend_Gdata_App_Extension_Uri $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setUri($value) - { - $this->_uri = $value; - return $this; - } - - /** - * @return Zend_Gdata_App_Extension_Version - */ - public function getVersion() - { - return $this->_version; - } - - /** - * @param Zend_Gdata_App_Extension_Version $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setVersion($value) - { - $this->_version = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Icon.php b/library/vendor/Zend/Gdata/App/Extension/Icon.php deleted file mode 100644 index 05e2ae2aa..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Icon.php +++ /dev/null @@ -1,48 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Id.php b/library/vendor/Zend/Gdata/App/Extension/Id.php deleted file mode 100644 index d6f77154b..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Id.php +++ /dev/null @@ -1,48 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Link.php b/library/vendor/Zend/Gdata/App/Extension/Link.php deleted file mode 100644 index cbd4793f6..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Link.php +++ /dev/null @@ -1,218 +0,0 @@ -_href = $href; - $this->_rel = $rel; - $this->_type = $type; - $this->_hrefLang = $hrefLang; - $this->_title = $title; - $this->_length = $length; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_href !== null) { - $element->setAttribute('href', $this->_href); - } - if ($this->_rel !== null) { - $element->setAttribute('rel', $this->_rel); - } - if ($this->_type !== null) { - $element->setAttribute('type', $this->_type); - } - if ($this->_hrefLang !== null) { - $element->setAttribute('hreflang', $this->_hrefLang); - } - if ($this->_title !== null) { - $element->setAttribute('title', $this->_title); - } - if ($this->_length !== null) { - $element->setAttribute('length', $this->_length); - } - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'href': - $this->_href = $attribute->nodeValue; - break; - case 'rel': - $this->_rel = $attribute->nodeValue; - break; - case 'type': - $this->_type = $attribute->nodeValue; - break; - case 'hreflang': - $this->_hrefLang = $attribute->nodeValue; - break; - case 'title': - $this->_title = $attribute->nodeValue; - break; - case 'length': - $this->_length = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string|null - */ - public function getHref() - { - return $this->_href; - } - - /** - * @param string|null $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setHref($value) - { - $this->_href = $value; - return $this; - } - - /** - * @return string|null - */ - public function getRel() - { - return $this->_rel; - } - - /** - * @param string|null $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setRel($value) - { - $this->_rel = $value; - return $this; - } - - /** - * @return string|null - */ - public function getType() - { - return $this->_type; - } - - /** - * @param string|null $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setType($value) - { - $this->_type = $value; - return $this; - } - - /** - * @return string|null - */ - public function getHrefLang() - { - return $this->_hrefLang; - } - - /** - * @param string|null $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setHrefLang($value) - { - $this->_hrefLang = $value; - return $this; - } - - /** - * @return string|null - */ - public function getTitle() - { - return $this->_title; - } - - /** - * @param string|null $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setTitle($value) - { - $this->_title = $value; - return $this; - } - - /** - * @return string|null - */ - public function getLength() - { - return $this->_length; - } - - /** - * @param string|null $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setLength($value) - { - $this->_length = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Logo.php b/library/vendor/Zend/Gdata/App/Extension/Logo.php deleted file mode 100644 index 40f549e17..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Logo.php +++ /dev/null @@ -1,48 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Name.php b/library/vendor/Zend/Gdata/App/Extension/Name.php deleted file mode 100644 index 4d5c7471c..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Name.php +++ /dev/null @@ -1,47 +0,0 @@ -_text = $text; - } -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Person.php b/library/vendor/Zend/Gdata/App/Extension/Person.php deleted file mode 100644 index 9937ca5bc..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Person.php +++ /dev/null @@ -1,159 +0,0 @@ -_name = $name; - $this->_email = $email; - $this->_uri = $uri; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_name != null) { - $element->appendChild($this->_name->getDOM($element->ownerDocument)); - } - if ($this->_email != null) { - $element->appendChild($this->_email->getDOM($element->ownerDocument)); - } - if ($this->_uri != null) { - $element->appendChild($this->_uri->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('atom') . ':' . 'name': - $name = new Zend_Gdata_App_Extension_Name(); - $name->transferFromDOM($child); - $this->_name = $name; - break; - case $this->lookupNamespace('atom') . ':' . 'email': - $email = new Zend_Gdata_App_Extension_Email(); - $email->transferFromDOM($child); - $this->_email = $email; - break; - case $this->lookupNamespace('atom') . ':' . 'uri': - $uri = new Zend_Gdata_App_Extension_Uri(); - $uri->transferFromDOM($child); - $this->_uri = $uri; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * @return Zend_Gdata_App_Extension_Name - */ - public function getName() - { - return $this->_name; - } - - /** - * @param Zend_Gdata_App_Extension_Name $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setName($value) - { - $this->_name = $value; - return $this; - } - - /** - * @return Zend_Gdata_App_Extension_Email - */ - public function getEmail() - { - return $this->_email; - } - - /** - * @param Zend_Gdata_App_Extension_Email $value - * @return Zend_Gdata_App_Extension_Person Provides a fluent interface - */ - public function setEmail($value) - { - $this->_email = $value; - return $this; - } - - /** - * @return Zend_Gdata_App_Extension_Uri - */ - public function getUri() - { - return $this->_uri; - } - - /** - * @param Zend_Gdata_App_Extension_Uri $value - * @return Zend_Gdata_App_Extension_Person Provides a fluent interface - */ - public function setUri($value) - { - $this->_uri = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Published.php b/library/vendor/Zend/Gdata/App/Extension/Published.php deleted file mode 100644 index 96d3045de..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Published.php +++ /dev/null @@ -1,48 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Rights.php b/library/vendor/Zend/Gdata/App/Extension/Rights.php deleted file mode 100644 index 3d5963c92..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Rights.php +++ /dev/null @@ -1,48 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Source.php b/library/vendor/Zend/Gdata/App/Extension/Source.php deleted file mode 100644 index c9f07e29a..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Source.php +++ /dev/null @@ -1,44 +0,0 @@ -_text = $text; - $this->_type = $type; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_type !== null) { - $element->setAttribute('type', $this->_type); - } - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'type': - $this->_type = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /* - * @return Zend_Gdata_App_Extension_Type - */ - public function getType() - { - return $this->_type; - } - - /* - * @param string $value - * @return Zend_Gdata_App_Extension_Text Provides a fluent interface - */ - public function setType($value) - { - $this->_type = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Title.php b/library/vendor/Zend/Gdata/App/Extension/Title.php deleted file mode 100644 index b7df017b0..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Title.php +++ /dev/null @@ -1,42 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Extension/Uri.php b/library/vendor/Zend/Gdata/App/Extension/Uri.php deleted file mode 100644 index 2cc41b7fe..000000000 --- a/library/vendor/Zend/Gdata/App/Extension/Uri.php +++ /dev/null @@ -1,48 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/App/Feed.php b/library/vendor/Zend/Gdata/App/Feed.php deleted file mode 100755 index e1b1421b5..000000000 --- a/library/vendor/Zend/Gdata/App/Feed.php +++ /dev/null @@ -1,348 +0,0 @@ -entries as $entry) or foreach - * ($feed->entry as $entry). - * - * @param string $var The property to get. - * @return mixed - */ - public function __get($var) - { - switch ($var) { - case 'entries': - return $this; - default: - return parent::__get($var); - } - } - - /** - * Retrieves the DOM model representing this object and all children - * - * @param DOMDocument $doc - * @return DOMElement - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - foreach ($this->_entry as $entry) { - $element->appendChild($entry->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('atom') . ':' . 'entry': - $newEntry = new $this->_entryClassName($child); - $newEntry->setHttpClient($this->getHttpClient()); - $newEntry->setMajorProtocolVersion($this->getMajorProtocolVersion()); - $newEntry->setMinorProtocolVersion($this->getMinorProtocolVersion()); - $this->_entry[] = $newEntry; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the number of entries in this feed object. - * - * @return integer Entry count. - */ - public function count() - { - return count($this->_entry); - } - - /** - * Required by the Iterator interface. - * - * @return void - */ - public function rewind() - { - $this->_entryIndex = 0; - } - - /** - * Required by the Iterator interface. - * - * @return mixed The current row, or null if no rows. - */ - public function current() - { - return $this->_entry[$this->_entryIndex]; - } - - /** - * Required by the Iterator interface. - * - * @return mixed The current row number (starts at 0), or NULL if no rows - */ - public function key() - { - return $this->_entryIndex; - } - - /** - * Required by the Iterator interface. - * - * @return mixed The next row, or null if no more rows. - */ - public function next() - { - ++$this->_entryIndex; - } - - /** - * Required by the Iterator interface. - * - * @return boolean Whether the iteration is valid - */ - public function valid() - { - return 0 <= $this->_entryIndex && $this->_entryIndex < $this->count(); - } - - /** - * Gets the array of atom:entry elements contained within this - * atom:feed representation - * - * @return array Zend_Gdata_App_Entry array - */ - public function getEntry() - { - return $this->_entry; - } - - /** - * Sets the array of atom:entry elements contained within this - * atom:feed representation - * - * @param array $value The array of Zend_Gdata_App_Entry elements - * @return Zend_Gdata_App_Feed Provides a fluent interface - */ - public function setEntry($value) - { - $this->_entry = $value; - return $this; - } - - /** - * Adds an entry representation to the array of entries - * contained within this feed - * - * @param Zend_Gdata_App_Entry An individual entry to add. - * @return Zend_Gdata_App_Feed Provides a fluent interface - */ - public function addEntry($value) - { - $this->_entry[] = $value; - return $this; - } - - /** - * Required by the ArrayAccess interface - * - * @param int $key The index to set - * @param Zend_Gdata_App_Entry $value The value to set - * @return void - */ - public function offsetSet($key, $value) - { - $this->_entry[$key] = $value; - } - - /** - * Required by the ArrayAccess interface - * - * @param int $key The index to get - * @param Zend_Gdata_App_Entry $value The value to set - */ - public function offsetGet($key) - { - if (array_key_exists($key, $this->_entry)) { - return $this->_entry[$key]; - } - } - - /** - * Required by the ArrayAccess interface - * - * @param int $key The index to set - * @param Zend_Gdata_App_Entry $value The value to set - */ - public function offsetUnset($key) - { - if (array_key_exists($key, $this->_entry)) { - unset($this->_entry[$key]); - } - } - - /** - * Required by the ArrayAccess interface - * - * @param int $key The index to check for existence - * @return boolean - */ - public function offsetExists($key) - { - return (array_key_exists($key, $this->_entry)); - } - - /** - * Retrieve the next set of results from this feed. - * - * @throws Zend_Gdata_App_Exception - * @return mixed|null Returns the next set of results as a feed of the same - * class as this feed, or null if no results exist. - */ - public function getNextFeed() - { - $nextLink = $this->getNextLink(); - if (!$nextLink) { - throw new Zend_Gdata_App_Exception('No link to next set ' . - 'of results found.'); - } - $nextLinkHref = $nextLink->getHref(); - $service = new Zend_Gdata_App($this->getHttpClient()); - - return $service->getFeed($nextLinkHref, get_class($this)); - } - - /** - * Retrieve the previous set of results from this feed. - * - * @throws Zend_Gdata_App_Exception - * @return mixed|null Returns the previous set of results as a feed of - * the same class as this feed, or null if no results exist. - */ - public function getPreviousFeed() - { - $previousLink = $this->getPreviousLink(); - if (!$previousLink) { - throw new Zend_Gdata_App_Exception('No link to previous set ' . - 'of results found.'); - } - $previousLinkHref = $previousLink->getHref(); - $service = new Zend_Gdata_App($this->getHttpClient()); - - return $service->getFeed($previousLinkHref, get_class($this)); - } - - /** - * Set the major protocol version that should be used. Values < 1 will - * cause a Zend_Gdata_App_InvalidArgumentException to be thrown. - * - * This value will be propogated to all child entries. - * - * @see _majorProtocolVersion - * @param (int|NULL) $value The major protocol version to use. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function setMajorProtocolVersion($value) - { - parent::setMajorProtocolVersion($value); - foreach ($this->entries as $entry) { - $entry->setMajorProtocolVersion($value); - } - } - - /** - * Set the minor protocol version that should be used. If set to NULL, no - * minor protocol version will be sent to the server. Values < 0 will - * cause a Zend_Gdata_App_InvalidArgumentException to be thrown. - * - * This value will be propogated to all child entries. - * - * @see _minorProtocolVersion - * @param (int|NULL) $value The minor protocol version to use. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function setMinorProtocolVersion($value) - { - parent::setMinorProtocolVersion($value); - foreach ($this->entries as $entry) { - $entry->setMinorProtocolVersion($value); - } - } - -} diff --git a/library/vendor/Zend/Gdata/App/FeedEntryParent.php b/library/vendor/Zend/Gdata/App/FeedEntryParent.php deleted file mode 100755 index e0462cdee..000000000 --- a/library/vendor/Zend/Gdata/App/FeedEntryParent.php +++ /dev/null @@ -1,669 +0,0 @@ -= 1 is considered valid. - * - * @see setMajorProtocolVersion() - * @see getMajorProtocolVersion() - */ - protected $_majorProtocolVersion = 1; - - /** - * Indicates the minor protocol version that should be used. Can be set - * to either an integer >= 0, or NULL if no minor version should be sent - * to the server. - * - * @see setMinorProtocolVersion() - * @see getMinorProtocolVersion() - */ - protected $_minorProtocolVersion = null; - - /** - * Constructs a Feed or Entry - */ - public function __construct($element = null) - { - if (!($element instanceof DOMElement)) { - if ($element) { - $this->transferFromXML($element); - } - } else { - $this->transferFromDOM($element); - } - } - - /** - * Set the HTTP client instance - * - * Sets the HTTP client object to use for retrieving the feed. - * - * @deprecated Deprecated as of Zend Framework 1.7. Use - * setService() instead. - * @param Zend_Http_Client $httpClient - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface - */ - public function setHttpClient(Zend_Http_Client $httpClient) - { - if (!$this->_service) { - $this->_service = new Zend_Gdata_App(); - } - $this->_service->setHttpClient($httpClient); - return $this; - } - - /** - * Gets the HTTP client object. If none is set, a new Zend_Http_Client - * will be used. - * - * @deprecated Deprecated as of Zend Framework 1.7. Use - * getService() instead. - * @return Zend_Http_Client_Abstract - */ - public function getHttpClient() - { - if (!$this->_service) { - $this->_service = new Zend_Gdata_App(); - } - $client = $this->_service->getHttpClient(); - return $client; - } - - /** - * Set the active service instance for this object. This will be used to - * perform network requests, such as when calling save() and delete(). - * - * @param Zend_Gdata_App $instance The new service instance. - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface. - */ - public function setService($instance) - { - $this->_service = $instance; - return $this; - } - - /** - * Get the active service instance for this object. This will be used to - * perform network requests, such as when calling save() and delete(). - * - * @return Zend_Gdata_App|null The current service instance, or null if - * not set. - */ - public function getService() - { - return $this->_service; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - foreach ($this->_author as $author) { - $element->appendChild($author->getDOM($element->ownerDocument)); - } - foreach ($this->_category as $category) { - $element->appendChild($category->getDOM($element->ownerDocument)); - } - foreach ($this->_contributor as $contributor) { - $element->appendChild($contributor->getDOM($element->ownerDocument)); - } - if ($this->_id != null) { - $element->appendChild($this->_id->getDOM($element->ownerDocument)); - } - foreach ($this->_link as $link) { - $element->appendChild($link->getDOM($element->ownerDocument)); - } - if ($this->_rights != null) { - $element->appendChild($this->_rights->getDOM($element->ownerDocument)); - } - if ($this->_title != null) { - $element->appendChild($this->_title->getDOM($element->ownerDocument)); - } - if ($this->_updated != null) { - $element->appendChild($this->_updated->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('atom') . ':' . 'author': - $author = new Zend_Gdata_App_Extension_Author(); - $author->transferFromDOM($child); - $this->_author[] = $author; - break; - case $this->lookupNamespace('atom') . ':' . 'category': - $category = new Zend_Gdata_App_Extension_Category(); - $category->transferFromDOM($child); - $this->_category[] = $category; - break; - case $this->lookupNamespace('atom') . ':' . 'contributor': - $contributor = new Zend_Gdata_App_Extension_Contributor(); - $contributor->transferFromDOM($child); - $this->_contributor[] = $contributor; - break; - case $this->lookupNamespace('atom') . ':' . 'id': - $id = new Zend_Gdata_App_Extension_Id(); - $id->transferFromDOM($child); - $this->_id = $id; - break; - case $this->lookupNamespace('atom') . ':' . 'link': - $link = new Zend_Gdata_App_Extension_Link(); - $link->transferFromDOM($child); - $this->_link[] = $link; - break; - case $this->lookupNamespace('atom') . ':' . 'rights': - $rights = new Zend_Gdata_App_Extension_Rights(); - $rights->transferFromDOM($child); - $this->_rights = $rights; - break; - case $this->lookupNamespace('atom') . ':' . 'title': - $title = new Zend_Gdata_App_Extension_Title(); - $title->transferFromDOM($child); - $this->_title = $title; - break; - case $this->lookupNamespace('atom') . ':' . 'updated': - $updated = new Zend_Gdata_App_Extension_Updated(); - $updated->transferFromDOM($child); - $this->_updated = $updated; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * @return Zend_Gdata_App_Extension_Author - */ - public function getAuthor() - { - return $this->_author; - } - - /** - * Sets the list of the authors of this feed/entry. In an atom feed, each - * author is represented by an atom:author element - * - * @param array $value - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface - */ - public function setAuthor($value) - { - $this->_author = $value; - return $this; - } - - /** - * Returns the array of categories that classify this feed/entry. Each - * category is represented in an atom feed by an atom:category element. - * - * @return array Array of Zend_Gdata_App_Extension_Category - */ - public function getCategory() - { - return $this->_category; - } - - /** - * Sets the array of categories that classify this feed/entry. Each - * category is represented in an atom feed by an atom:category element. - * - * @param array $value Array of Zend_Gdata_App_Extension_Category - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface - */ - public function setCategory($value) - { - $this->_category = $value; - return $this; - } - - /** - * Returns the array of contributors to this feed/entry. Each contributor - * is represented in an atom feed by an atom:contributor XML element - * - * @return array An array of Zend_Gdata_App_Extension_Contributor - */ - public function getContributor() - { - return $this->_contributor; - } - - /** - * Sets the array of contributors to this feed/entry. Each contributor - * is represented in an atom feed by an atom:contributor XML element - * - * @param array $value - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface - */ - public function setContributor($value) - { - $this->_contributor = $value; - return $this; - } - - /** - * @return Zend_Gdata_App_Extension_Id - */ - public function getId() - { - return $this->_id; - } - - /** - * @param Zend_Gdata_App_Extension_Id $value - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface - */ - public function setId($value) - { - $this->_id = $value; - return $this; - } - - /** - * Given a particular 'rel' value, this method returns a matching - * Zend_Gdata_App_Extension_Link element. If the 'rel' value - * is not provided, the full array of Zend_Gdata_App_Extension_Link - * elements is returned. In an atom feed, each link is represented - * by an atom:link element. The 'rel' value passed to this function - * is the atom:link/@rel attribute. Example rel values include 'self', - * 'edit', and 'alternate'. - * - * @param string $rel The rel value of the link to be found. If null, - * the array of Zend_Gdata_App_Extension_link elements is returned - * @return mixed Either a single Zend_Gdata_App_Extension_link element, - * an array of the same or null is returned depending on the rel value - * supplied as the argument to this function - */ - public function getLink($rel = null) - { - if ($rel == null) { - return $this->_link; - } else { - foreach ($this->_link as $link) { - if ($link->rel == $rel) { - return $link; - } - } - return null; - } - } - - /** - * Returns the Zend_Gdata_App_Extension_Link element which represents - * the URL used to edit this resource. This link is in the atom feed/entry - * as an atom:link with a rel attribute value of 'edit'. - * - * @return Zend_Gdata_App_Extension_Link The link, or null if not found - */ - public function getEditLink() - { - return $this->getLink('edit'); - } - - /** - * Returns the Zend_Gdata_App_Extension_Link element which represents - * the URL used to retrieve the next chunk of results when paging through - * a feed. This link is in the atom feed as an atom:link with a - * rel attribute value of 'next'. - * - * @return Zend_Gdata_App_Extension_Link The link, or null if not found - */ - public function getNextLink() - { - return $this->getLink('next'); - } - - /** - * Returns the Zend_Gdata_App_Extension_Link element which represents - * the URL used to retrieve the previous chunk of results when paging - * through a feed. This link is in the atom feed as an atom:link with a - * rel attribute value of 'previous'. - * - * @return Zend_Gdata_App_Extension_Link The link, or null if not found - */ - public function getPreviousLink() - { - return $this->getLink('previous'); - } - - /** - * @return Zend_Gdata_App_Extension_Link - */ - public function getLicenseLink() - { - return $this->getLink('license'); - } - - /** - * Returns the Zend_Gdata_App_Extension_Link element which represents - * the URL used to retrieve the entry or feed represented by this object - * This link is in the atom feed/entry as an atom:link with a - * rel attribute value of 'self'. - * - * @return Zend_Gdata_App_Extension_Link The link, or null if not found - */ - public function getSelfLink() - { - return $this->getLink('self'); - } - - /** - * Returns the Zend_Gdata_App_Extension_Link element which represents - * the URL for an alternate view of the data represented by this feed or - * entry. This alternate view is commonly a user-facing webpage, blog - * post, etc. The MIME type for the data at the URL is available from the - * returned Zend_Gdata_App_Extension_Link element. - * This link is in the atom feed/entry as an atom:link with a - * rel attribute value of 'self'. - * - * @return Zend_Gdata_App_Extension_Link The link, or null if not found - */ - public function getAlternateLink() - { - return $this->getLink('alternate'); - } - - /** - * @param array $value The array of Zend_Gdata_App_Extension_Link elements - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface - */ - public function setLink($value) - { - $this->_link = $value; - return $this; - } - - /** - * @return Zend_Gdata_AppExtension_Rights - */ - public function getRights() - { - return $this->_rights; - } - - /** - * @param Zend_Gdata_App_Extension_Rights $value - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface - */ - public function setRights($value) - { - $this->_rights = $value; - return $this; - } - - /** - * Returns the title of this feed or entry. The title is an extremely - * short textual representation of this resource and is found as - * an atom:title element in a feed or entry - * - * @return Zend_Gdata_App_Extension_Title - */ - public function getTitle() - { - return $this->_title; - } - - /** - * Returns a string representation of the title of this feed or entry. - * The title is an extremely short textual representation of this - * resource and is found as an atom:title element in a feed or entry - * - * @return string - */ - public function getTitleValue() - { - if (($titleObj = $this->getTitle()) != null) { - return $titleObj->getText(); - } else { - return null; - } - } - - /** - * Returns the title of this feed or entry. The title is an extremely - * short textual representation of this resource and is found as - * an atom:title element in a feed or entry - * - * @param Zend_Gdata_App_Extension_Title $value - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface - */ - public function setTitle($value) - { - $this->_title = $value; - return $this; - } - - /** - * @return Zend_Gdata_App_Extension_Updated - */ - public function getUpdated() - { - return $this->_updated; - } - - /** - * @param Zend_Gdata_App_Extension_Updated $value - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface - */ - public function setUpdated($value) - { - $this->_updated = $value; - return $this; - } - - /** - * Set the Etag for the current entry to $value. Setting $value to null - * unsets the Etag. - * - * @param string|null $value - * @return Zend_Gdata_App_Entry Provides a fluent interface - */ - public function setEtag($value) { - $this->_etag = $value; - return $this; - } - - /** - * Return the Etag for the current entry, or null if not set. - * - * @return string|null - */ - public function getEtag() { - return $this->_etag; - } - - /** - * Set the major protocol version that should be used. Values < 1 - * (excluding NULL) will cause a Zend_Gdata_App_InvalidArgumentException - * to be thrown. - * - * @see _majorProtocolVersion - * @param (int|NULL) $value The major protocol version to use. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function setMajorProtocolVersion($value) - { - if (!($value >= 1) && ($value !== null)) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Major protocol version must be >= 1'); - } - $this->_majorProtocolVersion = $value; - } - - /** - * Get the major protocol version that is in use. - * - * @see _majorProtocolVersion - * @return (int|NULL) The major protocol version in use. - */ - public function getMajorProtocolVersion() - { - return $this->_majorProtocolVersion; - } - - /** - * Set the minor protocol version that should be used. If set to NULL, no - * minor protocol version will be sent to the server. Values < 0 will - * cause a Zend_Gdata_App_InvalidArgumentException to be thrown. - * - * @see _minorProtocolVersion - * @param (int|NULL) $value The minor protocol version to use. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function setMinorProtocolVersion($value) - { - if (!($value >= 0)) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Minor protocol version must be >= 0 or null'); - } - $this->_minorProtocolVersion = $value; - } - - /** - * Get the minor protocol version that is in use. - * - * @see _minorProtocolVersion - * @return (int|NULL) The major protocol version in use, or NULL if no - * minor version is specified. - */ - public function getMinorProtocolVersion() - { - return $this->_minorProtocolVersion; - } - - /** - * Get the full version of a namespace prefix - * - * Looks up a prefix (atom:, etc.) in the list of registered - * namespaces and returns the full namespace URI if - * available. Returns the prefix, unmodified, if it's not - * registered. - * - * The current entry or feed's version will be used when performing the - * namespace lookup unless overridden using $majorVersion and - * $minorVersion. If the entry/fee has a null version, then the latest - * protocol version will be used by default. - * - * @param string $prefix The namespace prefix to lookup. - * @param integer $majorVersion The major protocol version in effect. - * Defaults to null (auto-select). - * @param integer $minorVersion The minor protocol version in effect. - * Defaults to null (auto-select). - * @return string - */ - public function lookupNamespace($prefix, - $majorVersion = null, - $minorVersion = null) - { - // Auto-select current version - if ($majorVersion === null) { - $majorVersion = $this->getMajorProtocolVersion(); - } - if ($minorVersion === null) { - $minorVersion = $this->getMinorProtocolVersion(); - } - - // Perform lookup - return parent::lookupNamespace($prefix, $majorVersion, $minorVersion); - } - -} diff --git a/library/vendor/Zend/Gdata/App/FeedSourceParent.php b/library/vendor/Zend/Gdata/App/FeedSourceParent.php deleted file mode 100644 index 808e61988..000000000 --- a/library/vendor/Zend/Gdata/App/FeedSourceParent.php +++ /dev/null @@ -1,261 +0,0 @@ -_entry as $entry) { - $entry->setHttpClient($httpClient); - } - return $this; - } - - /** - * Set the active service instance for this feed and all enclosed entries. - * This will be used to perform network requests, such as when calling - * save() and delete(). - * - * @param Zend_Gdata_App $instance The new service instance. - * @return Zend_Gdata_App_FeedEntryParent Provides a fluent interface. - */ - public function setService($instance) - { - parent::setService($instance); - foreach ($this->_entry as $entry) { - $entry->setService($instance); - } - return $this; - } - - /** - * Make accessing some individual elements of the feed easier. - * - * Special accessors 'entry' and 'entries' are provided so that if - * you wish to iterate over an Atom feed's entries, you can do so - * using foreach ($feed->entries as $entry) or foreach - * ($feed->entry as $entry). - * - * @param string $var The property to access. - * @return mixed - */ - public function __get($var) - { - switch ($var) { - default: - return parent::__get($var); - } - } - - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_generator != null) { - $element->appendChild($this->_generator->getDOM($element->ownerDocument)); - } - if ($this->_icon != null) { - $element->appendChild($this->_icon->getDOM($element->ownerDocument)); - } - if ($this->_logo != null) { - $element->appendChild($this->_logo->getDOM($element->ownerDocument)); - } - if ($this->_subtitle != null) { - $element->appendChild($this->_subtitle->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('atom') . ':' . 'generator': - $generator = new Zend_Gdata_App_Extension_Generator(); - $generator->transferFromDOM($child); - $this->_generator = $generator; - break; - case $this->lookupNamespace('atom') . ':' . 'icon': - $icon = new Zend_Gdata_App_Extension_Icon(); - $icon->transferFromDOM($child); - $this->_icon = $icon; - break; - case $this->lookupNamespace('atom') . ':' . 'logo': - $logo = new Zend_Gdata_App_Extension_Logo(); - $logo->transferFromDOM($child); - $this->_logo = $logo; - break; - case $this->lookupNamespace('atom') . ':' . 'subtitle': - $subtitle = new Zend_Gdata_App_Extension_Subtitle(); - $subtitle->transferFromDOM($child); - $this->_subtitle = $subtitle; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * @return Zend_Gdata_AppExtension_Generator - */ - public function getGenerator() - { - return $this->_generator; - } - - /** - * @param Zend_Gdata_App_Extension_Generator $value - * @return Zend_Gdata_App_FeedSourceParent Provides a fluent interface - */ - public function setGenerator($value) - { - $this->_generator = $value; - return $this; - } - - /** - * @return Zend_Gdata_AppExtension_Icon - */ - public function getIcon() - { - return $this->_icon; - } - - /** - * @param Zend_Gdata_App_Extension_Icon $value - * @return Zend_Gdata_App_FeedSourceParent Provides a fluent interface - */ - public function setIcon($value) - { - $this->_icon = $value; - return $this; - } - - /** - * @return Zend_Gdata_AppExtension_logo - */ - public function getlogo() - { - return $this->_logo; - } - - /** - * @param Zend_Gdata_App_Extension_logo $value - * @return Zend_Gdata_App_FeedSourceParent Provides a fluent interface - */ - public function setlogo($value) - { - $this->_logo = $value; - return $this; - } - - /** - * @return Zend_Gdata_AppExtension_Subtitle - */ - public function getSubtitle() - { - return $this->_subtitle; - } - - /** - * @param Zend_Gdata_App_Extension_Subtitle $value - * @return Zend_Gdata_App_FeedSourceParent Provides a fluent interface - */ - public function setSubtitle($value) - { - $this->_subtitle = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/App/HttpException.php b/library/vendor/Zend/Gdata/App/HttpException.php deleted file mode 100644 index fe8383708..000000000 --- a/library/vendor/Zend/Gdata/App/HttpException.php +++ /dev/null @@ -1,119 +0,0 @@ -_httpClientException = $e; - $this->_response = $response; - parent::__construct($message); - } - - /** - * Get the Zend_Http_Client_Exception. - * - * @return Zend_Http_Client_Exception - */ - public function getHttpClientException() - { - return $this->_httpClientException; - } - - /** - * Set the Zend_Http_Client_Exception. - * - * @param Zend_Http_Client_Exception $value - */ - public function setHttpClientException($value) - { - $this->_httpClientException = $value; - return $this; - } - - /** - * Set the Zend_Http_Response. - * - * @param Zend_Http_Response $response - */ - public function setResponse($response) - { - $this->_response = $response; - return $this; - } - - /** - * Get the Zend_Http_Response. - * - * @return Zend_Http_Response - */ - public function getResponse() - { - return $this->_response; - } - - /** - * Get the body of the Zend_Http_Response - * - * @return string - */ - public function getRawResponseBody() - { - if ($this->getResponse()) { - $response = $this->getResponse(); - return $response->getRawBody(); - } - return null; - } - -} diff --git a/library/vendor/Zend/Gdata/App/IOException.php b/library/vendor/Zend/Gdata/App/IOException.php deleted file mode 100644 index a7af34460..000000000 --- a/library/vendor/Zend/Gdata/App/IOException.php +++ /dev/null @@ -1,42 +0,0 @@ -log_handle == null) { - $this->log_handle = fopen($this->config['logfile'], 'a'); - } - fwrite($this->log_handle, $message); - } - - /** - * Connect to the remote server - * - * @param string $host - * @param int $port - * @param boolean $secure - * @param int $timeout - */ - public function connect($host, $port = 80, $secure = false) - { - $this->log("Connecting to: ${host}:${port}"); - return parent::connect($host, $port, $secure); - } - - /** - * Send request to the remote server - * - * @param string $method - * @param Zend_Uri_Http $uri - * @param string $http_ver - * @param array $headers - * @param string $body - * @return string Request as string - */ - public function write($method, $uri, $http_ver = '1.1', $headers = array(), $body = '') - { - $request = parent::write($method, $uri, $http_ver, $headers, $body); - $this->log("\n\n" . $request); - return $request; - } - - /** - * Read response from server - * - * @return string - */ - public function read() - { - $response = parent::read(); - $this->log("${response}\n\n"); - return $response; - } - - /** - * Close the connection to the server - * - */ - public function close() - { - $this->log("Closing socket\n\n"); - parent::close(); - } - -} diff --git a/library/vendor/Zend/Gdata/App/MediaEntry.php b/library/vendor/Zend/Gdata/App/MediaEntry.php deleted file mode 100644 index ad4b3b019..000000000 --- a/library/vendor/Zend/Gdata/App/MediaEntry.php +++ /dev/null @@ -1,115 +0,0 @@ -_mediaSource = $mediaSource; - } - - /** - * Return the MIME multipart representation of this MediaEntry. - * - * @return string|Zend_Gdata_MediaMimeStream The MIME multipart - * representation of this MediaEntry. If the entry consisted only - * of XML, a string is returned. - */ - public function encode() - { - $xmlData = $this->saveXML(); - $mediaSource = $this->getMediaSource(); - if ($mediaSource === null) { - // No attachment, just send XML for entry - return $xmlData; - } else { - return new Zend_Gdata_MediaMimeStream($xmlData, - $mediaSource->getFilename(), $mediaSource->getContentType()); - } - } - - /** - * Return the MediaSource object representing the file attached to this - * MediaEntry. - * - * @return Zend_Gdata_App_MediaSource The attached MediaSource/file - */ - public function getMediaSource() - { - return $this->_mediaSource; - } - - /** - * Set the MediaSource object (file) for this MediaEntry - * - * @param Zend_Gdata_App_MediaSource $value The attached MediaSource/file - * @return Zend_Gdata_App_MediaEntry Provides a fluent interface - */ - public function setMediaSource($value) - { - if ($value instanceof Zend_Gdata_App_MediaSource) { - $this->_mediaSource = $value; - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'You must specify the media data as a class that conforms to Zend_Gdata_App_MediaSource.'); - } - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/App/MediaFileSource.php b/library/vendor/Zend/Gdata/App/MediaFileSource.php deleted file mode 100644 index 4396ad33f..000000000 --- a/library/vendor/Zend/Gdata/App/MediaFileSource.php +++ /dev/null @@ -1,143 +0,0 @@ -setFilename($filename); - } - - /** - * Return the MIME multipart representation of this MediaEntry. - * - * @return string - * @throws Zend_Gdata_App_IOException - */ - public function encode() - { - if ($this->getFilename() !== null && - is_readable($this->getFilename())) { - - // Retrieves the file, using the include path - $fileHandle = fopen($this->getFilename(), 'r', true); - $result = fread($fileHandle, filesize($this->getFilename())); - if ($result === false) { - throw new Zend_Gdata_App_IOException("Error reading file - " . - $this->getFilename() . '. Read failed.'); - } - fclose($fileHandle); - return $result; - } else { - throw new Zend_Gdata_App_IOException("Error reading file - " . - $this->getFilename() . '. File is not readable.'); - } - } - - /** - * Get the filename associated with this reader. - * - * @return string - */ - public function getFilename() - { - return $this->_filename; - } - - /** - * Set the filename which is to be read. - * - * @param string $value The desired file handle. - * @return Zend_Gdata_App_MediaFileSource Provides a fluent interface. - */ - public function setFilename($value) - { - $this->_filename = $value; - return $this; - } - - /** - * The content type for the file attached (example image/png) - * - * @return string The content type - */ - public function getContentType() - { - return $this->_contentType; - } - - /** - * Set the content type for the file attached (example image/png) - * - * @param string $value The content type - * @return Zend_Gdata_App_MediaFileSource Provides a fluent interface - */ - public function setContentType($value) - { - $this->_contentType = $value; - return $this; - } - - /** - * Alias for getFilename(). - * - * @return string - */ - public function __toString() - { - return $this->getFilename(); - } - -} diff --git a/library/vendor/Zend/Gdata/App/MediaSource.php b/library/vendor/Zend/Gdata/App/MediaSource.php deleted file mode 100644 index 46071b49e..000000000 --- a/library/vendor/Zend/Gdata/App/MediaSource.php +++ /dev/null @@ -1,73 +0,0 @@ - 0) { - // timestamp is already properly formatted - return $timestamp; - } else { - $ts = strtotime($timestamp); - if ($ts === false) { - throw new Zend_Gdata_App_InvalidArgumentException("Invalid timestamp: $timestamp."); - } - return date('Y-m-d\TH:i:s', $ts); - } - } - - /** Find the greatest key that is less than or equal to a given upper - * bound, and return the value associated with that key. - * - * @param integer|null $maximumKey The upper bound for keys. If null, the - * maxiumum valued key will be found. - * @param array $collection An two-dimensional array of key/value pairs - * to search through. - * @returns mixed The value corresponding to the located key. - * @throws Zend_Gdata_App_Exception Thrown if $collection is empty. - */ - public static function findGreatestBoundedValue($maximumKey, $collection) - { - $found = false; - $foundKey = $maximumKey; - - // Sanity check: Make sure that the collection isn't empty - if (sizeof($collection) == 0) { - throw new Zend_Gdata_App_Exception("Empty namespace collection encountered."); - } - - if ($maximumKey === null) { - // If the key is null, then we return the maximum available - $keys = array_keys($collection); - sort($keys); - $found = true; - $foundKey = end($keys); - } else { - // Otherwise, we optimistically guess that the current version - // will have a matching namespce. If that fails, we decrement the - // version until we find a match. - while (!$found && $foundKey >= 0) { - if (array_key_exists($foundKey, $collection)) - $found = true; - else - $foundKey--; - } - } - - // Guard: A namespace wasn't found. Either none were registered, or - // the current protcol version is lower than the maximum namespace. - if (!$found) { - throw new Zend_Gdata_App_Exception("Namespace compatible with current protocol not found."); - } - - return $foundKey; - } - -} diff --git a/library/vendor/Zend/Gdata/App/VersionException.php b/library/vendor/Zend/Gdata/App/VersionException.php deleted file mode 100644 index 52ad894e5..000000000 --- a/library/vendor/Zend/Gdata/App/VersionException.php +++ /dev/null @@ -1,41 +0,0 @@ -filterHttpRequest('GET', $request_uri); - $url = $filterResult['url']; - $headers = $filterResult['headers']; - $client->setHeaders($headers); - $client->setUri($url); - } else { - $client->setUri($request_uri); - } - - try { - $response = $client->request('GET'); - } catch (Zend_Http_Client_Exception $e) { - throw new Zend_Gdata_App_HttpException($e->getMessage(), $e); - } - - // Parse Google's response - if ($response->isSuccessful()) { - $goog_resp = array(); - foreach (explode("\n", $response->getBody()) as $l) { - $l = chop($l); - if ($l) { - list($key, $val) = explode('=', chop($l), 2); - $goog_resp[$key] = $val; - } - } - return $goog_resp['Token']; - } else { - throw new Zend_Gdata_App_AuthException( - 'Token upgrade failed. Reason: ' . $response->getBody()); - } - } - - /** - * Revoke a token - * - * @param string $token The token to revoke - * @param Zend_Http_Client $client (optional) HTTP client to use to make the request - * @param string $request_uri (optional) URI to which to direct the revokation request - * @return boolean Whether the revokation was successful - * @throws Zend_Gdata_App_HttpException - */ - public static function AuthSubRevokeToken($token, $client = null, - $request_uri = self::AUTHSUB_REVOKE_TOKEN_URI) - { - $client = self::getHttpClient($token, $client); - - if ($client instanceof Zend_Gdata_HttpClient) { - $filterResult = $client->filterHttpRequest('GET', $request_uri); - $url = $filterResult['url']; - $headers = $filterResult['headers']; - $client->setHeaders($headers); - $client->setUri($url); - $client->resetParameters(); - } else { - $client->setUri($request_uri); - } - - ob_start(); - try { - $response = $client->request('GET'); - } catch (Zend_Http_Client_Exception $e) { - ob_end_clean(); - throw new Zend_Gdata_App_HttpException($e->getMessage(), $e); - } - ob_end_clean(); - // Parse Google's response - if ($response->isSuccessful()) { - return true; - } else { - return false; - } - } - - - /** - * get token information - * - * @param string $token The token to retrieve information about - * @param Zend_Http_Client $client (optional) HTTP client to use to - * make the request - * @param string $request_uri (optional) URI to which to direct - * the information request - */ - public static function getAuthSubTokenInfo( - $token, $client = null, $request_uri = self::AUTHSUB_TOKEN_INFO_URI) - { - $client = self::getHttpClient($token, $client); - - if ($client instanceof Zend_Gdata_HttpClient) { - $filterResult = $client->filterHttpRequest('GET', $request_uri); - $url = $filterResult['url']; - $headers = $filterResult['headers']; - $client->setHeaders($headers); - $client->setUri($url); - } else { - $client->setUri($request_uri); - } - - ob_start(); - try { - $response = $client->request('GET'); - } catch (Zend_Http_Client_Exception $e) { - ob_end_clean(); - throw new Zend_Gdata_App_HttpException($e->getMessage(), $e); - } - ob_end_clean(); - return $response->getBody(); - } - - /** - * Retrieve a HTTP client object with AuthSub credentials attached - * as the Authorization header - * - * @param string $token The token to retrieve information about - * @param Zend_Gdata_HttpClient $client (optional) HTTP client to use to make the request - */ - public static function getHttpClient($token, $client = null) - { - if ($client == null) { - $client = new Zend_Gdata_HttpClient(); - } - if (!$client instanceof Zend_Gdata_HttpClient) { - throw new Zend_Gdata_App_HttpException('Client is not an instance of Zend_Gdata_HttpClient.'); - } - $useragent = 'Zend_Framework_Gdata/' . Zend_Version::VERSION; - $client->setConfig(array( - 'strictredirects' => true, - 'useragent' => $useragent - ) - ); - $client->setAuthSubToken($token); - return $client; - } - -} diff --git a/library/vendor/Zend/Gdata/Books.php b/library/vendor/Zend/Gdata/Books.php deleted file mode 100755 index d0b349704..000000000 --- a/library/vendor/Zend/Gdata/Books.php +++ /dev/null @@ -1,198 +0,0 @@ -registerPackage('Zend_Gdata_Books'); - $this->registerPackage('Zend_Gdata_Books_Extension'); - parent::__construct($client, $applicationId); - $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); - } - - /** - * Retrieves a feed of volumes. - * - * @param Zend_Gdata_Query|string|null $location (optional) The URL to - * query or a Zend_Gdata_Query object from which a URL can be - * determined. - * @return Zend_Gdata_Books_VolumeFeed The feed of volumes found at the - * specified URL. - */ - public function getVolumeFeed($location = null) - { - if ($location == null) { - $uri = self::VOLUME_FEED_URI; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Books_VolumeFeed'); - } - - /** - * Retrieves a specific volume entry. - * - * @param string|null $volumeId The volumeId of interest. - * @param Zend_Gdata_Query|string|null $location (optional) The URL to - * query or a Zend_Gdata_Query object from which a URL can be - * determined. - * @return Zend_Gdata_Books_VolumeEntry The feed of volumes found at the - * specified URL. - */ - public function getVolumeEntry($volumeId = null, $location = null) - { - if ($volumeId !== null) { - $uri = self::VOLUME_FEED_URI . "/" . $volumeId; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Books_VolumeEntry'); - } - - /** - * Retrieves a feed of volumes, by default the User library feed. - * - * @param Zend_Gdata_Query|string|null $location (optional) The URL to - * query. - * @return Zend_Gdata_Books_VolumeFeed The feed of volumes found at the - * specified URL. - */ - public function getUserLibraryFeed($location = null) - { - if ($location == null) { - $uri = self::MY_LIBRARY_FEED_URI; - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Books_VolumeFeed'); - } - - /** - * Retrieves a feed of volumes, by default the User annotation feed - * - * @param Zend_Gdata_Query|string|null $location (optional) The URL to - * query. - * @return Zend_Gdata_Books_VolumeFeed The feed of volumes found at the - * specified URL. - */ - public function getUserAnnotationFeed($location = null) - { - if ($location == null) { - $uri = self::MY_ANNOTATION_FEED_URI; - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Books_VolumeFeed'); - } - - /** - * Insert a Volume / Annotation - * - * @param Zend_Gdata_Books_VolumeEntry $entry - * @param Zend_Gdata_Query|string|null $location (optional) The URL to - * query - * @return Zend_Gdata_Books_VolumeEntry The inserted volume entry. - */ - public function insertVolume($entry, $location = null) - { - if ($location == null) { - $uri = self::MY_LIBRARY_FEED_URI; - } else { - $uri = $location; - } - return parent::insertEntry( - $entry, $uri, 'Zend_Gdata_Books_VolumeEntry'); - } - - /** - * Delete a Volume - * - * @param Zend_Gdata_Books_VolumeEntry $entry - * @return void - */ - public function deleteVolume($entry) - { - $entry->delete(); - } - -} diff --git a/library/vendor/Zend/Gdata/Books/CollectionEntry.php b/library/vendor/Zend/Gdata/Books/CollectionEntry.php deleted file mode 100644 index c67fbcff1..000000000 --- a/library/vendor/Zend/Gdata/Books/CollectionEntry.php +++ /dev/null @@ -1,55 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct($element); - } - - -} - diff --git a/library/vendor/Zend/Gdata/Books/CollectionFeed.php b/library/vendor/Zend/Gdata/Books/CollectionFeed.php deleted file mode 100644 index 47600a4d8..000000000 --- a/library/vendor/Zend/Gdata/Books/CollectionFeed.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct($element); - } - - /** - * The classname for individual feed elements. - * - * @var string - */ - protected $_entryClassName = 'Zend_Gdata_Books_CollectionEntry'; - -} - diff --git a/library/vendor/Zend/Gdata/Books/Extension/AnnotationLink.php b/library/vendor/Zend/Gdata/Books/Extension/AnnotationLink.php deleted file mode 100644 index 78dee0a34..000000000 --- a/library/vendor/Zend/Gdata/Books/Extension/AnnotationLink.php +++ /dev/null @@ -1,62 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct($href, $rel, $type, $hrefLang, $title, $length); - } - -} - diff --git a/library/vendor/Zend/Gdata/Books/Extension/BooksCategory.php b/library/vendor/Zend/Gdata/Books/Extension/BooksCategory.php deleted file mode 100644 index 157f4abd3..000000000 --- a/library/vendor/Zend/Gdata/Books/Extension/BooksCategory.php +++ /dev/null @@ -1,58 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct($term, $scheme, $label); - } - -} diff --git a/library/vendor/Zend/Gdata/Books/Extension/BooksLink.php b/library/vendor/Zend/Gdata/Books/Extension/BooksLink.php deleted file mode 100644 index b747ac895..000000000 --- a/library/vendor/Zend/Gdata/Books/Extension/BooksLink.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct($href, $rel, $type, $hrefLang, $title, $length); - } - - -} - diff --git a/library/vendor/Zend/Gdata/Books/Extension/Embeddability.php b/library/vendor/Zend/Gdata/Books/Extension/Embeddability.php deleted file mode 100644 index 1b350c02a..000000000 --- a/library/vendor/Zend/Gdata/Books/Extension/Embeddability.php +++ /dev/null @@ -1,121 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct(); - $this->_value = $value; - } - - /** - * Retrieves DOMElement which corresponds to this element and all - * child properties. This is used to build this object back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistance. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc); - if ($this->_value !== null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - /** - * Extracts XML attributes from the DOM and converts them to the - * appropriate object members. - * - * @param DOMNode $attribute The DOMNode attribute to be handled. - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Returns the programmatic value that describes the embeddability of a - * volume in Google Book Search - * - * @return string|null The value - */ - public function getValue() - { - return $this->_value; - } - - /** - * Sets the programmatic value that describes the embeddability of a - * volume in Google Book Search - * - * @param string|null $value Programmatic value that describes the - * embeddability of a volume in Google Book Search - * @return Zend_Gdata_Books_Extension_Embeddability Provides a fluent - * interface - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - -} - diff --git a/library/vendor/Zend/Gdata/Books/Extension/InfoLink.php b/library/vendor/Zend/Gdata/Books/Extension/InfoLink.php deleted file mode 100644 index 086cf1789..000000000 --- a/library/vendor/Zend/Gdata/Books/Extension/InfoLink.php +++ /dev/null @@ -1,58 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct($href, $rel, $type, $hrefLang, $title, $length); - } - -} diff --git a/library/vendor/Zend/Gdata/Books/Extension/PreviewLink.php b/library/vendor/Zend/Gdata/Books/Extension/PreviewLink.php deleted file mode 100644 index da2604304..000000000 --- a/library/vendor/Zend/Gdata/Books/Extension/PreviewLink.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct($href, $rel, $type, $hrefLang, $title, $length); - } - -} diff --git a/library/vendor/Zend/Gdata/Books/Extension/Review.php b/library/vendor/Zend/Gdata/Books/Extension/Review.php deleted file mode 100644 index 463e9581e..000000000 --- a/library/vendor/Zend/Gdata/Books/Extension/Review.php +++ /dev/null @@ -1,151 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct(); - $this->_lang = $lang; - $this->_type = $type; - $this->_text = $value; - } - - /** - * Retrieves DOMElement which corresponds to this element and all - * child properties. This is used to build this object back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistance. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc); - if ($this->_lang !== null) { - $element->setAttribute('lang', $this->_lang); - } - if ($this->_type !== null) { - $element->setAttribute('type', $this->_type); - } - return $element; - } - - /** - * Extracts XML attributes from the DOM and converts them to the - * appropriate object members. - * - * @param DOMNode $attribute The DOMNode attribute to be handled. - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'lang': - $this->_lang = $attribute->nodeValue; - break; - case 'type': - $this->_type = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Returns the language of link title - * - * @return string The lang - */ - public function getLang() - { - return $this->_lang; - } - - /** - * Returns the type of text construct (typically 'text', 'html' or 'xhtml') - * - * @return string The type - */ - public function getType() - { - return $this->_type; - } - - /** - * Sets the language of link title - * - * @param string $lang language of link title - * @return Zend_Gdata_Books_Extension_Review Provides a fluent interface - */ - public function setLang($lang) - { - $this->_lang = $lang; - return $this; - } - - /** - * Sets the type of text construct (typically 'text', 'html' or 'xhtml') - * - * @param string $type type of text construct (typically 'text', 'html' or 'xhtml') - * @return Zend_Gdata_Books_Extension_Review Provides a fluent interface - */ - public function setType($type) - { - $this->_type = $type; - return $this; - } - - -} - diff --git a/library/vendor/Zend/Gdata/Books/Extension/ThumbnailLink.php b/library/vendor/Zend/Gdata/Books/Extension/ThumbnailLink.php deleted file mode 100644 index 112d358af..000000000 --- a/library/vendor/Zend/Gdata/Books/Extension/ThumbnailLink.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct($href, $rel, $type, $hrefLang, $title, $length); - } - -} diff --git a/library/vendor/Zend/Gdata/Books/Extension/Viewability.php b/library/vendor/Zend/Gdata/Books/Extension/Viewability.php deleted file mode 100644 index f336e63d7..000000000 --- a/library/vendor/Zend/Gdata/Books/Extension/Viewability.php +++ /dev/null @@ -1,122 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct(); - $this->_value = $value; - } - - /** - * Retrieves DOMElement which corresponds to this element and all - * child properties. This is used to build this object back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistance. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc); - if ($this->_value !== null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - /** - * Extracts XML attributes from the DOM and converts them to the - * appropriate object members. - * - * @param DOMNode $attribute The DOMNode attribute to be handled. - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Returns the programmatic value that describes the viewability of a volume - * in Google Book Search - * - * @return string The value - */ - public function getValue() - { - return $this->_value; - } - - /** - * Sets the programmatic value that describes the viewability of a volume in - * Google Book Search - * - * @param string $value programmatic value that describes the viewability - * of a volume in Googl eBook Search - * @return Zend_Gdata_Books_Extension_Viewability Provides a fluent - * interface - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - -} - diff --git a/library/vendor/Zend/Gdata/Books/VolumeEntry.php b/library/vendor/Zend/Gdata/Books/VolumeEntry.php deleted file mode 100644 index 05cb55322..000000000 --- a/library/vendor/Zend/Gdata/Books/VolumeEntry.php +++ /dev/null @@ -1,671 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves DOMElement which corresponds to this element and all - * child properties. This is used to build this object back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistance. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc); - if ($this->_creators !== null) { - foreach ($this->_creators as $creators) { - $element->appendChild($creators->getDOM( - $element->ownerDocument)); - } - } - if ($this->_dates !== null) { - foreach ($this->_dates as $dates) { - $element->appendChild($dates->getDOM($element->ownerDocument)); - } - } - if ($this->_descriptions !== null) { - foreach ($this->_descriptions as $descriptions) { - $element->appendChild($descriptions->getDOM( - $element->ownerDocument)); - } - } - if ($this->_formats !== null) { - foreach ($this->_formats as $formats) { - $element->appendChild($formats->getDOM( - $element->ownerDocument)); - } - } - if ($this->_identifiers !== null) { - foreach ($this->_identifiers as $identifiers) { - $element->appendChild($identifiers->getDOM( - $element->ownerDocument)); - } - } - if ($this->_languages !== null) { - foreach ($this->_languages as $languages) { - $element->appendChild($languages->getDOM( - $element->ownerDocument)); - } - } - if ($this->_publishers !== null) { - foreach ($this->_publishers as $publishers) { - $element->appendChild($publishers->getDOM( - $element->ownerDocument)); - } - } - if ($this->_subjects !== null) { - foreach ($this->_subjects as $subjects) { - $element->appendChild($subjects->getDOM( - $element->ownerDocument)); - } - } - if ($this->_titles !== null) { - foreach ($this->_titles as $titles) { - $element->appendChild($titles->getDOM($element->ownerDocument)); - } - } - if ($this->_comments !== null) { - $element->appendChild($this->_comments->getDOM( - $element->ownerDocument)); - } - if ($this->_embeddability !== null) { - $element->appendChild($this->_embeddability->getDOM( - $element->ownerDocument)); - } - if ($this->_rating !== null) { - $element->appendChild($this->_rating->getDOM( - $element->ownerDocument)); - } - if ($this->_review !== null) { - $element->appendChild($this->_review->getDOM( - $element->ownerDocument)); - } - if ($this->_viewability !== null) { - $element->appendChild($this->_viewability->getDOM( - $element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual objects of the appropriate type and stores - * them in this object based upon DOM data. - * - * @param DOMNode $child The DOMNode to process. - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('dc') . ':' . 'creator': - $creators = new Zend_Gdata_DublinCore_Extension_Creator(); - $creators->transferFromDOM($child); - $this->_creators[] = $creators; - break; - case $this->lookupNamespace('dc') . ':' . 'date': - $dates = new Zend_Gdata_DublinCore_Extension_Date(); - $dates->transferFromDOM($child); - $this->_dates[] = $dates; - break; - case $this->lookupNamespace('dc') . ':' . 'description': - $descriptions = new Zend_Gdata_DublinCore_Extension_Description(); - $descriptions->transferFromDOM($child); - $this->_descriptions[] = $descriptions; - break; - case $this->lookupNamespace('dc') . ':' . 'format': - $formats = new Zend_Gdata_DublinCore_Extension_Format(); - $formats->transferFromDOM($child); - $this->_formats[] = $formats; - break; - case $this->lookupNamespace('dc') . ':' . 'identifier': - $identifiers = new Zend_Gdata_DublinCore_Extension_Identifier(); - $identifiers->transferFromDOM($child); - $this->_identifiers[] = $identifiers; - break; - case $this->lookupNamespace('dc') . ':' . 'language': - $languages = new Zend_Gdata_DublinCore_Extension_Language(); - $languages->transferFromDOM($child); - $this->_languages[] = $languages; - break; - case $this->lookupNamespace('dc') . ':' . 'publisher': - $publishers = new Zend_Gdata_DublinCore_Extension_Publisher(); - $publishers->transferFromDOM($child); - $this->_publishers[] = $publishers; - break; - case $this->lookupNamespace('dc') . ':' . 'subject': - $subjects = new Zend_Gdata_DublinCore_Extension_Subject(); - $subjects->transferFromDOM($child); - $this->_subjects[] = $subjects; - break; - case $this->lookupNamespace('dc') . ':' . 'title': - $titles = new Zend_Gdata_DublinCore_Extension_Title(); - $titles->transferFromDOM($child); - $this->_titles[] = $titles; - break; - case $this->lookupNamespace('gd') . ':' . 'comments': - $comments = new Zend_Gdata_Extension_Comments(); - $comments->transferFromDOM($child); - $this->_comments = $comments; - break; - case $this->lookupNamespace('gbs') . ':' . 'embeddability': - $embeddability = new Zend_Gdata_Books_Extension_Embeddability(); - $embeddability->transferFromDOM($child); - $this->_embeddability = $embeddability; - break; - case $this->lookupNamespace('gd') . ':' . 'rating': - $rating = new Zend_Gdata_Extension_Rating(); - $rating->transferFromDOM($child); - $this->_rating = $rating; - break; - case $this->lookupNamespace('gbs') . ':' . 'review': - $review = new Zend_Gdata_Books_Extension_Review(); - $review->transferFromDOM($child); - $this->_review = $review; - break; - case $this->lookupNamespace('gbs') . ':' . 'viewability': - $viewability = new Zend_Gdata_Books_Extension_Viewability(); - $viewability->transferFromDOM($child); - $this->_viewability = $viewability; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Returns the Comments class - * - * @return Zend_Gdata_Extension_Comments|null The comments - */ - public function getComments() - { - return $this->_comments; - } - - /** - * Returns the creators - * - * @return array The creators - */ - public function getCreators() - { - return $this->_creators; - } - - /** - * Returns the dates - * - * @return array The dates - */ - public function getDates() - { - return $this->_dates; - } - - /** - * Returns the descriptions - * - * @return array The descriptions - */ - public function getDescriptions() - { - return $this->_descriptions; - } - - /** - * Returns the embeddability - * - * @return Zend_Gdata_Books_Extension_Embeddability|null The embeddability - */ - public function getEmbeddability() - { - return $this->_embeddability; - } - - /** - * Returns the formats - * - * @return array The formats - */ - public function getFormats() - { - return $this->_formats; - } - - /** - * Returns the identifiers - * - * @return array The identifiers - */ - public function getIdentifiers() - { - return $this->_identifiers; - } - - /** - * Returns the languages - * - * @return array The languages - */ - public function getLanguages() - { - return $this->_languages; - } - - /** - * Returns the publishers - * - * @return array The publishers - */ - public function getPublishers() - { - return $this->_publishers; - } - - /** - * Returns the rating - * - * @return Zend_Gdata_Extension_Rating|null The rating - */ - public function getRating() - { - return $this->_rating; - } - - /** - * Returns the review - * - * @return Zend_Gdata_Books_Extension_Review|null The review - */ - public function getReview() - { - return $this->_review; - } - - /** - * Returns the subjects - * - * @return array The subjects - */ - public function getSubjects() - { - return $this->_subjects; - } - - /** - * Returns the titles - * - * @return array The titles - */ - public function getTitles() - { - return $this->_titles; - } - - /** - * Returns the viewability - * - * @return Zend_Gdata_Books_Extension_Viewability|null The viewability - */ - public function getViewability() - { - return $this->_viewability; - } - - /** - * Sets the Comments class - * - * @param Zend_Gdata_Extension_Comments|null $comments Comments class - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setComments($comments) - { - $this->_comments = $comments; - return $this; - } - - /** - * Sets the creators - * - * @param array $creators Creators|null - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setCreators($creators) - { - $this->_creators = $creators; - return $this; - } - - /** - * Sets the dates - * - * @param array $dates dates - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setDates($dates) - { - $this->_dates = $dates; - return $this; - } - - /** - * Sets the descriptions - * - * @param array $descriptions descriptions - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setDescriptions($descriptions) - { - $this->_descriptions = $descriptions; - return $this; - } - - /** - * Sets the embeddability - * - * @param Zend_Gdata_Books_Extension_Embeddability|null $embeddability - * embeddability - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setEmbeddability($embeddability) - { - $this->_embeddability = $embeddability; - return $this; - } - - /** - * Sets the formats - * - * @param array $formats formats - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setFormats($formats) - { - $this->_formats = $formats; - return $this; - } - - /** - * Sets the identifiers - * - * @param array $identifiers identifiers - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setIdentifiers($identifiers) - { - $this->_identifiers = $identifiers; - return $this; - } - - /** - * Sets the languages - * - * @param array $languages languages - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setLanguages($languages) - { - $this->_languages = $languages; - return $this; - } - - /** - * Sets the publishers - * - * @param array $publishers publishers - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setPublishers($publishers) - { - $this->_publishers = $publishers; - return $this; - } - - /** - * Sets the rating - * - * @param Zend_Gdata_Extension_Rating|null $rating rating - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setRating($rating) - { - $this->_rating = $rating; - return $this; - } - - /** - * Sets the review - * - * @param Zend_Gdata_Books_Extension_Review|null $review review - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setReview($review) - { - $this->_review = $review; - return $this; - } - - /** - * Sets the subjects - * - * @param array $subjects subjects - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setSubjects($subjects) - { - $this->_subjects = $subjects; - return $this; - } - - /** - * Sets the titles - * - * @param array $titles titles - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setTitles($titles) - { - $this->_titles = $titles; - return $this; - } - - /** - * Sets the viewability - * - * @param Zend_Gdata_Books_Extension_Viewability|null $viewability - * viewability - * @return Zend_Gdata_Books_VolumeEntry Provides a fluent interface - */ - public function setViewability($viewability) - { - $this->_viewability = $viewability; - return $this; - } - - - /** - * Gets the volume ID based upon the atom:id value - * - * @return string The volume ID - * @throws Zend_Gdata_App_Exception - */ - public function getVolumeId() - { - $fullId = $this->getId()->getText(); - $position = strrpos($fullId, '/'); - if ($position === false) { - throw new Zend_Gdata_App_Exception('Slash not found in atom:id'); - } else { - return substr($fullId, strrpos($fullId,'/') + 1); - } - } - - /** - * Gets the thumbnail link - * - * @return Zend_Gdata_App_Extension_link|null The thumbnail link - */ - public function getThumbnailLink() - { - return $this->getLink(self::THUMBNAIL_LINK_REL); - } - - /** - * Gets the preview link - * - * @return Zend_Gdata_App_Extension_Link|null The preview link - */ - public function getPreviewLink() - { - return $this->getLink(self::PREVIEW_LINK_REL); - } - - /** - * Gets the info link - * - * @return Zend_Gdata_App_Extension_Link|null The info link - */ - public function getInfoLink() - { - return $this->getLink(self::INFO_LINK_REL); - } - - /** - * Gets the annotations link - * - * @return Zend_Gdata_App_Extension_Link|null The annotations link - */ - public function getAnnotationLink() - { - return $this->getLink(self::ANNOTATION_LINK_REL); - } - -} diff --git a/library/vendor/Zend/Gdata/Books/VolumeFeed.php b/library/vendor/Zend/Gdata/Books/VolumeFeed.php deleted file mode 100644 index 02596883e..000000000 --- a/library/vendor/Zend/Gdata/Books/VolumeFeed.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Books::$namespaces); - parent::__construct($element); - } - - /** - * The classname for individual feed elements. - * - * @var string - */ - protected $_entryClassName = 'Zend_Gdata_Books_VolumeEntry'; - -} - diff --git a/library/vendor/Zend/Gdata/Books/VolumeQuery.php b/library/vendor/Zend/Gdata/Books/VolumeQuery.php deleted file mode 100755 index 0a6008ba7..000000000 --- a/library/vendor/Zend/Gdata/Books/VolumeQuery.php +++ /dev/null @@ -1,110 +0,0 @@ -_params['min-viewability'] = 'full'; - break; - case 'partial_view': - $this->_params['min-viewability'] = 'partial'; - break; - case null: - unset($this->_params['min-viewability']); - break; - } - return $this; - } - - /** - * Minimum viewability of volumes to include in search results - * - * @return string|null min-viewability - */ - public function getMinViewability() - { - if (array_key_exists('min-viewability', $this->_params)) { - return $this->_params['min-viewability']; - } else { - return null; - } - } - - /** - * Returns the generated full query URL - * - * @return string The URL - */ - public function getQueryUrl() - { - if (isset($this->_url)) { - $url = $this->_url; - } else { - $url = Zend_Gdata_Books::VOLUME_FEED_URI; - } - if ($this->getCategory() !== null) { - $url .= '/-/' . $this->getCategory(); - } - $url = $url . $this->getQueryString(); - return $url; - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar.php b/library/vendor/Zend/Gdata/Calendar.php deleted file mode 100644 index 4d0c6cd8e..000000000 --- a/library/vendor/Zend/Gdata/Calendar.php +++ /dev/null @@ -1,162 +0,0 @@ -registerPackage('Zend_Gdata_Calendar'); - $this->registerPackage('Zend_Gdata_Calendar_Extension'); - parent::__construct($client, $applicationId); - $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); - } - - /** - * Retreive feed object - * - * @param mixed $location The location for the feed, as a URL or Query - * @return Zend_Gdata_Calendar_EventFeed - */ - public function getCalendarEventFeed($location = null) - { - if ($location == null) { - $uri = self::CALENDAR_EVENT_FEED_URI; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Calendar_EventFeed'); - } - - /** - * Retreive entry object - * - * @return Zend_Gdata_Calendar_EventEntry - */ - public function getCalendarEventEntry($location = null) - { - if ($location == null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Calendar_EventEntry'); - } - - - /** - * Retrieve feed object - * - * @return Zend_Gdata_Calendar_ListFeed - */ - public function getCalendarListFeed() - { - $uri = self::CALENDAR_FEED_URI . '/default'; - return parent::getFeed($uri,'Zend_Gdata_Calendar_ListFeed'); - } - - /** - * Retreive entryobject - * - * @return Zend_Gdata_Calendar_ListEntry - */ - public function getCalendarListEntry($location = null) - { - if ($location == null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri,'Zend_Gdata_Calendar_ListEntry'); - } - - public function insertEvent($event, $uri=null) - { - if ($uri == null) { - $uri = $this->_defaultPostUri; - } - $newEvent = $this->insertEntry($event, $uri, 'Zend_Gdata_Calendar_EventEntry'); - return $newEvent; - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/EventEntry.php b/library/vendor/Zend/Gdata/Calendar/EventEntry.php deleted file mode 100644 index 3eb7a215f..000000000 --- a/library/vendor/Zend/Gdata/Calendar/EventEntry.php +++ /dev/null @@ -1,158 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_sendEventNotifications != null) { - $element->appendChild($this->_sendEventNotifications->getDOM($element->ownerDocument)); - } - if ($this->_timezone != null) { - $element->appendChild($this->_timezone->getDOM($element->ownerDocument)); - } - if ($this->_quickadd != null) { - $element->appendChild($this->_quickadd->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gCal') . ':' . 'sendEventNotifications'; - $sendEventNotifications = new Zend_Gdata_Calendar_Extension_SendEventNotifications(); - $sendEventNotifications->transferFromDOM($child); - $this->_sendEventNotifications = $sendEventNotifications; - break; - case $this->lookupNamespace('gCal') . ':' . 'timezone'; - $timezone = new Zend_Gdata_Calendar_Extension_Timezone(); - $timezone->transferFromDOM($child); - $this->_timezone = $timezone; - break; - case $this->lookupNamespace('atom') . ':' . 'link'; - $link = new Zend_Gdata_Calendar_Extension_Link(); - $link->transferFromDOM($child); - $this->_link[] = $link; - break; - case $this->lookupNamespace('gCal') . ':' . 'quickadd'; - $quickadd = new Zend_Gdata_Calendar_Extension_QuickAdd(); - $quickadd->transferFromDOM($child); - $this->_quickadd = $quickadd; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - public function getSendEventNotifications() - { - return $this->_sendEventNotifications; - } - - public function setSendEventNotifications($value) - { - $this->_sendEventNotifications = $value; - return $this; - } - - public function getTimezone() - { - return $this->_timezone; - } - - /** - * @param Zend_Gdata_Calendar_Extension_Timezone $value - * @return Zend_Gdata_Extension_EventEntry Provides a fluent interface - */ - public function setTimezone($value) - { - $this->_timezone = $value; - return $this; - } - - public function getQuickAdd() - { - return $this->_quickadd; - } - - /** - * @param Zend_Gdata_Calendar_Extension_QuickAdd $value - * @return Zend_Gdata_Extension_ListEntry Provides a fluent interface - */ - public function setQuickAdd($value) - { - $this->_quickadd = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/EventFeed.php b/library/vendor/Zend/Gdata/Calendar/EventFeed.php deleted file mode 100644 index 603a4fd89..000000000 --- a/library/vendor/Zend/Gdata/Calendar/EventFeed.php +++ /dev/null @@ -1,104 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_timezone != null) { - $element->appendChild($this->_timezone->getDOM($element->ownerDocument)); - } - - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gCal') . ':' . 'timezone'; - $timezone = new Zend_Gdata_Calendar_Extension_Timezone(); - $timezone->transferFromDOM($child); - $this->_timezone = $timezone; - break; - - default: - parent::takeChildFromDOM($child); - break; - } - } - - public function getTimezone() - { - return $this->_timezone; - } - - public function setTimezone($value) - { - $this->_timezone = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/EventQuery.php b/library/vendor/Zend/Gdata/Calendar/EventQuery.php deleted file mode 100644 index a83b05fe7..000000000 --- a/library/vendor/Zend/Gdata/Calendar/EventQuery.php +++ /dev/null @@ -1,485 +0,0 @@ -_comments = $value; - return $this; - } - - /** - * @see $_event - * @param string $value - * @return Zend_Gdata_Calendar_EventQuery Provides a fluent interface - */ - public function setEvent($value) - { - $this->_event = $value; - return $this; - } - - /** - * @see $_projection - * @param string $value - * @return Zend_Gdata_Calendar_EventQuery Provides a fluent interface - */ - public function setProjection($value) - { - $this->_projection = $value; - return $this; - } - - /** - * @see $_user - * @param string $value - * @return Zend_Gdata_Calendar_EventQuery Provides a fluent interface - */ - public function setUser($value) - { - $this->_user = $value; - return $this; - } - - /** - * @see $_visibility - * @param bool $value - * @return Zend_Gdata_Calendar_EventQuery Provides a fluent interface - */ - public function setVisibility($value) - { - $this->_visibility = $value; - return $this; - } - - /** - * @see $_comments; - * @return string comments - */ - public function getComments() - { - return $this->_comments; - } - - /** - * @see $_event; - * @return string event - */ - public function getEvent() - { - return $this->_event; - } - - /** - * @see $_projection - * @return string projection - */ - public function getProjection() - { - return $this->_projection; - } - - /** - * @see $_user - * @return string user - */ - public function getUser() - { - return $this->_user; - } - - /** - * @see $_visibility - * @return string visibility - */ - public function getVisibility() - { - return $this->_visibility; - } - - /** - * @param int $value - * @return Zend_Gdata_Calendar_EventQuery Provides a fluent interface - */ - public function setStartMax($value) - { - if ($value != null) { - $this->_params['start-max'] = Zend_Gdata_App_Util::formatTimestamp($value); - } else { - unset($this->_params['start-max']); - } - return $this; - } - - /** - * @param int $value - * @return Zend_Gdata_Calendar_EventQuery Provides a fluent interface - */ - public function setStartMin($value) - { - if ($value != null) { - $this->_params['start-min'] = Zend_Gdata_App_Util::formatTimestamp($value); - } else { - unset($this->_params['start-min']); - } - return $this; - } - - /** - * @param string $value - * @return Zend_Gdata_Calendar_EventQuery Provides a fluent interface - */ - public function setOrderBy($value) - { - if ($value != null) { - $this->_params['orderby'] = $value; - } else { - unset($this->_params['orderby']); - } - return $this; - } - - /** - * @return int start-max - */ - public function getStartMax() - { - if (array_key_exists('start-max', $this->_params)) { - return $this->_params['start-max']; - } else { - return null; - } - } - - /** - * @return int start-min - */ - public function getStartMin() - { - if (array_key_exists('start-min', $this->_params)) { - return $this->_params['start-min']; - } else { - return null; - } - } - - /** - * @return string orderby - */ - public function getOrderBy() - { - if (array_key_exists('orderby', $this->_params)) { - return $this->_params['orderby']; - } else { - return null; - } - } - - /** - * @return string sortorder - */ - public function getSortOrder() - { - if (array_key_exists('sortorder', $this->_params)) { - return $this->_params['sortorder']; - } else { - return null; - } - } - - /** - * @return string sortorder - */ - public function setSortOrder($value) - { - if ($value != null) { - $this->_params['sortorder'] = $value; - } else { - unset($this->_params['sortorder']); - } - return $this; - } - - /** - * @return string recurrence-expansion-start - */ - public function getRecurrenceExpansionStart() - { - if (array_key_exists('recurrence-expansion-start', $this->_params)) { - return $this->_params['recurrence-expansion-start']; - } else { - return null; - } - } - - /** - * @return string recurrence-expansion-start - */ - public function setRecurrenceExpansionStart($value) - { - if ($value != null) { - $this->_params['recurrence-expansion-start'] = Zend_Gdata_App_Util::formatTimestamp($value); - } else { - unset($this->_params['recurrence-expansion-start']); - } - return $this; - } - - - /** - * @return string recurrence-expansion-end - */ - public function getRecurrenceExpansionEnd() - { - if (array_key_exists('recurrence-expansion-end', $this->_params)) { - return $this->_params['recurrence-expansion-end']; - } else { - return null; - } - } - - /** - * @return string recurrence-expansion-end - */ - public function setRecurrenceExpansionEnd($value) - { - if ($value != null) { - $this->_params['recurrence-expansion-end'] = Zend_Gdata_App_Util::formatTimestamp($value); - } else { - unset($this->_params['recurrence-expansion-end']); - } - return $this; - } - - /** - * @param string $value Also accepts bools. - * @return Zend_Gdata_Calendar_EventQuery Provides a fluent interface - */ - public function getSingleEvents() - { - if (array_key_exists('singleevents', $this->_params)) { - $value = $this->_params['singleevents']; - switch ($value) { - case 'true': - return true; - break; - case 'false': - return false; - break; - default: - throw new Zend_Gdata_App_Exception( - 'Invalid query param value for futureevents: ' . - $value . ' It must be a boolean.'); - } - } else { - return null; - } - } - - /** - * @param string $value Also accepts bools. If using a string, must be either "true" or "false". - * @return Zend_Gdata_Calendar_EventQuery Provides a fluent interface - */ - public function setSingleEvents($value) - { - if ($value !== null) { - if (is_bool($value)) { - $this->_params['singleevents'] = ($value?'true':'false'); - } elseif ($value == 'true' | $value == 'false') { - $this->_params['singleevents'] = $value; - } else { - throw new Zend_Gdata_App_Exception( - 'Invalid query param value for futureevents: ' . - $value . ' It must be a boolean.'); - } - } else { - unset($this->_params['singleevents']); - } - return $this; - } - - /** - * @return string futureevents - */ - public function getFutureEvents() - { - if (array_key_exists('futureevents', $this->_params)) { - $value = $this->_params['futureevents']; - switch ($value) { - case 'true': - return true; - break; - case 'false': - return false; - break; - default: - throw new Zend_Gdata_App_Exception( - 'Invalid query param value for futureevents: ' . - $value . ' It must be a boolean.'); - } - } else { - return null; - } - } - - /** - * @param string $value Also accepts bools. If using a string, must be either "true" or "false" or - * an exception will be thrown on retrieval. - * @return Zend_Gdata_Calendar_EventQuery Provides a fluent interface - */ - public function setFutureEvents($value) - { - if ($value !== null) { - if (is_bool($value)) { - $this->_params['futureevents'] = ($value?'true':'false'); - } elseif ($value == 'true' | $value == 'false') { - $this->_params['futureevents'] = $value; - } else { - throw new Zend_Gdata_App_Exception( - 'Invalid query param value for futureevents: ' . - $value . ' It must be a boolean.'); - } - } else { - unset($this->_params['futureevents']); - } - return $this; - } - - /** - * @return string url - */ - public function getQueryUrl() - { - if (isset($this->_url)) { - $uri = $this->_url; - } else { - $uri = $this->_defaultFeedUri; - } - if ($this->getUser() != null) { - $uri .= '/' . $this->getUser(); - } - if ($this->getVisibility() != null) { - $uri .= '/' . $this->getVisibility(); - } - if ($this->getProjection() != null) { - $uri .= '/' . $this->getProjection(); - } - if ($this->getEvent() != null) { - $uri .= '/' . $this->getEvent(); - if ($this->getComments() != null) { - $uri .= '/comments/' . $this->getComments(); - } - } - $uri .= $this->getQueryString(); - return $uri; - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/Extension/AccessLevel.php b/library/vendor/Zend/Gdata/Calendar/Extension/AccessLevel.php deleted file mode 100644 index 67f4dc01e..000000000 --- a/library/vendor/Zend/Gdata/Calendar/Extension/AccessLevel.php +++ /dev/null @@ -1,124 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct(); - $this->_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value != null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's value attribute. - * - * @return string The attribute being modified. - */ - public function getValue() - { - return $this->_value; - } - - - /** - * Set the value for this element's value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Calendar_Extension_Selected The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/Extension/Color.php b/library/vendor/Zend/Gdata/Calendar/Extension/Color.php deleted file mode 100644 index 8318b646b..000000000 --- a/library/vendor/Zend/Gdata/Calendar/Extension/Color.php +++ /dev/null @@ -1,124 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct(); - $this->_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value != null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's value attribute. - * - * @return string The value associated with this attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Calendar_Extension_Color The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->_value; - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/Extension/Hidden.php b/library/vendor/Zend/Gdata/Calendar/Extension/Hidden.php deleted file mode 100644 index 32f500630..000000000 --- a/library/vendor/Zend/Gdata/Calendar/Extension/Hidden.php +++ /dev/null @@ -1,132 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct(); - $this->_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value !== null) { - $element->setAttribute('value', ($this->_value ? "true" : "false")); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - if ($attribute->nodeValue == "true") { - $this->_value = true; - } - else if ($attribute->nodeValue == "false") { - $this->_value = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); - } - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's value attribute. - * - * @return string The requested attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's value attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Calendar_Extension_Hidden The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->_value; - } - -} - diff --git a/library/vendor/Zend/Gdata/Calendar/Extension/Link.php b/library/vendor/Zend/Gdata/Calendar/Extension/Link.php deleted file mode 100644 index 4eca70ca9..000000000 --- a/library/vendor/Zend/Gdata/Calendar/Extension/Link.php +++ /dev/null @@ -1,123 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct($href, $rel, $type, $hrefLang, $title, $length); - $this->_webContent = $webContent; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_webContent != null) { - $element->appendChild($this->_webContent->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gCal') . ':' . 'webContent': - $webContent = new Zend_Gdata_Calendar_Extension_WebContent(); - $webContent->transferFromDOM($child); - $this->_webContent = $webContent; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value for this element's WebContent attribute. - * - * @return Zend_Gdata_Calendar_Extension_Webcontent The WebContent value - */ - public function getWebContent() - { - return $this->_webContent; - } - - /** - * Set the value for this element's WebContent attribute. - * - * @param Zend_Gdata_Calendar_Extension_WebContent $value The desired value for this attribute. - * @return Zend_Calendar_Extension_Link The element being modified. Provides a fluent interface. - */ - public function setWebContent($value) - { - $this->_webContent = $value; - return $this; - } - - -} - diff --git a/library/vendor/Zend/Gdata/Calendar/Extension/QuickAdd.php b/library/vendor/Zend/Gdata/Calendar/Extension/QuickAdd.php deleted file mode 100644 index 2b92ff677..000000000 --- a/library/vendor/Zend/Gdata/Calendar/Extension/QuickAdd.php +++ /dev/null @@ -1,131 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct(); - $this->_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value !== null) { - $element->setAttribute('value', ($this->_value ? "true" : "false")); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - if ($attribute->nodeValue == "true") { - $this->_value = true; - } - else if ($attribute->nodeValue == "false") { - $this->_value = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); - } - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's value attribute. - * - * @return string The value associated with this attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Calendar_Extension_QuickAdd The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/Extension/Selected.php b/library/vendor/Zend/Gdata/Calendar/Extension/Selected.php deleted file mode 100644 index 13ef9b6dd..000000000 --- a/library/vendor/Zend/Gdata/Calendar/Extension/Selected.php +++ /dev/null @@ -1,131 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct(); - $this->_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value !== null) { - $element->setAttribute('value', ($this->_value ? "true" : "false")); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - if ($attribute->nodeValue == "true") { - $this->_value = true; - } - else if ($attribute->nodeValue == "false") { - $this->_value = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); - } - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's value attribute. - * - * @return bool The value associated with this attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's value attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Calendar_Extension_Selected The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->_value; - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/Extension/SendEventNotifications.php b/library/vendor/Zend/Gdata/Calendar/Extension/SendEventNotifications.php deleted file mode 100644 index 029fe313d..000000000 --- a/library/vendor/Zend/Gdata/Calendar/Extension/SendEventNotifications.php +++ /dev/null @@ -1,131 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct(); - $this->_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value !== null) { - $element->setAttribute('value', ($this->_value ? "true" : "false")); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - if ($attribute->nodeValue == "true") { - $this->_value = true; - } - else if ($attribute->nodeValue == "false") { - $this->_value = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); - } - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's Value attribute. - * - * @return string The requested attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's Value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Extension_SendEventNotifications The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } - -} - diff --git a/library/vendor/Zend/Gdata/Calendar/Extension/Timezone.php b/library/vendor/Zend/Gdata/Calendar/Extension/Timezone.php deleted file mode 100644 index a762e8346..000000000 --- a/library/vendor/Zend/Gdata/Calendar/Extension/Timezone.php +++ /dev/null @@ -1,123 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct(); - $this->_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value != null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's value attribute. - * - * @return string The value associated with this attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Calendar_Extension_Timezone The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/Extension/WebContent.php b/library/vendor/Zend/Gdata/Calendar/Extension/WebContent.php deleted file mode 100644 index cb399107b..000000000 --- a/library/vendor/Zend/Gdata/Calendar/Extension/WebContent.php +++ /dev/null @@ -1,176 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct(); - $this->_url = $url; - $this->_height = $height; - $this->_width = $width; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->url != null) { - $element->setAttribute('url', $this->_url); - } - if ($this->height != null) { - $element->setAttribute('height', $this->_height); - } - if ($this->width != null) { - $element->setAttribute('width', $this->_width); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'url': - $this->_url = $attribute->nodeValue; - break; - case 'height': - $this->_height = $attribute->nodeValue; - break; - case 'width': - $this->_width = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's URL attribute. - * - * @return string The desired value for this attribute. - */ - public function getURL() - { - return $this->_url; - } - - /** - * Set the value for this element's URL attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Calendar_Extension_WebContent The element being modified. - */ - public function setURL($value) - { - $this->_url = $value; - return $this; - } - - /** - * Get the value for this element's height attribute. - * - * @return int The desired value for this attribute. - */ - public function getHeight() - { - return $this->_height; - } - - /** - * Set the value for this element's height attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_Calendar_Extension_WebContent The element being modified. - */ - public function setHeight($value) - { - $this->_height = $value; - return $this; - } - - /** - * Get the value for this element's height attribute. - * - * @return int The desired value for this attribute. - */ - public function getWidth() - { - return $this->_width; - } - - /** - * Set the value for this element's height attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_Calendar_Extension_WebContent The element being modified. - */ - public function setWidth($value) - { - $this->_width = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/ListEntry.php b/library/vendor/Zend/Gdata/Calendar/ListEntry.php deleted file mode 100644 index b349b8806..000000000 --- a/library/vendor/Zend/Gdata/Calendar/ListEntry.php +++ /dev/null @@ -1,238 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_accessLevel != null) { - $element->appendChild($this->_accessLevel->getDOM($element->ownerDocument)); - } - if ($this->_color != null) { - $element->appendChild($this->_color->getDOM($element->ownerDocument)); - } - if ($this->_hidden != null) { - $element->appendChild($this->_hidden->getDOM($element->ownerDocument)); - } - if ($this->_selected != null) { - $element->appendChild($this->_selected->getDOM($element->ownerDocument)); - } - if ($this->_timezone != null) { - $element->appendChild($this->_timezone->getDOM($element->ownerDocument)); - } - if ($this->_where != null) { - foreach ($this->_where as $where) { - $element->appendChild($where->getDOM($element->ownerDocument)); - } - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gCal') . ':' . 'accesslevel'; - $accessLevel = new Zend_Gdata_Calendar_Extension_AccessLevel(); - $accessLevel->transferFromDOM($child); - $this->_accessLevel = $accessLevel; - break; - case $this->lookupNamespace('gCal') . ':' . 'color'; - $color = new Zend_Gdata_Calendar_Extension_Color(); - $color->transferFromDOM($child); - $this->_color = $color; - break; - case $this->lookupNamespace('gCal') . ':' . 'hidden'; - $hidden = new Zend_Gdata_Calendar_Extension_Hidden(); - $hidden->transferFromDOM($child); - $this->_hidden = $hidden; - break; - case $this->lookupNamespace('gCal') . ':' . 'selected'; - $selected = new Zend_Gdata_Calendar_Extension_Selected(); - $selected->transferFromDOM($child); - $this->_selected = $selected; - break; - case $this->lookupNamespace('gCal') . ':' . 'timezone'; - $timezone = new Zend_Gdata_Calendar_Extension_Timezone(); - $timezone->transferFromDOM($child); - $this->_timezone = $timezone; - break; - case $this->lookupNamespace('gd') . ':' . 'where'; - $where = new Zend_Gdata_Extension_Where(); - $where->transferFromDOM($child); - $this->_where[] = $where; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - public function getAccessLevel() - { - return $this->_accessLevel; - } - - /** - * @param Zend_Gdata_Calendar_Extension_AccessLevel $value - * @return Zend_Gdata_Extension_ListEntry Provides a fluent interface - */ - public function setAccessLevel($value) - { - $this->_accessLevel = $value; - return $this; - } - public function getColor() - { - return $this->_color; - } - - /** - * @param Zend_Gdata_Calendar_Extension_Color $value - * @return Zend_Gdata_Extension_ListEntry Provides a fluent interface - */ - public function setColor($value) - { - $this->_color = $value; - return $this; - } - - public function getHidden() - { - return $this->_hidden; - } - - /** - * @param Zend_Gdata_Calendar_Extension_Hidden $value - * @return Zend_Gdata_Extension_ListEntry Provides a fluent interface - */ - public function setHidden($value) - { - $this->_hidden = $value; - return $this; - } - - public function getSelected() - { - return $this->_selected; - } - - /** - * @param Zend_Gdata_Calendar_Extension_Selected $value - * @return Zend_Gdata_Extension_ListEntry Provides a fluent interface - */ - public function setSelected($value) - { - $this->_selected = $value; - return $this; - } - - public function getTimezone() - { - return $this->_timezone; - } - - /** - * @param Zend_Gdata_Calendar_Extension_Timezone $value - * @return Zend_Gdata_Extension_ListEntry Provides a fluent interface - */ - public function setTimezone($value) - { - $this->_timezone = $value; - return $this; - } - - public function getWhere() - { - return $this->_where; - } - - /** - * @param Zend_Gdata_Extension_Where $value - * @return Zend_Gdata_Extension_ListEntry Provides a fluent interface - */ - public function setWhere($value) - { - $this->_where = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Calendar/ListFeed.php b/library/vendor/Zend/Gdata/Calendar/ListFeed.php deleted file mode 100644 index 5c8023e0d..000000000 --- a/library/vendor/Zend/Gdata/Calendar/ListFeed.php +++ /dev/null @@ -1,104 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Calendar::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_timezone != null) { - $element->appendChild($this->_timezone->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gCal') . ':' . 'timezone'; - $timezone = new Zend_Gdata_Calendar_Extension_Timezone(); - $timezone->transferFromDOM($child); - $this->_timezone = $timezone; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - public function getTimezone() - { - return $this->_timezone; - } - - /** - * @param Zend_Gdata_Calendar_Extension_Timezone $value - * @return Zend_Gdata_Extension_ListEntry Provides a fluent interface - */ - public function setTimezone($value) - { - $this->_timezone = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/ClientLogin.php b/library/vendor/Zend/Gdata/ClientLogin.php deleted file mode 100644 index fcc9817f0..000000000 --- a/library/vendor/Zend/Gdata/ClientLogin.php +++ /dev/null @@ -1,174 +0,0 @@ -setUri($loginUri); - $useragent = $source . ' Zend_Framework_Gdata/' . Zend_Version::VERSION; - $client->setConfig(array( - 'maxredirects' => 0, - 'strictredirects' => true, - 'useragent' => $useragent - ) - ); - $client->setParameterPost('accountType', $accountType); - $client->setParameterPost('Email', (string) $email); - $client->setParameterPost('Passwd', (string) $password); - $client->setParameterPost('service', (string) $service); - $client->setParameterPost('source', (string) $source); - if ($loginToken || $loginCaptcha) { - if($loginToken && $loginCaptcha) { - $client->setParameterPost('logintoken', (string) $loginToken); - $client->setParameterPost('logincaptcha', - (string) $loginCaptcha); - } - else { - throw new Zend_Gdata_App_AuthException( - 'Please provide both a token ID and a user\'s response ' . - 'to the CAPTCHA challenge.'); - } - } - - // Send the authentication request - // For some reason Google's server causes an SSL error. We use the - // output buffer to supress an error from being shown. Ugly - but works! - ob_start(); - try { - $response = $client->request('POST'); - } catch (Zend_Http_Client_Exception $e) { - throw new Zend_Gdata_App_HttpException($e->getMessage(), $e); - } - ob_end_clean(); - - // Parse Google's response - $goog_resp = array(); - foreach (explode("\n", $response->getBody()) as $l) { - $l = chop($l); - if ($l) { - list($key, $val) = explode('=', chop($l), 2); - $goog_resp[$key] = $val; - } - } - - if ($response->getStatus() == 200) { - $client->setClientLoginToken($goog_resp['Auth']); - $useragent = $source . ' Zend_Framework_Gdata/' . Zend_Version::VERSION; - $client->setConfig(array( - 'strictredirects' => true, - 'useragent' => $useragent - ) - ); - return $client; - - } elseif ($response->getStatus() == 403) { - // Check if the server asked for a CAPTCHA - if (array_key_exists('Error', $goog_resp) && - $goog_resp['Error'] == 'CaptchaRequired') { - throw new Zend_Gdata_App_CaptchaRequiredException( - $goog_resp['CaptchaToken'], $goog_resp['CaptchaUrl']); - } - else { - throw new Zend_Gdata_App_AuthException('Authentication with Google failed. Reason: ' . - (isset($goog_resp['Error']) ? $goog_resp['Error'] : 'Unspecified.')); - } - } - } - -} - diff --git a/library/vendor/Zend/Gdata/Docs.php b/library/vendor/Zend/Gdata/Docs.php deleted file mode 100755 index cac9ecbd0..000000000 --- a/library/vendor/Zend/Gdata/Docs.php +++ /dev/null @@ -1,315 +0,0 @@ - 'text/plain', - 'CSV' => 'text/csv', - 'TSV' => 'text/tab-separated-values', - 'TAB' => 'text/tab-separated-values', - 'HTML' => 'text/html', - 'HTM' => 'text/html', - 'DOC' => 'application/msword', - 'DOCX' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'ODS' => 'application/vnd.oasis.opendocument.spreadsheet', - 'ODT' => 'application/vnd.oasis.opendocument.text', - 'RTF' => 'application/rtf', - 'SXW' => 'application/vnd.sun.xml.writer', - 'XLS' => 'application/vnd.ms-excel', - 'XLSX' => 'application/vnd.ms-excel', - 'PPT' => 'application/vnd.ms-powerpoint', - 'PPS' => 'application/vnd.ms-powerpoint' - ); - - /** - * Create Gdata_Docs object - * - * @param Zend_Http_Client $client (optional) The HTTP client to use when - * when communicating with the Google servers. - * @param string $applicationId The identity of the app in the form of Company-AppName-Version - */ - public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0') - { - $this->registerPackage('Zend_Gdata_Docs'); - parent::__construct($client, $applicationId); - $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); - } - - /** - * Looks up the mime type based on the file name extension. For example, - * calling this method with 'csv' would return - * 'text/comma-separated-values'. The Mime type is sent as a header in - * the upload HTTP POST request. - * - * @param string $fileExtension - * @return string The mime type to be sent to the server to tell it how the - * multipart mime data should be interpreted. - */ - public static function lookupMimeType($fileExtension) - { - return self::$SUPPORTED_FILETYPES[strtoupper($fileExtension)]; - } - - /** - * Retreive feed object containing entries for the user's documents. - * - * @param mixed $location The location for the feed, as a URL or Query - * @return Zend_Gdata_Docs_DocumentListFeed - */ - public function getDocumentListFeed($location = null) - { - if ($location === null) { - $uri = self::DOCUMENTS_LIST_FEED_URI; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Docs_DocumentListFeed'); - } - - /** - * Retreive entry object representing a single document. - * - * @param mixed $location The location for the entry, as a URL or Query - * @return Zend_Gdata_Docs_DocumentListEntry - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getDocumentListEntry($location = null) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null' - ); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Docs_DocumentListEntry'); - } - - /** - * Retreive entry object representing a single document. - * - * This method builds the URL where this item is stored using the type - * and the id of the document. - * @param string $docId The URL key for the document. Examples: - * dcmg89gw_62hfjj8m, pKq0CzjiF3YmGd0AIlHKqeg - * @param string $docType The type of the document as used in the Google - * Document List URLs. Examples: document, spreadsheet, presentation - * @return Zend_Gdata_Docs_DocumentListEntry - */ - public function getDoc($docId, $docType) - { - $location = 'https://docs.google.com/feeds/documents/private/full/' . - $docType . '%3A' . $docId; - - return $this->getDocumentListEntry($location); - } - - /** - * Retreive entry object for the desired word processing document. - * - * @param string $id The URL id for the document. Example: dcmg89gw_62hfjj8m - * @return Zend_Gdata_Docs_DocumentListEntry - */ - public function getDocument($id) - { - return $this->getDoc($id, 'document'); - } - - /** - * Retreive entry object for the desired spreadsheet. - * - * @param string $id The URL id for the document. Example: pKq0CzjiF3YmGd0AIlHKqeg - * @return Zend_Gdata_Docs_DocumentListEntry - */ - public function getSpreadsheet($id) - { - return $this->getDoc($id, 'spreadsheet'); - } - - /** - * Retreive entry object for the desired presentation. - * - * @param string $id The URL id for the document. Example: dcmg89gw_21gtrjcn - * @return Zend_Gdata_Docs_DocumentListEntry - */ - public function getPresentation($id) - { - return $this->getDoc($id, 'presentation'); - } - - /** - * Upload a local file to create a new Google Document entry. - * - * @param string $fileLocation The full or relative path of the file to - * be uploaded. - * @param string $title The name that this document should have on the - * server. If set, the title is used as the slug header in the - * POST request. If no title is provided, the location of the - * file will be used as the slug header in the request. If no - * mimeType is provided, this method attempts to determine the - * mime type based on the slugHeader by looking for .doc, - * .csv, .txt, etc. at the end of the file name. - * Example value: 'test.doc'. - * @param string $mimeType Describes the type of data which is being sent - * to the server. This must be one of the accepted mime types - * which are enumerated in SUPPORTED_FILETYPES. - * @param string $uri (optional) The URL to which the upload should be - * made. - * Example: 'https://docs.google.com/feeds/documents/private/full'. - * @return Zend_Gdata_Docs_DocumentListEntry The entry for the newly - * created Google Document. - */ - public function uploadFile($fileLocation, $title = null, $mimeType = null, - $uri = null - ) - { - // Set the URI to which the file will be uploaded. - if ($uri === null) { - $uri = $this->_defaultPostUri; - } - - // Create the media source which describes the file. - $fs = $this->newMediaFileSource($fileLocation); - if ($title !== null) { - $slugHeader = $title; - } else { - $slugHeader = $fileLocation; - } - - // Set the slug header to tell the Google Documents server what the - // title of the document should be and what the file extension was - // for the original file. - $fs->setSlug($slugHeader); - - // Set the mime type of the data. - if ($mimeType === null) { - $filenameParts = explode('.', $fileLocation); - $fileExtension = end($filenameParts); - $mimeType = self::lookupMimeType($fileExtension); - } - - // Set the mime type for the upload request. - $fs->setContentType($mimeType); - - // Send the data to the server. - return $this->insertDocument($fs, $uri); - } - - /** - * Creates a new folder in Google Docs - * - * @param string $folderName The folder name to create - * @param string|null $folderResourceId The parent folder to create it in - * ("folder%3Amy_parent_folder") - * @return Zend_Gdata_Entry The folder entry created. - * @todo ZF-8732: This should return a *subclass* of Zend_Gdata_Entry, but - * the appropriate type doesn't exist yet. - */ - public function createFolder($folderName, $folderResourceId = null) - { - $category = new Zend_Gdata_App_Extension_Category( - self::DOCUMENTS_CATEGORY_TERM, - self::DOCUMENTS_CATEGORY_SCHEMA - ); - $title = new Zend_Gdata_App_Extension_Title($folderName); - $entry = new Zend_Gdata_Entry(); - - $entry->setCategory(array($category)); - $entry->setTitle($title); - - $uri = self::DOCUMENTS_LIST_FEED_URI; - if ($folderResourceId != null) { - $uri = self::DOCUMENTS_FOLDER_FEED_URI . '/' . $folderResourceId; - } - - return $this->insertEntry($entry, $uri); - } - - /** - * Inserts an entry to a given URI and returns the response as an Entry. - * - * @param mixed $data The Zend_Gdata_Docs_DocumentListEntry or media - * source to post. If it is a DocumentListEntry, the mediaSource - * should already have been set. If $data is a mediaSource, it - * should have the correct slug header and mime type. - * @param string $uri POST URI - * @param string $className (optional) The class of entry to be returned. - * The default is a 'Zend_Gdata_Docs_DocumentListEntry'. - * @return Zend_Gdata_Docs_DocumentListEntry The entry returned by the - * service after insertion. - */ - public function insertDocument($data, $uri, - $className = 'Zend_Gdata_Docs_DocumentListEntry') - { - return $this->insertEntry($data, $uri, $className); - } -} diff --git a/library/vendor/Zend/Gdata/Docs/DocumentListEntry.php b/library/vendor/Zend/Gdata/Docs/DocumentListEntry.php deleted file mode 100755 index db5f20c53..000000000 --- a/library/vendor/Zend/Gdata/Docs/DocumentListEntry.php +++ /dev/null @@ -1,53 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Docs::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/Docs/DocumentListFeed.php b/library/vendor/Zend/Gdata/Docs/DocumentListFeed.php deleted file mode 100755 index 0adeefd0a..000000000 --- a/library/vendor/Zend/Gdata/Docs/DocumentListFeed.php +++ /dev/null @@ -1,67 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Docs::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/Docs/Query.php b/library/vendor/Zend/Gdata/Docs/Query.php deleted file mode 100755 index a25b410ca..000000000 --- a/library/vendor/Zend/Gdata/Docs/Query.php +++ /dev/null @@ -1,219 +0,0 @@ -_projection = $value; - return $this; - } - - /** - * Sets the visibility for this query. Common values for visibility - * include 'private'. - * - * @return Zend_Gdata_Docs_Query Provides a fluent interface - */ - public function setVisibility($value) - { - $this->_visibility = $value; - return $this; - } - - /** - * Gets the projection for this query. - * - * @return string projection - */ - public function getProjection() - { - return $this->_projection; - } - - /** - * Gets the visibility for this query. - * - * @return string visibility - */ - public function getVisibility() - { - return $this->_visibility; - } - - /** - * Sets the title attribute for this query. The title parameter is used - * to restrict the results to documents whose titles either contain or - * completely match the title. - * - * @param string $value - * @return Zend_Gdata_Docs_Query Provides a fluent interface - */ - public function setTitle($value) - { - if ($value !== null) { - $this->_params['title'] = $value; - } else { - unset($this->_params['title']); - } - return $this; - } - - /** - * Gets the title attribute for this query. - * - * @return string title - */ - public function getTitle() - { - if (array_key_exists('title', $this->_params)) { - return $this->_params['title']; - } else { - return null; - } - } - - /** - * Sets the title-exact attribute for this query. - * If title-exact is set to true, the title query parameter will be used - * in an exact match. Only documents with a title identical to the - * title parameter will be returned. - * - * @param boolean $value Use either true or false - * @return Zend_Gdata_Docs_Query Provides a fluent interface - */ - public function setTitleExact($value) - { - if ($value) { - $this->_params['title-exact'] = $value; - } else { - unset($this->_params['title-exact']); - } - return $this; - } - - /** - * Gets the title-exact attribute for this query. - * - * @return string title-exact - */ - public function getTitleExact() - { - if (array_key_exists('title-exact', $this->_params)) { - return $this->_params['title-exact']; - } else { - return false; - } - } - - /** - * Gets the full query URL for this query. - * - * @return string url - */ - public function getQueryUrl() - { - $uri = $this->_defaultFeedUri; - - if ($this->_visibility !== null) { - $uri .= '/' . $this->_visibility; - } else { - throw new Zend_Gdata_App_Exception( - 'A visibility must be provided for cell queries.'); - } - - if ($this->_projection !== null) { - $uri .= '/' . $this->_projection; - } else { - throw new Zend_Gdata_App_Exception( - 'A projection must be provided for cell queries.'); - } - - $uri .= $this->getQueryString(); - return $uri; - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore.php b/library/vendor/Zend/Gdata/DublinCore.php deleted file mode 100755 index 09a83bb47..000000000 --- a/library/vendor/Zend/Gdata/DublinCore.php +++ /dev/null @@ -1,64 +0,0 @@ -registerPackage('Zend_Gdata_DublinCore'); - $this->registerPackage('Zend_Gdata_DublinCore_Extension'); - parent::__construct($client, $applicationId); - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore/Extension/Creator.php b/library/vendor/Zend/Gdata/DublinCore/Extension/Creator.php deleted file mode 100644 index 246275e3a..000000000 --- a/library/vendor/Zend/Gdata/DublinCore/Extension/Creator.php +++ /dev/null @@ -1,57 +0,0 @@ -registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces); - parent::__construct(); - $this->_text = $value; - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore/Extension/Date.php b/library/vendor/Zend/Gdata/DublinCore/Extension/Date.php deleted file mode 100644 index 630ef619b..000000000 --- a/library/vendor/Zend/Gdata/DublinCore/Extension/Date.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces); - parent::__construct(); - $this->_text = $value; - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore/Extension/Description.php b/library/vendor/Zend/Gdata/DublinCore/Extension/Description.php deleted file mode 100644 index 26cb00030..000000000 --- a/library/vendor/Zend/Gdata/DublinCore/Extension/Description.php +++ /dev/null @@ -1,57 +0,0 @@ -registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces); - parent::__construct(); - $this->_text = $value; - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore/Extension/Format.php b/library/vendor/Zend/Gdata/DublinCore/Extension/Format.php deleted file mode 100644 index f7a2020cb..000000000 --- a/library/vendor/Zend/Gdata/DublinCore/Extension/Format.php +++ /dev/null @@ -1,57 +0,0 @@ -registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces); - parent::__construct(); - $this->_text = $value; - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore/Extension/Identifier.php b/library/vendor/Zend/Gdata/DublinCore/Extension/Identifier.php deleted file mode 100644 index 3821c6171..000000000 --- a/library/vendor/Zend/Gdata/DublinCore/Extension/Identifier.php +++ /dev/null @@ -1,57 +0,0 @@ -registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces); - parent::__construct(); - $this->_text = $value; - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore/Extension/Language.php b/library/vendor/Zend/Gdata/DublinCore/Extension/Language.php deleted file mode 100644 index 2ce74aaa1..000000000 --- a/library/vendor/Zend/Gdata/DublinCore/Extension/Language.php +++ /dev/null @@ -1,57 +0,0 @@ -registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces); - parent::__construct(); - $this->_text = $value; - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore/Extension/Publisher.php b/library/vendor/Zend/Gdata/DublinCore/Extension/Publisher.php deleted file mode 100644 index cec2dfe8c..000000000 --- a/library/vendor/Zend/Gdata/DublinCore/Extension/Publisher.php +++ /dev/null @@ -1,57 +0,0 @@ -registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces); - parent::__construct(); - $this->_text = $value; - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore/Extension/Rights.php b/library/vendor/Zend/Gdata/DublinCore/Extension/Rights.php deleted file mode 100644 index b6cf84fb5..000000000 --- a/library/vendor/Zend/Gdata/DublinCore/Extension/Rights.php +++ /dev/null @@ -1,57 +0,0 @@ -registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces); - parent::__construct(); - $this->_text = $value; - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore/Extension/Subject.php b/library/vendor/Zend/Gdata/DublinCore/Extension/Subject.php deleted file mode 100644 index 2e8b09aaa..000000000 --- a/library/vendor/Zend/Gdata/DublinCore/Extension/Subject.php +++ /dev/null @@ -1,57 +0,0 @@ -registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces); - parent::__construct(); - $this->_text = $value; - } - -} diff --git a/library/vendor/Zend/Gdata/DublinCore/Extension/Title.php b/library/vendor/Zend/Gdata/DublinCore/Extension/Title.php deleted file mode 100644 index 51bb78529..000000000 --- a/library/vendor/Zend/Gdata/DublinCore/Extension/Title.php +++ /dev/null @@ -1,57 +0,0 @@ -registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces); - parent::__construct(); - $this->_text = $value; - } - -} diff --git a/library/vendor/Zend/Gdata/Entry.php b/library/vendor/Zend/Gdata/Entry.php deleted file mode 100644 index c1e8b7c00..000000000 --- a/library/vendor/Zend/Gdata/Entry.php +++ /dev/null @@ -1,129 +0,0 @@ -registerAllNamespaces(Zend_Gdata::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - // ETags are special. We only support them in protocol >= 2.X. - // This will be duplicated by the HTTP ETag header. - if ($majorVersion >= 2) { - if ($this->_etag != null) { - $element->setAttributeNS($this->lookupNamespace('gd'), - 'gd:etag', - $this->_etag); - } - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('atom') . ':' . 'content': - $content = new Zend_Gdata_App_Extension_Content(); - $content->transferFromDOM($child); - $this->_content = $content; - break; - case $this->lookupNamespace('atom') . ':' . 'published': - $published = new Zend_Gdata_App_Extension_Published(); - $published->transferFromDOM($child); - $this->_published = $published; - break; - case $this->lookupNamespace('atom') . ':' . 'source': - $source = new Zend_Gdata_App_Extension_Source(); - $source->transferFromDOM($child); - $this->_source = $source; - break; - case $this->lookupNamespace('atom') . ':' . 'summary': - $summary = new Zend_Gdata_App_Extension_Summary(); - $summary->transferFromDOM($child); - $this->_summary = $summary; - break; - case $this->lookupNamespace('app') . ':' . 'control': - $control = new Zend_Gdata_App_Extension_Control(); - $control->transferFromDOM($child); - $this->_control = $control; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'etag': - // ETags are special, since they can be conveyed by either the - // HTTP ETag header or as an XML attribute. - $etag = $attribute->nodeValue; - if ($this->_etag === null) { - $this->_etag = $etag; - } - elseif ($this->_etag != $etag) { - throw new Zend_Gdata_App_IOException("ETag mismatch"); - } - break; - default: - parent::takeAttributeFromDOM($attribute); - break; - } - } - -} diff --git a/library/vendor/Zend/Gdata/Exif.php b/library/vendor/Zend/Gdata/Exif.php deleted file mode 100755 index 35c04e352..000000000 --- a/library/vendor/Zend/Gdata/Exif.php +++ /dev/null @@ -1,64 +0,0 @@ -registerPackage('Zend_Gdata_Exif'); - $this->registerPackage('Zend_Gdata_Exif_Extension'); - parent::__construct($client, $applicationId); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Entry.php b/library/vendor/Zend/Gdata/Exif/Entry.php deleted file mode 100755 index 69501de7a..000000000 --- a/library/vendor/Zend/Gdata/Exif/Entry.php +++ /dev/null @@ -1,142 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_tags != null) { - $element->appendChild($this->_tags->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('exif') . ':' . 'tags': - $tags = new Zend_Gdata_Exif_Extension_Tags(); - $tags->transferFromDOM($child); - $this->_tags = $tags; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Retrieve the tags for this entry. - * - * @see setTags - * @return Zend_Gdata_Exif_Extension_Tags The requested object - * or null if not set. - */ - public function getTags() - { - return $this->_tags; - } - - /** - * Set the tags property for this entry. This property contains - * various Exif data. - * - * This corresponds to the property in the Google Data - * protocol. - * - * @param Zend_Gdata_Exif_Extension_Tags $value The desired value - * this element, or null to unset. - * @return Zend_Gdata_Exif_Entry Provides a fluent interface - */ - public function setTags($value) - { - $this->_tags = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/Distance.php b/library/vendor/Zend/Gdata/Exif/Extension/Distance.php deleted file mode 100755 index ca7cafa79..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/Distance.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/Exposure.php b/library/vendor/Zend/Gdata/Exif/Extension/Exposure.php deleted file mode 100755 index fb06b0514..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/Exposure.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/FStop.php b/library/vendor/Zend/Gdata/Exif/Extension/FStop.php deleted file mode 100755 index ed266d9af..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/FStop.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/Flash.php b/library/vendor/Zend/Gdata/Exif/Extension/Flash.php deleted file mode 100755 index 053689210..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/Flash.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/FocalLength.php b/library/vendor/Zend/Gdata/Exif/Extension/FocalLength.php deleted file mode 100755 index 0cf064f17..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/FocalLength.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/ImageUniqueId.php b/library/vendor/Zend/Gdata/Exif/Extension/ImageUniqueId.php deleted file mode 100755 index 12ed5d4ab..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/ImageUniqueId.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/Iso.php b/library/vendor/Zend/Gdata/Exif/Extension/Iso.php deleted file mode 100755 index 3589d64cd..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/Iso.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/Make.php b/library/vendor/Zend/Gdata/Exif/Extension/Make.php deleted file mode 100755 index 156bead24..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/Make.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/Model.php b/library/vendor/Zend/Gdata/Exif/Extension/Model.php deleted file mode 100755 index 68443b09f..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/Model.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/Tags.php b/library/vendor/Zend/Gdata/Exif/Extension/Tags.php deleted file mode 100755 index 2d7cc1d82..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/Tags.php +++ /dev/null @@ -1,537 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setDistance($distance); - $this->setExposure($exposure); - $this->setFlash($flash); - $this->setFocalLength($focalLength); - $this->setFStop($fStop); - $this->setImageUniqueId($imageUniqueId); - $this->setIso($iso); - $this->setMake($make); - $this->setModel($model); - $this->setTime($time); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_distance !== null) { - $element->appendChild($this->_distance->getDOM($element->ownerDocument)); - } - if ($this->_exposure !== null) { - $element->appendChild($this->_exposure->getDOM($element->ownerDocument)); - } - if ($this->_flash !== null) { - $element->appendChild($this->_flash->getDOM($element->ownerDocument)); - } - if ($this->_focalLength !== null) { - $element->appendChild($this->_focalLength->getDOM($element->ownerDocument)); - } - if ($this->_fStop !== null) { - $element->appendChild($this->_fStop->getDOM($element->ownerDocument)); - } - if ($this->_imageUniqueId !== null) { - $element->appendChild($this->_imageUniqueId->getDOM($element->ownerDocument)); - } - if ($this->_iso !== null) { - $element->appendChild($this->_iso->getDOM($element->ownerDocument)); - } - if ($this->_make !== null) { - $element->appendChild($this->_make->getDOM($element->ownerDocument)); - } - if ($this->_model !== null) { - $element->appendChild($this->_model->getDOM($element->ownerDocument)); - } - if ($this->_time !== null) { - $element->appendChild($this->_time->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('exif') . ':' . 'distance'; - $distance = new Zend_Gdata_Exif_Extension_Distance(); - $distance->transferFromDOM($child); - $this->_distance = $distance; - break; - case $this->lookupNamespace('exif') . ':' . 'exposure'; - $exposure = new Zend_Gdata_Exif_Extension_Exposure(); - $exposure->transferFromDOM($child); - $this->_exposure = $exposure; - break; - case $this->lookupNamespace('exif') . ':' . 'flash'; - $flash = new Zend_Gdata_Exif_Extension_Flash(); - $flash->transferFromDOM($child); - $this->_flash = $flash; - break; - case $this->lookupNamespace('exif') . ':' . 'focallength'; - $focalLength = new Zend_Gdata_Exif_Extension_FocalLength(); - $focalLength->transferFromDOM($child); - $this->_focalLength = $focalLength; - break; - case $this->lookupNamespace('exif') . ':' . 'fstop'; - $fStop = new Zend_Gdata_Exif_Extension_FStop(); - $fStop->transferFromDOM($child); - $this->_fStop = $fStop; - break; - case $this->lookupNamespace('exif') . ':' . 'imageUniqueID'; - $imageUniqueId = new Zend_Gdata_Exif_Extension_ImageUniqueId(); - $imageUniqueId->transferFromDOM($child); - $this->_imageUniqueId = $imageUniqueId; - break; - case $this->lookupNamespace('exif') . ':' . 'iso'; - $iso = new Zend_Gdata_Exif_Extension_Iso(); - $iso->transferFromDOM($child); - $this->_iso = $iso; - break; - case $this->lookupNamespace('exif') . ':' . 'make'; - $make = new Zend_Gdata_Exif_Extension_Make(); - $make->transferFromDOM($child); - $this->_make = $make; - break; - case $this->lookupNamespace('exif') . ':' . 'model'; - $model = new Zend_Gdata_Exif_Extension_Model(); - $model->transferFromDOM($child); - $this->_model = $model; - break; - case $this->lookupNamespace('exif') . ':' . 'time'; - $time = new Zend_Gdata_Exif_Extension_Time(); - $time->transferFromDOM($child); - $this->_time = $time; - break; - } - } - - /** - * Get the value for this element's distance attribute. - * - * @see setDistance - * @return Zend_Gdata_Exif_Extension_Distance The requested attribute. - */ - public function getDistance() - { - return $this->_distance; - } - - /** - * Set the value for this element's distance attribute. - * - * @param Zend_Gdata_Exif_Extension_Distance $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface - */ - public function setDistance($value) - { - $this->_distance = $value; - return $this; - } - - /** - * Get the value for this element's exposure attribute. - * - * @see setExposure - * @return Zend_Gdata_Exif_Extension_Exposure The requested attribute. - */ - public function getExposure() - { - return $this->_exposure; - } - - /** - * Set the value for this element's exposure attribute. - * - * @param Zend_Gdata_Exif_Extension_Exposure $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface - */ - public function setExposure($value) - { - $this->_exposure = $value; - return $this; - } - - /** - * Get the value for this element's flash attribute. - * - * @see setFlash - * @return Zend_Gdata_Exif_Extension_Flash The requested attribute. - */ - public function getFlash() - { - return $this->_flash; - } - - /** - * Set the value for this element's flash attribute. - * - * @param Zend_Gdata_Exif_Extension_Flash $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface - */ - public function setFlash($value) - { - $this->_flash = $value; - return $this; - } - - /** - * Get the value for this element's name attribute. - * - * @see setFocalLength - * @return Zend_Gdata_Exif_Extension_FocalLength The requested attribute. - */ - public function getFocalLength() - { - return $this->_focalLength; - } - - /** - * Set the value for this element's focalLength attribute. - * - * @param Zend_Gdata_Exif_Extension_FocalLength $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface - */ - public function setFocalLength($value) - { - $this->_focalLength = $value; - return $this; - } - - /** - * Get the value for this element's fStop attribute. - * - * @see setFStop - * @return Zend_Gdata_Exif_Extension_FStop The requested attribute. - */ - public function getFStop() - { - return $this->_fStop; - } - - /** - * Set the value for this element's fStop attribute. - * - * @param Zend_Gdata_Exif_Extension_FStop $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface - */ - public function setFStop($value) - { - $this->_fStop = $value; - return $this; - } - - /** - * Get the value for this element's imageUniqueId attribute. - * - * @see setImageUniqueId - * @return Zend_Gdata_Exif_Extension_ImageUniqueId The requested attribute. - */ - public function getImageUniqueId() - { - return $this->_imageUniqueId; - } - - /** - * Set the value for this element's imageUniqueId attribute. - * - * @param Zend_Gdata_Exif_Extension_ImageUniqueId $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface - */ - public function setImageUniqueId($value) - { - $this->_imageUniqueId = $value; - return $this; - } - - /** - * Get the value for this element's iso attribute. - * - * @see setIso - * @return Zend_Gdata_Exif_Extension_Iso The requested attribute. - */ - public function getIso() - { - return $this->_iso; - } - - /** - * Set the value for this element's iso attribute. - * - * @param Zend_Gdata_Exif_Extension_Iso $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface - */ - public function setIso($value) - { - $this->_iso = $value; - return $this; - } - /** - * Get the value for this element's make attribute. - * - * @see setMake - * @return Zend_Gdata_Exif_Extension_Make The requested attribute. - */ - public function getMake() - { - return $this->_make; - } - - /** - * Set the value for this element's make attribute. - * - * @param Zend_Gdata_Exif_Extension_Make $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface - */ - public function setMake($value) - { - $this->_make = $value; - return $this; - } - - /** - * Get the value for this element's model attribute. - * - * @see setModel - * @return Zend_Gdata_Exif_Extension_Model The requested attribute. - */ - public function getModel() - { - return $this->_model; - } - - /** - * Set the value for this element's model attribute. - * - * @param Zend_Gdata_Exif_Extension_Model $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface - */ - public function setModel($value) - { - $this->_model = $value; - return $this; - } - - /** - * Get the value for this element's time attribute. - * - * @see setTime - * @return Zend_Gdata_Exif_Extension_Time The requested attribute. - */ - public function getTime() - { - return $this->_time; - } - - /** - * Set the value for this element's time attribute. - * - * @param Zend_Gdata_Exif_Extension_Time $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags Provides a fluent interface - */ - public function setTime($value) - { - $this->_time = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Extension/Time.php b/library/vendor/Zend/Gdata/Exif/Extension/Time.php deleted file mode 100755 index c9ded50d0..000000000 --- a/library/vendor/Zend/Gdata/Exif/Extension/Time.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Exif/Feed.php b/library/vendor/Zend/Gdata/Exif/Feed.php deleted file mode 100755 index e396096c6..000000000 --- a/library/vendor/Zend/Gdata/Exif/Feed.php +++ /dev/null @@ -1,67 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Exif::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/Extension.php b/library/vendor/Zend/Gdata/Extension.php deleted file mode 100644 index 1d7f642aa..000000000 --- a/library/vendor/Zend/Gdata/Extension.php +++ /dev/null @@ -1,57 +0,0 @@ -registerNamespace('gd', - 'http://schemas.google.com/g/2005'); - $this->registerNamespace('openSearch', - 'http://a9.com/-/spec/opensearchrss/1.0/', 1, 0); - $this->registerNamespace('openSearch', - 'http://a9.com/-/spec/opensearch/1.1/', 2, 0); - $this->registerNamespace('rss', - 'http://blogs.law.harvard.edu/tech/rss'); - - parent::__construct(); - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/AttendeeStatus.php b/library/vendor/Zend/Gdata/Extension/AttendeeStatus.php deleted file mode 100644 index 60fde6a4c..000000000 --- a/library/vendor/Zend/Gdata/Extension/AttendeeStatus.php +++ /dev/null @@ -1,122 +0,0 @@ -_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value !== null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's Value attribute. - * - * @return string The requested attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's Value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Visibility The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } - -} - diff --git a/library/vendor/Zend/Gdata/Extension/AttendeeType.php b/library/vendor/Zend/Gdata/Extension/AttendeeType.php deleted file mode 100644 index 8e9996bee..000000000 --- a/library/vendor/Zend/Gdata/Extension/AttendeeType.php +++ /dev/null @@ -1,122 +0,0 @@ -_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value !== null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's Value attribute. - * - * @return string The requested attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's Value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Visibility The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } - -} - diff --git a/library/vendor/Zend/Gdata/Extension/Comments.php b/library/vendor/Zend/Gdata/Extension/Comments.php deleted file mode 100644 index ba51da91e..000000000 --- a/library/vendor/Zend/Gdata/Extension/Comments.php +++ /dev/null @@ -1,115 +0,0 @@ -_rel = $rel; - $this->_feedLink = $feedLink; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_rel !== null) { - $element->setAttribute('rel', $this->_rel); - } - if ($this->_feedLink !== null) { - $element->appendChild($this->_feedLink->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'feedLink'; - $feedLink = new Zend_Gdata_Extension_FeedLink(); - $feedLink->transferFromDOM($child); - $this->_feedLink = $feedLink; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'rel': - $this->_rel = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - public function getRel() - { - return $this->_rel; - } - - public function setRel($value) - { - $this->_rel = $value; - return $this; - } - - public function getFeedLink() - { - return $this->_feedLink; - } - - public function setFeedLink($value) - { - $this->_feedLink = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/EntryLink.php b/library/vendor/Zend/Gdata/Extension/EntryLink.php deleted file mode 100644 index 4b4473285..000000000 --- a/library/vendor/Zend/Gdata/Extension/EntryLink.php +++ /dev/null @@ -1,165 +0,0 @@ -_href = $href; - $this->_readOnly = $readOnly; - $this->_rel = $rel; - $this->_entry = $entry; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_href !== null) { - $element->setAttribute('href', $this->_href); - } - if ($this->_readOnly !== null) { - $element->setAttribute('readOnly', ($this->_readOnly ? "true" : "false")); - } - if ($this->_rel !== null) { - $element->setAttribute('rel', $this->_rel); - } - if ($this->_entry !== null) { - $element->appendChild($this->_entry->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('atom') . ':' . 'entry'; - $entry = new Zend_Gdata_Entry(); - $entry->transferFromDOM($child); - $this->_entry = $entry; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'href': - $this->_href = $attribute->nodeValue; - break; - case 'readOnly': - if ($attribute->nodeValue == "true") { - $this->_readOnly = true; - } - else if ($attribute->nodeValue == "false") { - $this->_readOnly = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); - } - break; - case 'rel': - $this->_rel = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getHref() - { - return $this->_href; - } - - public function setHref($value) - { - $this->_href = $value; - return $this; - } - - public function getReadOnly() - { - return $this->_readOnly; - } - - public function setReadOnly($value) - { - $this->_readOnly = $value; - return $this; - } - - public function getRel() - { - return $this->_rel; - } - - public function setRel($value) - { - $this->_rel = $value; - return $this; - } - - public function getEntry() - { - return $this->_entry; - } - - public function setEntry($value) - { - $this->_entry = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/EventStatus.php b/library/vendor/Zend/Gdata/Extension/EventStatus.php deleted file mode 100644 index a5a4cf9bc..000000000 --- a/library/vendor/Zend/Gdata/Extension/EventStatus.php +++ /dev/null @@ -1,100 +0,0 @@ -_value = $value; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value !== null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's Value attribute. - * - * @return string The requested attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's Value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Visibility The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/ExtendedProperty.php b/library/vendor/Zend/Gdata/Extension/ExtendedProperty.php deleted file mode 100644 index 4c1222613..000000000 --- a/library/vendor/Zend/Gdata/Extension/ExtendedProperty.php +++ /dev/null @@ -1,105 +0,0 @@ -_name = $name; - $this->_value = $value; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_name !== null) { - $element->setAttribute('name', $this->_name); - } - if ($this->_value !== null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'name': - $this->_name = $attribute->nodeValue; - break; - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - public function __toString() - { - return $this->getName() . '=' . $this->getValue(); - } - - public function getName() - { - return $this->_name; - } - - public function setName($value) - { - $this->_name = $value; - return $this; - } - - public function getValue() - { - return $this->_value; - } - - public function setValue($value) - { - $this->_value = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/FeedLink.php b/library/vendor/Zend/Gdata/Extension/FeedLink.php deleted file mode 100644 index 69d72e017..000000000 --- a/library/vendor/Zend/Gdata/Extension/FeedLink.php +++ /dev/null @@ -1,173 +0,0 @@ -_countHint = $countHint; - $this->_href = $href; - $this->_readOnly = $readOnly; - $this->_rel = $rel; - $this->_feed = $feed; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_countHint !== null) { - $element->setAttribute('countHint', $this->_countHint); - } - if ($this->_href !== null) { - $element->setAttribute('href', $this->_href); - } - if ($this->_readOnly !== null) { - $element->setAttribute('readOnly', ($this->_readOnly ? "true" : "false")); - } - if ($this->_rel !== null) { - $element->setAttribute('rel', $this->_rel); - } - if ($this->_feed !== null) { - $element->appendChild($this->_feed->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('atom') . ':' . 'feed'; - $feed = new Zend_Gdata_Feed(); - $feed->transferFromDOM($child); - $this->_feed = $feed; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'countHint': - $this->_countHint = $attribute->nodeValue; - break; - case 'href': - $this->_href = $attribute->nodeValue; - break; - case 'readOnly': - if ($attribute->nodeValue == "true") { - $this->_readOnly = true; - } - else if ($attribute->nodeValue == "false") { - $this->_readOnly = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); - } - break; - case 'rel': - $this->_rel = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getHref() - { - return $this->_href; - } - - public function setHref($value) - { - $this->_href = $value; - return $this; - } - - public function getReadOnly() - { - return $this->_readOnly; - } - - public function setReadOnly($value) - { - $this->_readOnly = $value; - return $this; - } - - public function getRel() - { - return $this->_rel; - } - - public function setRel($value) - { - $this->_rel = $value; - return $this; - } - - public function getFeed() - { - return $this->_feed; - } - - public function setFeed($value) - { - $this->_feed = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/OpenSearchItemsPerPage.php b/library/vendor/Zend/Gdata/Extension/OpenSearchItemsPerPage.php deleted file mode 100644 index 114905ab6..000000000 --- a/library/vendor/Zend/Gdata/Extension/OpenSearchItemsPerPage.php +++ /dev/null @@ -1,49 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/OpenSearchStartIndex.php b/library/vendor/Zend/Gdata/Extension/OpenSearchStartIndex.php deleted file mode 100644 index 8cdcb1328..000000000 --- a/library/vendor/Zend/Gdata/Extension/OpenSearchStartIndex.php +++ /dev/null @@ -1,49 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/OpenSearchTotalResults.php b/library/vendor/Zend/Gdata/Extension/OpenSearchTotalResults.php deleted file mode 100644 index de40751dd..000000000 --- a/library/vendor/Zend/Gdata/Extension/OpenSearchTotalResults.php +++ /dev/null @@ -1,49 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/OriginalEvent.php b/library/vendor/Zend/Gdata/Extension/OriginalEvent.php deleted file mode 100644 index 767dbff52..000000000 --- a/library/vendor/Zend/Gdata/Extension/OriginalEvent.php +++ /dev/null @@ -1,139 +0,0 @@ -_id = $id; - $this->_href = $href; - $this->_when = $when; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_id !== null) { - $element->setAttribute('id', $this->_id); - } - if ($this->_href !== null) { - $element->setAttribute('href', $this->_href); - } - if ($this->_when !== null) { - $element->appendChild($this->_when->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'id': - $this->_id = $attribute->nodeValue; - break; - case 'href': - $this->_href = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'when'; - $when = new Zend_Gdata_Extension_When(); - $when->transferFromDOM($child); - $this->_when = $when; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - public function getId() - { - return $this->_id; - } - - public function setId($value) - { - $this->_id = $value; - return $this; - } - - public function getHref() - { - return $this->_href; - } - - public function setHref($value) - { - $this->_href = $value; - return $this; - } - - public function getWhen() - { - return $this->_when; - } - - public function setWhen($value) - { - $this->_when = $value; - return $this; - } - - -} diff --git a/library/vendor/Zend/Gdata/Extension/Rating.php b/library/vendor/Zend/Gdata/Extension/Rating.php deleted file mode 100644 index 9ee9a4fde..000000000 --- a/library/vendor/Zend/Gdata/Extension/Rating.php +++ /dev/null @@ -1,239 +0,0 @@ -_average = $average; - $this->_min = $min; - $this->_max = $max; - $this->_numRaters = $numRaters; - $this->_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_min !== null) { - $element->setAttribute('min', $this->_min); - } - if ($this->_max !== null) { - $element->setAttribute('max', $this->_max); - } - if ($this->_numRaters !== null) { - $element->setAttribute('numRaters', $this->_numRaters); - } - if ($this->_average !== null) { - $element->setAttribute('average', $this->_average); - } - if ($this->_value !== null) { - $element->setAttribute('value', $this->_value); - } - - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'min': - $this->_min = $attribute->nodeValue; - break; - case 'max': - $this->_max = $attribute->nodeValue; - break; - case 'numRaters': - $this->_numRaters = $attribute->nodeValue; - break; - case 'average': - $this->_average = $attribute->nodeValue; - break; - case 'value': - $this->_value = $attribute->nodeValue; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's min attribute. - * - * @return integer The requested attribute. - */ - public function getMin() - { - return $this->_min; - } - - /** - * Set the value for this element's min attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Rating The element being modified. - */ - public function setMin($value) - { - $this->_min = $value; - return $this; - } - - /** - * Get the value for this element's numRaters attribute. - * - * @return integer The requested attribute. - */ - public function getNumRaters() - { - return $this->_numRaters; - } - - /** - * Set the value for this element's numRaters attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Rating The element being modified. - */ - public function setNumRaters($value) - { - $this->_numRaters = $value; - return $this; - } - - /** - * Get the value for this element's average attribute. - * - * @return integer The requested attribute. - */ - public function getAverage() - { - return $this->_average; - } - - /** - * Set the value for this element's average attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Rating The element being modified. - */ - public function setAverage($value) - { - $this->_average = $value; - return $this; - } - - /** - * Get the value for this element's max attribute. - * - * @return integer The requested attribute. - */ - public function getMax() - { - return $this->_max; - } - - /** - * Set the value for this element's max attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Rating The element being modified. - */ - public function setMax($value) - { - $this->_max = $value; - return $this; - } - - /** - * Get the value for this element's value attribute. - * - * @return integer The requested attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's value attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Rating The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/Recurrence.php b/library/vendor/Zend/Gdata/Extension/Recurrence.php deleted file mode 100644 index f0c6ce15a..000000000 --- a/library/vendor/Zend/Gdata/Extension/Recurrence.php +++ /dev/null @@ -1,48 +0,0 @@ -_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/RecurrenceException.php b/library/vendor/Zend/Gdata/Extension/RecurrenceException.php deleted file mode 100644 index e98f037b1..000000000 --- a/library/vendor/Zend/Gdata/Extension/RecurrenceException.php +++ /dev/null @@ -1,212 +0,0 @@ -_specialized = $specialized; - $this->_entryLink = $entryLink; - $this->_originalEvent = $originalEvent; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_specialized !== null) { - $element->setAttribute('specialized', ($this->_specialized ? "true" : "false")); - } - if ($this->_entryLink !== null) { - $element->appendChild($this->_entryLink->getDOM($element->ownerDocument)); - } - if ($this->_originalEvent !== null) { - $element->appendChild($this->_originalEvent->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'specialized': - if ($attribute->nodeValue == "true") { - $this->_specialized = true; - } - else if ($attribute->nodeValue == "false") { - $this->_specialized = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value."); - } - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'entryLink': - $entryLink = new Zend_Gdata_Extension_EntryLink(); - $entryLink->transferFromDOM($child); - $this->_entryLink = $entryLink; - break; - case $this->lookupNamespace('gd') . ':' . 'originalEvent': - $originalEvent = new Zend_Gdata_Extension_OriginalEvent(); - $originalEvent->transferFromDOM($child); - $this->_originalEvent = $originalEvent; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value for this element's Specialized attribute. - * - * @return bool The requested attribute. - */ - public function getSpecialized() - { - return $this->_specialized; - } - - /** - * Set the value for this element's Specialized attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Extension_RecurrenceException The element being modified. - */ - public function setSpecialized($value) - { - $this->_specialized = $value; - return $this; - } - - /** - * Get the value for this element's EntryLink attribute. - * - * @return Zend_Gdata_Extension_EntryLink The requested attribute. - */ - public function getEntryLink() - { - return $this->_entryLink; - } - - /** - * Set the value for this element's EntryLink attribute. - * - * @param Zend_Gdata_Extension_EntryLink $value The desired value for this attribute. - * @return Zend_Gdata_Extension_RecurrenceException The element being modified. - */ - public function setEntryLink($value) - { - $this->_entryLink = $value; - return $this; - } - - /** - * Get the value for this element's Specialized attribute. - * - * @return Zend_Gdata_Extension_OriginalEvent The requested attribute. - */ - public function getOriginalEvent() - { - return $this->_originalEvent; - } - - /** - * Set the value for this element's Specialized attribute. - * - * @param Zend_Gdata_Extension_OriginalEvent $value The desired value for this attribute. - * @return Zend_Gdata_Extension_RecurrenceException The element being modified. - */ - public function setOriginalEvent($value) - { - $this->_originalEvent = $value; - return $this; - } - -} - diff --git a/library/vendor/Zend/Gdata/Extension/Reminder.php b/library/vendor/Zend/Gdata/Extension/Reminder.php deleted file mode 100644 index a440f3137..000000000 --- a/library/vendor/Zend/Gdata/Extension/Reminder.php +++ /dev/null @@ -1,170 +0,0 @@ -_absoluteTime = $absoluteTime; - $this->_method = $method; - $this->_days = $days; - $this->_hours = $hours; - $this->_minutes = $minutes; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_absoluteTime !== null) { - $element->setAttribute('absoluteTime', $this->_absoluteTime); - } - if ($this->_method !== null) { - $element->setAttribute('method', $this->_method); - } - if ($this->_days !== null) { - $element->setAttribute('days', $this->_days); - } - if ($this->_hours !== null) { - $element->setAttribute('hours', $this->_hours); - } - if ($this->_minutes !== null) { - $element->setAttribute('minutes', $this->_minutes); - } - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'absoluteTime': - $this->_absoluteTime = $attribute->nodeValue; - break; - case 'method': - $this->_method = $attribute->nodeValue; - break; - case 'days': - $this->_days = $attribute->nodeValue; - break; - case 'hours': - $this->_hours = $attribute->nodeValue; - break; - case 'minutes': - $this->_minutes = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - public function __toString() - { - $s = ''; - if ($this->_absoluteTime) - $s = " at " . $this->_absoluteTime; - else if ($this->_days) - $s = " in " . $this->_days . " days"; - else if ($this->_hours) - $s = " in " . $this->_hours . " hours"; - else if ($this->_minutes) - $s = " in " . $this->_minutes . " minutes"; - return $this->_method . $s; - } - - public function getAbsoluteTime() - { - return $this->_absoluteTime; - } - - public function setAbsoluteTime($value) - { - $this->_absoluteTime = $value; - return $this; - } - - public function getDays() - { - return $this->_days; - } - - public function setDays($value) - { - $this->_days = $value; - return $this; - } - public function getHours() - { - return $this->_hours; - } - - public function setHours($value) - { - $this->_hours = $value; - return $this; - } - - public function getMinutes() - { - return $this->_minutes; - } - - public function setMinutes($value) - { - $this->_minutes = $value; - return $this; - } - - public function getMethod() - { - return $this->_method; - } - - public function setMethod($value) - { - $this->_method = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/Transparency.php b/library/vendor/Zend/Gdata/Extension/Transparency.php deleted file mode 100644 index cf466d32b..000000000 --- a/library/vendor/Zend/Gdata/Extension/Transparency.php +++ /dev/null @@ -1,122 +0,0 @@ -_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value !== null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's Value attribute. - * - * @return bool The requested attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's Value attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Transparency The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } - -} - diff --git a/library/vendor/Zend/Gdata/Extension/Visibility.php b/library/vendor/Zend/Gdata/Extension/Visibility.php deleted file mode 100644 index 77469d339..000000000 --- a/library/vendor/Zend/Gdata/Extension/Visibility.php +++ /dev/null @@ -1,122 +0,0 @@ -_value = $value; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_value !== null) { - $element->setAttribute('value', $this->_value); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's Value attribute. - * - * @return bool The requested attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's Value attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Visibility The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getValue(); - } - -} - diff --git a/library/vendor/Zend/Gdata/Extension/When.php b/library/vendor/Zend/Gdata/Extension/When.php deleted file mode 100644 index a871da95a..000000000 --- a/library/vendor/Zend/Gdata/Extension/When.php +++ /dev/null @@ -1,167 +0,0 @@ -_startTime = $startTime; - $this->_endTime = $endTime; - $this->_valueString = $valueString; - $this->_reminders = $reminders; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_startTime !== null) { - $element->setAttribute('startTime', $this->_startTime); - } - if ($this->_endTime !== null) { - $element->setAttribute('endTime', $this->_endTime); - } - if ($this->_valueString !== null) { - $element->setAttribute('valueString', $this->_valueString); - } - if ($this->_reminders !== null) { - foreach ($this->_reminders as $reminder) { - $element->appendChild( - $reminder->getDOM($element->ownerDocument)); - } - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'reminder'; - $reminder = new Zend_Gdata_Extension_Reminder(); - $reminder->transferFromDOM($child); - $this->_reminders[] = $reminder; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'startTime': - $this->_startTime = $attribute->nodeValue; - break; - case 'endTime': - $this->_endTime = $attribute->nodeValue; - break; - case 'valueString': - $this->_valueString = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - public function __toString() - { - if ($this->_valueString) - return $this->_valueString; - else { - return 'Starts: ' . $this->getStartTime() . ' ' . - 'Ends: ' . $this->getEndTime(); - } - } - - public function getStartTime() - { - return $this->_startTime; - } - - public function setStartTime($value) - { - $this->_startTime = $value; - return $this; - } - - public function getEndTime() - { - return $this->_endTime; - } - - public function setEndTime($value) - { - $this->_endTime = $value; - return $this; - } - - public function getValueString() - { - return $this->_valueString; - } - - public function setValueString($value) - { - $this->_valueString = $value; - return $this; - } - - public function getReminders() - { - return $this->_reminders; - } - - public function setReminders($value) - { - $this->_reminders = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/Where.php b/library/vendor/Zend/Gdata/Extension/Where.php deleted file mode 100644 index 61b0b8ffe..000000000 --- a/library/vendor/Zend/Gdata/Extension/Where.php +++ /dev/null @@ -1,169 +0,0 @@ -_valueString = $valueString; - $this->_label = $label; - $this->_rel = $rel; - $this->_entryLink = $entryLink; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_label !== null) { - $element->setAttribute('label', $this->_label); - } - if ($this->_rel !== null) { - $element->setAttribute('rel', $this->_rel); - } - if ($this->_valueString !== null) { - $element->setAttribute('valueString', $this->_valueString); - } - if ($this->entryLink !== null) { - $element->appendChild($this->_entryLink->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'label': - $this->_label = $attribute->nodeValue; - break; - case 'rel': - $this->_rel = $attribute->nodeValue; - break; - case 'valueString': - $this->_valueString = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'entryLink': - $entryLink = new Zend_Gdata_Extension_EntryLink(); - $entryLink->transferFromDOM($child); - $this->_entryLink = $entryLink; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - public function __toString() - { - if ($this->_valueString != null) { - return $this->_valueString; - } - else { - return parent::__toString(); - } - } - - public function getLabel() - { - return $this->_label; - } - - public function setLabel($value) - { - $this->_label = $value; - return $this; - } - - public function getRel() - { - return $this->_rel; - } - - public function setRel($value) - { - $this->_rel = $value; - return $this; - } - - public function getValueString() - { - return $this->_valueString; - } - - public function setValueString($value) - { - $this->_valueString = $value; - return $this; - } - - public function getEntryLink() - { - return $this->_entryLink; - } - - public function setEntryLink($value) - { - $this->_entryLink = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Extension/Who.php b/library/vendor/Zend/Gdata/Extension/Who.php deleted file mode 100644 index 572d1047e..000000000 --- a/library/vendor/Zend/Gdata/Extension/Who.php +++ /dev/null @@ -1,295 +0,0 @@ -_email = $email; - $this->_rel = $rel; - $this->_valueString = $valueString; - $this->_attendeeStatus = $attendeeStatus; - $this->_attendeeType = $attendeeType; - $this->_entryLink = $entryLink; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_email !== null) { - $element->setAttribute('email', $this->_email); - } - if ($this->_rel !== null) { - $element->setAttribute('rel', $this->_rel); - } - if ($this->_valueString !== null) { - $element->setAttribute('valueString', $this->_valueString); - } - if ($this->_attendeeStatus !== null) { - $element->appendChild($this->_attendeeStatus->getDOM($element->ownerDocument)); - } - if ($this->_attendeeType !== null) { - $element->appendChild($this->_attendeeType->getDOM($element->ownerDocument)); - } - if ($this->_entryLink !== null) { - $element->appendChild($this->_entryLink->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'email': - $this->_email = $attribute->nodeValue; - break; - case 'rel': - $this->_rel = $attribute->nodeValue; - break; - case 'valueString': - $this->_valueString = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'attendeeStatus': - $attendeeStatus = new Zend_Gdata_Extension_AttendeeStatus(); - $attendeeStatus->transferFromDOM($child); - $this->_attendeeStatus = $attendeeStatus; - break; - case $this->lookupNamespace('gd') . ':' . 'attendeeType': - $attendeeType = new Zend_Gdata_Extension_AttendeeType(); - $attendeeType->transferFromDOM($child); - $this->_attendeeType = $attendeeType; - break; - case $this->lookupNamespace('gd') . ':' . 'entryLink': - $entryLink = new Zend_Gdata_Extension_EntryLink(); - $entryLink->transferFromDOM($child); - $this->_entryLink = $entryLink; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Retrieves a human readable string describing this attribute's value. - * - * @return string The attribute value. - */ - public function __toString() - { - if ($this->_valueString != null) { - return $this->_valueString; - } - else { - return parent::__toString(); - } - } - - /** - * Get the value for this element's ValueString attribute. - * - * @return string The requested attribute. - */ - public function getValueString() - { - return $this->_valueString; - } - - /** - * Set the value for this element's ValueString attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Who The element being modified. - */ - public function setValueString($value) - { - $this->_valueString = $value; - return $this; - } - - /** - * Get the value for this element's Email attribute. - * - * @return string The requested attribute. - */ - public function getEmail() - { - return $this->_email; - } - - /** - * Set the value for this element's Email attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Who The element being modified. - */ - public function setEmail($value) - { - $this->_email = $value; - return $this; - } - - /** - * Get the value for this element's Rel attribute. - * - * @return string The requested attribute. - */ - public function getRel() - { - return $this->_rel; - } - - /** - * Set the value for this element's Rel attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Who The element being modified. - */ - public function setRel($value) - { - $this->_rel = $value; - return $this; - } - - /** - * Get this entry's AttendeeStatus element. - * - * @return Zend_Gdata_Extension_AttendeeStatus The requested entry. - */ - public function getAttendeeStatus() - { - return $this->_attendeeStatus; - } - - /** - * Set the child's AttendeeStatus element. - * - * @param Zend_Gdata_Extension_AttendeeStatus $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Who The element being modified. - */ - public function setAttendeeStatus($value) - { - $this->_attendeeStatus = $value; - return $this; - } - - /** - * Get this entry's AttendeeType element. - * - * @return Zend_Gdata_Extension_AttendeeType The requested entry. - */ - public function getAttendeeType() - { - return $this->_attendeeType; - } - - /** - * Set the child's AttendeeType element. - * - * @param Zend_Gdata_Extension_AttendeeType $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Who The element being modified. - */ - public function setAttendeeType($value) - { - $this->_attendeeType = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Feed.php b/library/vendor/Zend/Gdata/Feed.php deleted file mode 100644 index 679586229..000000000 --- a/library/vendor/Zend/Gdata/Feed.php +++ /dev/null @@ -1,244 +0,0 @@ -registerAllNamespaces(Zend_Gdata::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_totalResults != null) { - $element->appendChild($this->_totalResults->getDOM($element->ownerDocument)); - } - if ($this->_startIndex != null) { - $element->appendChild($this->_startIndex->getDOM($element->ownerDocument)); - } - if ($this->_itemsPerPage != null) { - $element->appendChild($this->_itemsPerPage->getDOM($element->ownerDocument)); - } - - // ETags are special. We only support them in protocol >= 2.X. - // This will be duplicated by the HTTP ETag header. - if ($majorVersion >= 2) { - if ($this->_etag != null) { - $element->setAttributeNS($this->lookupNamespace('gd'), - 'gd:etag', - $this->_etag); - } - } - - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('openSearch') . ':' . 'totalResults': - $totalResults = new Zend_Gdata_Extension_OpenSearchTotalResults(); - $totalResults->transferFromDOM($child); - $this->_totalResults = $totalResults; - break; - case $this->lookupNamespace('openSearch') . ':' . 'startIndex': - $startIndex = new Zend_Gdata_Extension_OpenSearchStartIndex(); - $startIndex->transferFromDOM($child); - $this->_startIndex = $startIndex; - break; - case $this->lookupNamespace('openSearch') . ':' . 'itemsPerPage': - $itemsPerPage = new Zend_Gdata_Extension_OpenSearchItemsPerPage(); - $itemsPerPage->transferFromDOM($child); - $this->_itemsPerPage = $itemsPerPage; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'etag': - // ETags are special, since they can be conveyed by either the - // HTTP ETag header or as an XML attribute. - $etag = $attribute->nodeValue; - if ($this->_etag === null) { - $this->_etag = $etag; - } - elseif ($this->_etag != $etag) { - throw new Zend_Gdata_App_IOException("ETag mismatch"); - } - break; - default: - parent::takeAttributeFromDOM($attribute); - break; - } - } - - /** - * Set the value of the totalResults property. - * - * @param Zend_Gdata_Extension_OpenSearchTotalResults|null $value The - * value of the totalResults property. Use null to unset. - * @return Zend_Gdata_Feed Provides a fluent interface. - */ - function setTotalResults($value) { - $this->_totalResults = $value; - return $this; - } - - /** - * Get the value of the totalResults property. - * - * @return Zend_Gdata_Extension_OpenSearchTotalResults|null The value of - * the totalResults property, or null if unset. - */ - function getTotalResults() { - return $this->_totalResults; - } - - /** - * Set the start index property for feed paging. - * - * @param Zend_Gdata_Extension_OpenSearchStartIndex|null $value The value - * for the startIndex property. Use null to unset. - * @return Zend_Gdata_Feed Provides a fluent interface. - */ - function setStartIndex($value) { - $this->_startIndex = $value; - return $this; - } - - /** - * Get the value of the startIndex property. - * - * @return Zend_Gdata_Extension_OpenSearchStartIndex|null The value of the - * startIndex property, or null if unset. - */ - function getStartIndex() { - return $this->_startIndex; - } - - /** - * Set the itemsPerPage property. - * - * @param Zend_Gdata_Extension_OpenSearchItemsPerPage|null $value The - * value for the itemsPerPage property. Use nul to unset. - * @return Zend_Gdata_Feed Provides a fluent interface. - */ - function setItemsPerPage($value) { - $this->_itemsPerPage = $value; - return $this; - } - - /** - * Get the value of the itemsPerPage property. - * - * @return Zend_Gdata_Extension_OpenSearchItemsPerPage|null The value of - * the itemsPerPage property, or null if unset. - */ - function getItemsPerPage() { - return $this->_itemsPerPage; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps.php b/library/vendor/Zend/Gdata/Gapps.php deleted file mode 100644 index fa1e9aa21..000000000 --- a/library/vendor/Zend/Gdata/Gapps.php +++ /dev/null @@ -1,1657 +0,0 @@ -registerPackage('Zend_Gdata_Gapps'); - $this->registerPackage('Zend_Gdata_Gapps_Extension'); - parent::__construct($client, $applicationId); - $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); - $this->_domain = $domain; - } - - /** - * Convert an exception to an ServiceException if an AppsForYourDomain - * XML document is contained within the original exception's HTTP - * response. If conversion fails, throw the original error. - * - * @param Zend_Gdata_Exception $e The exception to convert. - * @throws Zend_Gdata_Gapps_ServiceException - * @throws mixed - */ - public static function throwServiceExceptionIfDetected($e) { - // Check to make sure that there actually response! - // This can happen if the connection dies before the request - // completes. (See ZF-5949) - $response = $e->getResponse(); - if (!$response) { - throw new Zend_Gdata_App_IOException('No HTTP response received (possible connection failure)'); - } - - try { - // Check to see if there is an AppsForYourDomainErrors - // datastructure in the response. If so, convert it to - // an exception and throw it. - $error = new Zend_Gdata_Gapps_ServiceException(); - $error->importFromString($response->getBody()); - throw $error; - } catch (Zend_Gdata_App_Exception $e2) { - // Unable to convert the response to a ServiceException, - // most likely because the server didn't return an - // AppsForYourDomainErrors document. Throw the original - // exception. - throw $e; - } - } - - /** - * Imports a feed located at $uri. - * This method overrides the default behavior of Zend_Gdata_App, - * providing support for Zend_Gdata_Gapps_ServiceException. - * - * @param string $uri - * @param Zend_Http_Client $client (optional) The client used for - * communication - * @param string $className (optional) The class which is used as the - * return type - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - * @return Zend_Gdata_App_Feed - */ - public static function import($uri, $client = null, $className='Zend_Gdata_App_Feed', $useObjectMapping = true) - { - try { - return parent::import($uri, $client, $className, $useObjectMapping); - } catch (Zend_Gdata_App_HttpException $e) { - self::throwServiceExceptionIfDetected($e); - } - } - - /** - * GET a URI using client object. - * This method overrides the default behavior of Zend_Gdata_App, - * providing support for Zend_Gdata_Gapps_ServiceException. - * - * @param string $uri GET URI - * @param array $extraHeaders Extra headers to add to the request, as an - * array of string-based key/value pairs. - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - * @return Zend_Http_Response - */ - public function get($uri, $extraHeaders = array()) - { - try { - return parent::get($uri, $extraHeaders); - } catch (Zend_Gdata_App_HttpException $e) { - self::throwServiceExceptionIfDetected($e); - } - } - - /** - * POST data with client object. - * This method overrides the default behavior of Zend_Gdata_App, - * providing support for Zend_Gdata_Gapps_ServiceException. - * - * @param mixed $data The Zend_Gdata_App_Entry or XML to post - * @param string $uri (optional) POST URI - * @param integer $remainingRedirects (optional) - * @param string $contentType Content-type of the data - * @param array $extraHaders Extra headers to add tot he request - * @return Zend_Http_Response - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_App_InvalidArgumentException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function post($data, $uri = null, $remainingRedirects = null, - $contentType = null, $extraHeaders = null) - { - try { - return parent::post($data, $uri, $remainingRedirects, $contentType, $extraHeaders); - } catch (Zend_Gdata_App_HttpException $e) { - self::throwServiceExceptionIfDetected($e); - } - } - - /** - * PUT data with client object - * This method overrides the default behavior of Zend_Gdata_App, - * providing support for Zend_Gdata_Gapps_ServiceException. - * - * @param mixed $data The Zend_Gdata_App_Entry or XML to post - * @param string $uri (optional) PUT URI - * @param integer $remainingRedirects (optional) - * @param string $contentType Content-type of the data - * @param array $extraHaders Extra headers to add tot he request - * @return Zend_Http_Response - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_App_InvalidArgumentException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function put($data, $uri = null, $remainingRedirects = null, - $contentType = null, $extraHeaders = null) - { - try { - return parent::put($data, $uri, $remainingRedirects, $contentType, $extraHeaders); - } catch (Zend_Gdata_App_HttpException $e) { - self::throwServiceExceptionIfDetected($e); - } - } - - /** - * DELETE entry with client object - * This method overrides the default behavior of Zend_Gdata_App, - * providing support for Zend_Gdata_Gapps_ServiceException. - * - * @param mixed $data The Zend_Gdata_App_Entry or URL to delete - * @param integer $remainingRedirects (optional) - * @return void - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_App_InvalidArgumentException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function delete($data, $remainingRedirects = null) - { - try { - return parent::delete($data, $remainingRedirects); - } catch (Zend_Gdata_App_HttpException $e) { - self::throwServiceExceptionIfDetected($e); - } - } - - /** - * Set domain for this service instance. This should be a fully qualified - * domain, such as 'foo.example.com'. - * - * This value is used when calculating URLs for retrieving and posting - * entries. If no value is specified, a URL will have to be manually - * constructed prior to using any methods which interact with the Google - * Apps provisioning service. - * - * @param string $value The domain to be used for this session. - */ - public function setDomain($value) - { - $this->_domain = $value; - } - - /** - * Get domain for this service instance. This should be a fully qualified - * domain, such as 'foo.example.com'. If no domain is set, null will be - * returned. - * - * @return string The domain to be used for this session, or null if not - * set. - */ - public function getDomain() - { - return $this->_domain; - } - - /** - * Returns the base URL used to access the Google Apps service, based - * on the current domain. The current domain can be temporarily - * overridden by providing a fully qualified domain as $domain. - * - * @param string $domain (optional) A fully-qualified domain to use - * instead of the default domain for this service instance. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getBaseUrl($domain = null) - { - if ($domain !== null) { - return self::APPS_BASE_FEED_URI . '/' . $domain; - } else if ($this->_domain !== null) { - return self::APPS_BASE_FEED_URI . '/' . $this->_domain; - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Domain must be specified.'); - } - } - - /** - * Retrieve a UserFeed containing multiple UserEntry objects. - * - * @param mixed $location (optional) The location for the feed, as a URL - * or Query. - * @return Zend_Gdata_Gapps_UserFeed - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getUserFeed($location = null) - { - if ($location === null) { - $uri = $this->getBaseUrl() . self::APPS_USER_PATH; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Gapps_UserFeed'); - } - - /** - * Retreive NicknameFeed object containing multiple NicknameEntry objects. - * - * @param mixed $location (optional) The location for the feed, as a URL - * or Query. - * @return Zend_Gdata_Gapps_NicknameFeed - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getNicknameFeed($location = null) - { - if ($location === null) { - $uri = $this->getBaseUrl() . self::APPS_NICKNAME_PATH; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Gapps_NicknameFeed'); - } - - /** - * Retreive GroupFeed object containing multiple GroupEntry - * objects. - * - * @param mixed $location (optional) The location for the feed, as a URL - * or Query. - * @return Zend_Gdata_Gapps_GroupFeed - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getGroupFeed($location = null) - { - if ($location === null) { - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain(); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Gapps_GroupFeed'); - } - - /** - * Retreive MemberFeed object containing multiple MemberEntry - * objects. - * - * @param mixed $location (optional) The location for the feed, as a URL - * or Query. - * @return Zend_Gdata_Gapps_MemberFeed - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getMemberFeed($location = null) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Gapps_MemberFeed'); - } - - /** - * Retreive OwnerFeed object containing multiple OwnerEntry - * objects. - * - * @param mixed $location (optional) The location for the feed, as a URL - * or Query. - * @return Zend_Gdata_Gapps_OwnerFeed - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getOwnerFeed($location = null) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Gapps_OwnerFeed'); - } - - /** - * Retreive EmailListFeed object containing multiple EmailListEntry - * objects. - * - * @param mixed $location (optional) The location for the feed, as a URL - * or Query. - * @return Zend_Gdata_Gapps_EmailListFeed - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getEmailListFeed($location = null) - { - if ($location === null) { - $uri = $this->getBaseUrl() . self::APPS_NICKNAME_PATH; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Gapps_EmailListFeed'); - } - - /** - * Retreive EmailListRecipientFeed object containing multiple - * EmailListRecipientEntry objects. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Gapps_EmailListRecipientFeed - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getEmailListRecipientFeed($location) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Gapps_EmailListRecipientFeed'); - } - - /** - * Retreive a single UserEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Gapps_UserEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getUserEntry($location) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Gapps_UserEntry'); - } - - /** - * Retreive a single NicknameEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Gapps_NicknameEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getNicknameEntry($location) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Gapps_NicknameEntry'); - } - - /** - * Retreive a single GroupEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Gapps_GroupEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getGroupEntry($location = null) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Gapps_GroupEntry'); - } - - /** - * Retreive a single MemberEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Gapps_MemberEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getMemberEntry($location = null) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Gapps_MemberEntry'); - } - - /** - * Retreive a single OwnerEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Gapps_OwnerEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getOwnerEntry($location = null) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Gapps_OwnerEntry'); - } - - /** - * Retreive a single EmailListEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Gapps_EmailListEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getEmailListEntry($location) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Gapps_EmailListEntry'); - } - - /** - * Retreive a single EmailListRecipientEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Gapps_EmailListRecipientEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function getEmailListRecipientEntry($location) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Gapps_EmailListRecipientEntry'); - } - - /** - * Create a new user from a UserEntry. - * - * @param Zend_Gdata_Gapps_UserEntry $user The user entry to insert. - * @param string $uri (optional) The URI where the user should be - * uploaded to. If null, the default user creation URI for - * this domain will be used. - * @return Zend_Gdata_Gapps_UserEntry The inserted user entry as - * returned by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function insertUser($user, $uri = null) - { - if ($uri === null) { - $uri = $this->getBaseUrl() . self::APPS_USER_PATH; - } - $newEntry = $this->insertEntry($user, $uri, 'Zend_Gdata_Gapps_UserEntry'); - return $newEntry; - } - - /** - * Create a new nickname from a NicknameEntry. - * - * @param Zend_Gdata_Gapps_NicknameEntry $nickname The nickname entry to - * insert. - * @param string $uri (optional) The URI where the nickname should be - * uploaded to. If null, the default nickname creation URI for - * this domain will be used. - * @return Zend_Gdata_Gapps_NicknameEntry The inserted nickname entry as - * returned by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function insertNickname($nickname, $uri = null) - { - if ($uri === null) { - $uri = $this->getBaseUrl() . self::APPS_NICKNAME_PATH; - } - $newEntry = $this->insertEntry($nickname, $uri, 'Zend_Gdata_Gapps_NicknameEntry'); - return $newEntry; - } - - /** - * Create a new group from a GroupEntry. - * - * @param Zend_Gdata_Gapps_GroupEntry $group The group entry to insert. - * @param string $uri (optional) The URI where the group should be - * uploaded to. If null, the default user creation URI for - * this domain will be used. - * @return Zend_Gdata_Gapps_GroupEntry The inserted group entry as - * returned by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function insertGroup($group, $uri = null) - { - if ($uri === null) { - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain(); - } - $newEntry = $this->insertEntry($group, $uri, 'Zend_Gdata_Gapps_GroupEntry'); - return $newEntry; - } - - /** - * Create a new member from a MemberEntry. - * - * @param Zend_Gdata_Gapps_MemberEntry $member The member entry to insert. - * @param string $uri (optional) The URI where the group should be - * uploaded to. If null, the default user creation URI for - * this domain will be used. - * @return Zend_Gdata_Gapps_MemberEntry The inserted member entry as - * returned by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function insertMember($member, $uri = null) - { - if ($uri === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'URI must not be null'); - } - $newEntry = $this->insertEntry($member, $uri, 'Zend_Gdata_Gapps_MemberEntry'); - return $newEntry; - } - - /** - * Create a new group from a OwnerEntry. - * - * @param Zend_Gdata_Gapps_OwnerEntry $owner The owner entry to insert. - * @param string $uri (optional) The URI where the owner should be - * uploaded to. If null, the default user creation URI for - * this domain will be used. - * @return Zend_Gdata_Gapps_OwnerEntry The inserted owner entry as - * returned by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function insertOwner($owner, $uri = null) - { - if ($uri === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'URI must not be null'); - } - $newEntry = $this->insertEntry($owner, $uri, 'Zend_Gdata_Gapps_OwnerEntry'); - return $newEntry; - } - - /** - * Create a new email list from an EmailListEntry. - * - * @param Zend_Gdata_Gapps_EmailListEntry $emailList The email list entry - * to insert. - * @param string $uri (optional) The URI where the email list should be - * uploaded to. If null, the default email list creation URI for - * this domain will be used. - * @return Zend_Gdata_Gapps_EmailListEntry The inserted email list entry - * as returned by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function insertEmailList($emailList, $uri = null) - { - if ($uri === null) { - $uri = $this->getBaseUrl() . self::APPS_EMAIL_LIST_PATH; - } - $newEntry = $this->insertEntry($emailList, $uri, 'Zend_Gdata_Gapps_EmailListEntry'); - return $newEntry; - } - - /** - * Create a new email list recipient from an EmailListRecipientEntry. - * - * @param Zend_Gdata_Gapps_EmailListRecipientEntry $recipient The recipient - * entry to insert. - * @param string $uri (optional) The URI where the recipient should be - * uploaded to. If null, the default recipient creation URI for - * this domain will be used. - * @return Zend_Gdata_Gapps_EmailListRecipientEntry The inserted - * recipient entry as returned by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function insertEmailListRecipient($recipient, $uri = null) - { - if ($uri === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'URI must not be null'); - } elseif ($uri instanceof Zend_Gdata_Gapps_EmailListEntry) { - $uri = $uri->getLink('edit')->href; - } - $newEntry = $this->insertEntry($recipient, $uri, 'Zend_Gdata_Gapps_EmailListRecipientEntry'); - return $newEntry; - } - - /** - * Provides a magic factory method to instantiate new objects with - * shorter syntax than would otherwise be required by the Zend Framework - * naming conventions. For more information, see Zend_Gdata_App::__call(). - * - * This overrides the default behavior of __call() so that query classes - * do not need to have their domain manually set when created with - * a magic factory method. - * - * @see Zend_Gdata_App::__call() - * @param string $method The method name being called - * @param array $args The arguments passed to the call - * @throws Zend_Gdata_App_Exception - */ - public function __call($method, $args) { - if (preg_match('/^new(\w+Query)/', $method, $matches)) { - $class = $matches[1]; - $foundClassName = null; - foreach ($this->_registeredPackages as $name) { - try { - // Autoloading disabled on next line for compatibility - // with magic factories. See ZF-6660. - if (!class_exists($name . '_' . $class, false)) { - @Zend_Loader::loadClass($name . '_' . $class); - } - $foundClassName = $name . '_' . $class; - break; - } catch (Zend_Exception $e) { - // package wasn't here- continue searching - } - } - if ($foundClassName != null) { - $reflectionObj = new ReflectionClass($foundClassName); - // Prepend the domain to the query - $args = array_merge(array($this->getDomain()), $args); - return $reflectionObj->newInstanceArgs($args); - } else { - throw new Zend_Gdata_App_Exception( - "Unable to find '${class}' in registered packages"); - } - } else { - return parent::__call($method, $args); - } - - } - - // Convenience methods - // Specified at http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference.html#appendix_e - - /** - * Create a new user entry and send it to the Google Apps servers. - * - * @param string $username The username for the new user. - * @param string $givenName The given name for the new user. - * @param string $familyName The family name for the new user. - * @param string $password The password for the new user as a plaintext string - * (if $passwordHashFunction is null) or a SHA-1 hashed - * value (if $passwordHashFunction = 'SHA-1'). - * @param string $quotaLimitInMB (optional) The quota limit for the new user in MB. - * @return Zend_Gdata_Gapps_UserEntry (optional) The new user entry as returned by - * server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function createUser ($username, $givenName, $familyName, $password, - $passwordHashFunction = null, $quotaLimitInMB = null) { - $user = $this->newUserEntry(); - $user->login = $this->newLogin(); - $user->login->username = $username; - $user->login->password = $password; - $user->login->hashFunctionName = $passwordHashFunction; - $user->name = $this->newName(); - $user->name->givenName = $givenName; - $user->name->familyName = $familyName; - if ($quotaLimitInMB !== null) { - $user->quota = $this->newQuota(); - $user->quota->limit = $quotaLimitInMB; - } - return $this->insertUser($user); - } - - /** - * Retrieve a user based on their username. - * - * @param string $username The username to search for. - * @return Zend_Gdata_Gapps_UserEntry The username to search for, or null - * if no match found. - * @throws Zend_Gdata_App_InvalidArgumentException - * @throws Zend_Gdata_App_HttpException - */ - public function retrieveUser ($username) { - $query = $this->newUserQuery($username); - try { - $user = $this->getUserEntry($query); - } catch (Zend_Gdata_Gapps_ServiceException $e) { - // Set the user to null if not found - if ($e->hasError(Zend_Gdata_Gapps_Error::ENTITY_DOES_NOT_EXIST)) { - $user = null; - } else { - throw $e; - } - } - return $user; - } - - /** - * Retrieve a page of users in alphabetical order, starting with the - * provided username. - * - * @param string $startUsername (optional) The first username to retrieve. - * If null or not declared, the page will begin with the first - * user in the domain. - * @return Zend_Gdata_Gapps_UserFeed Collection of Zend_Gdata_UserEntry - * objects representing all users in the domain. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrievePageOfUsers ($startUsername = null) { - $query = $this->newUserQuery(); - $query->setStartUsername($startUsername); - return $this->getUserFeed($query); - } - - /** - * Retrieve all users in the current domain. Be aware that - * calling this function on a domain with many users will take a - * signifigant amount of time to complete. On larger domains this may - * may cause execution to timeout without proper precautions in place. - * - * @return Zend_Gdata_Gapps_UserFeed Collection of Zend_Gdata_UserEntry - * objects representing all users in the domain. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrieveAllUsers () { - return $this->retrieveAllEntriesForFeed($this->retrievePageOfUsers()); - } - - /** - * Overwrite a specified username with the provided UserEntry. The - * UserEntry does not need to contain an edit link. - * - * This method is provided for compliance with the Google Apps - * Provisioning API specification. Normally users will instead want to - * call UserEntry::save() instead. - * - * @see Zend_Gdata_App_Entry::save - * @param string $username The username whose data will be overwritten. - * @param Zend_Gdata_Gapps_UserEntry $userEntry The user entry which - * will be overwritten. - * @return Zend_Gdata_Gapps_UserEntry The UserEntry returned by the - * server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function updateUser($username, $userEntry) { - return $this->updateEntry($userEntry, $this->getBaseUrl() . - self::APPS_USER_PATH . '/' . $username); - } - - /** - * Mark a given user as suspended. - * - * @param string $username The username associated with the user who - * should be suspended. - * @return Zend_Gdata_Gapps_UserEntry The UserEntry for the modified - * user. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function suspendUser($username) { - $user = $this->retrieveUser($username); - $user->login->suspended = true; - return $user->save(); - } - - /** - * Mark a given user as not suspended. - * - * @param string $username The username associated with the user who - * should be restored. - * @return Zend_Gdata_Gapps_UserEntry The UserEntry for the modified - * user. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function restoreUser($username) { - $user = $this->retrieveUser($username); - $user->login->suspended = false; - return $user->save(); - } - - /** - * Delete a user by username. - * - * @param string $username The username associated with the user who - * should be deleted. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function deleteUser($username) { - $this->delete($this->getBaseUrl() . self::APPS_USER_PATH . '/' . - $username); - } - - /** - * Create a nickname for a given user. - * - * @param string $username The username to which the new nickname should - * be associated. - * @param string $nickname The new nickname to be created. - * @return Zend_Gdata_Gapps_NicknameEntry The nickname entry which was - * created by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function createNickname($username, $nickname) { - $entry = $this->newNicknameEntry(); - $nickname = $this->newNickname($nickname); - $login = $this->newLogin($username); - $entry->nickname = $nickname; - $entry->login = $login; - return $this->insertNickname($entry); - } - - /** - * Retrieve the entry for a specified nickname. - * - * @param string $nickname The nickname to be retrieved. - * @return Zend_Gdata_Gapps_NicknameEntry The requested nickname entry. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrieveNickname($nickname) { - $query = $this->newNicknameQuery(); - $query->setNickname($nickname); - try { - $nickname = $this->getNicknameEntry($query); - } catch (Zend_Gdata_Gapps_ServiceException $e) { - // Set the nickname to null if not found - if ($e->hasError(Zend_Gdata_Gapps_Error::ENTITY_DOES_NOT_EXIST)) { - $nickname = null; - } else { - throw $e; - } - } - return $nickname; - } - - /** - * Retrieve all nicknames associated with a specific username. - * - * @param string $username The username whose nicknames should be - * returned. - * @return Zend_Gdata_Gapps_NicknameFeed A feed containing all nicknames - * for the given user, or null if - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrieveNicknames($username) { - $query = $this->newNicknameQuery(); - $query->setUsername($username); - $nicknameFeed = $this->retrieveAllEntriesForFeed( - $this->getNicknameFeed($query)); - return $nicknameFeed; - } - - /** - * Retrieve a page of nicknames in alphabetical order, starting with the - * provided nickname. - * - * @param string $startNickname (optional) The first nickname to - * retrieve. If null or not declared, the page will begin with - * the first nickname in the domain. - * @return Zend_Gdata_Gapps_NicknameFeed Collection of Zend_Gdata_NicknameEntry - * objects representing all nicknames in the domain. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrievePageOfNicknames ($startNickname = null) { - $query = $this->newNicknameQuery(); - $query->setStartNickname($startNickname); - return $this->getNicknameFeed($query); - } - - /** - * Retrieve all nicknames in the current domain. Be aware that - * calling this function on a domain with many nicknames will take a - * signifigant amount of time to complete. On larger domains this may - * may cause execution to timeout without proper precautions in place. - * - * @return Zend_Gdata_Gapps_NicknameFeed Collection of Zend_Gdata_NicknameEntry - * objects representing all nicknames in the domain. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrieveAllNicknames () { - return $this->retrieveAllEntriesForFeed($this->retrievePageOfNicknames()); - } - - /** - * Delete a specified nickname. - * - * @param string $nickname The name of the nickname to be deleted. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function deleteNickname($nickname) { - $this->delete($this->getBaseUrl() . self::APPS_NICKNAME_PATH . '/' . $nickname); - } - - /** - * Create a new group. - * - * @param string $groupId A unique identifier for the group - * @param string $groupName The name of the group - * @param string $description A description of the group - * @param string $emailPermission The subscription permission of the group - * @return Zend_Gdata_Gapps_GroupEntry The group entry as created on the server. - */ - public function createGroup($groupId, $groupName, $description = null, $emailPermission = null) - { - $i = 0; - $group = $this->newGroupEntry(); - - $properties[$i] = $this->newProperty(); - $properties[$i]->name = 'groupId'; - $properties[$i]->value = $groupId; - $i++; - $properties[$i] = $this->newProperty(); - $properties[$i]->name = 'groupName'; - $properties[$i]->value = $groupName; - $i++; - - if($description != null) { - $properties[$i] = $this->newProperty(); - $properties[$i]->name = 'description'; - $properties[$i]->value = $description; - $i++; - } - - if($emailPermission != null) { - $properties[$i] = $this->newProperty(); - $properties[$i]->name = 'emailPermission'; - $properties[$i]->value = $emailPermission; - $i++; - } - - $group->property = $properties; - - return $this->insertGroup($group); - } - - /** - * Retrieves a group based on group id - * - * @param string $groupId The unique identifier for the group - * @return Zend_Gdata_Gapps_GroupEntry The group entry as returned by the server. - */ - public function retrieveGroup($groupId) - { - $query = $this->newGroupQuery($groupId); - //$query->setGroupId($groupId); - - try { - $group = $this->getGroupEntry($query); - } catch (Zend_Gdata_Gapps_ServiceException $e) { - // Set the group to null if not found - if ($e->hasError(Zend_Gdata_Gapps_Error::ENTITY_DOES_NOT_EXIST)) { - $group = null; - } else { - throw $e; - } - } - return $group; - } - - /** - * Retrieve all groups in the current domain. Be aware that - * calling this function on a domain with many groups will take a - * signifigant amount of time to complete. On larger domains this may - * may cause execution to timeout without proper precautions in place. - * - * @return Zend_Gdata_Gapps_GroupFeed Collection of Zend_Gdata_GroupEntry objects - * representing all groups apart of the domain. - */ - public function retrieveAllGroups() - { - return $this->retrieveAllEntriesForFeed($this->retrievePageOfGroups()); - } - - /** - * Delete a group - * - * @param string $groupId The unique identifier for the group - */ - public function deleteGroup($groupId) - { - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain() . '/' . $groupId; - - $this->delete($uri); - } - - /** - * Check to see if a member id or group id is a member of group - * - * @param string $memberId Member id or group group id - * @param string $groupId Group to be checked for - * @return bool True, if given entity is a member - */ - public function isMember($memberId, $groupId) - { - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain() . '/' . $groupId . '/member/' . $memberId; - - //if the enitiy is not a member, an exception is thrown - try { - $results = $this->get($uri); - } catch (Exception $e) { - $results = false; - } - - if($results) { - return TRUE; - } else { - return FALSE; - } - } - - /** - * Add an email address to a group as a member - * - * @param string $recipientAddress Email address, member id, or group id - * @param string $groupId The unique id of the group - * @return Zend_Gdata_Gapps_MemberEntry The member entry returned by the server - */ - public function addMemberToGroup($recipientAddress, $groupId) - { - $member = $this->newMemberEntry(); - - $properties[] = $this->newProperty(); - $properties[0]->name = 'memberId'; - $properties[0]->value = $recipientAddress; - - $member->property = $properties; - - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain() . '/' . $groupId . '/member'; - - return $this->insertMember($member, $uri); - } - - /** - * Remove a member id from a group - * - * @param string $memberId Member id or group id - * @param string $groupId The unique id of the group - */ - public function removeMemberFromGroup($memberId, $groupId) - { - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain() . '/' . $groupId . '/member/' . $memberId; - - return $this->delete($uri); - } - - /** - * Retrieves all the members of a group - * - * @param string $groupId The unique id of the group - * @return Zend_Gdata_Gapps_MemberFeed Collection of MemberEntry objects - * representing all members apart of the group. - */ - public function retrieveAllMembers($groupId) - { - return $this->retrieveAllEntriesForFeed( - $this->retrievePageOfMembers($groupId)); - } - - /** - * Add an email as an owner of a group - * - * @param string $email Owner's email - * @param string $groupId Group ownership to be checked for - * @return Zend_Gdata_Gapps_OwnerEntry The OwnerEntry returned by the server - */ - public function addOwnerToGroup($email, $groupId) - { - $owner = $this->newOwnerEntry(); - - $properties[] = $this->newProperty(); - $properties[0]->name = 'email'; - $properties[0]->value = $email; - - $owner->property = $properties; - - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain() . '/' . $groupId . '/owner'; - - return $this->insertOwner($owner, $uri); - } - - /** - * Retrieves all the owners of a group - * - * @param string $groupId The unique identifier for the group - * @return Zend_Gdata_Gapps_OwnerFeed Collection of Zend_Gdata_OwnerEntry - * objects representing all owners apart of the group. - */ - public function retrieveGroupOwners($groupId) - { - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain() . '/' . $groupId . '/owner'; - - return $this->getOwnerFeed($uri); - } - - /** - * Checks to see if an email is an owner of a group - * - * @param string $email Owner's email - * @param string $groupId Group ownership to be checked for - * @return bool True, if given entity is an owner - */ - public function isOwner($email, $groupId) - { - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain() . '/' . $groupId . '/owner/' . $email; - - //if the enitiy is not an owner of the group, an exception is thrown - try { - $results = $this->get($uri); - } catch (Exception $e) { - $results = false; - } - - if($results) { - return TRUE; - } else { - return FALSE; - } - } - - /** - * Remove email as an owner of a group - * - * @param string $email Owner's email - * @param string $groupId The unique identifier for the group - */ - public function removeOwnerFromGroup($email, $groupId) - { - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain() . '/' . $groupId . '/owner/' . $email; - - return $this->delete($uri); - } - - /** - * Update group properties with new values. any property not defined will not - * be updated - * - * @param string $groupId A unique identifier for the group - * @param string $groupName The name of the group - * @param string $description A description of the group - * @param string $emailPermission The subscription permission of the group - * @return Zend_Gdata_Gapps_GroupEntry The group entry as updated on the server. - */ - public function updateGroup($groupId, $groupName = null, $description = null, - $emailPermission = null) - { - $i = 0; - $group = $this->newGroupEntry(); - - $properties[$i] = $this->newProperty(); - $properties[$i]->name = 'groupId'; - $properties[$i]->value = $groupId; - $i++; - - if($groupName != null) { - $properties[$i] = $this->newProperty(); - $properties[$i]->name = 'groupName'; - $properties[$i]->value = $groupName; - $i++; - } - - if($description != null) { - $properties[$i] = $this->newProperty(); - $properties[$i]->name = 'description'; - $properties[$i]->value = $description; - $i++; - } - - if($emailPermission != null) { - $properties[$i] = $this->newProperty(); - $properties[$i]->name = 'emailPermission'; - $properties[$i]->value = $emailPermission; - $i++; - } - - $group->property = $properties; - - $uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/'; - $uri .= $this->getDomain() . '/' . $groupId; - - return $this->updateEntry($group, $uri, 'Zend_Gdata_Gapps_GroupEntry'); - } - - /** - * Retrieve all of the groups that a user is a member of - * - * @param string $memberId Member username - * @param bool $directOnly (Optional) If true, members with direct association - * only will be considered - * @return Zend_Gdata_Gapps_GroupFeed Collection of Zend_Gdata_GroupEntry - * objects representing all groups member is apart of in the domain. - */ - public function retrieveGroups($memberId, $directOnly = null) - { - $query = $this->newGroupQuery(); - $query->setMember($memberId); - if($directOnly != null) { - $query->setDirectOnly($directOnly); - } - return $this->getGroupFeed($query); - } - - /** - * Retrieve a page of groups in alphabetical order, starting with the - * provided group. - * - * @param string $startGroup (optional) The first group to - * retrieve. If null or not defined, the page will begin - * with the first group in the domain. - * @return Zend_Gdata_Gapps_GroupFeed Collection of Zend_Gdata_GroupEntry - * objects representing the groups in the domain. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrievePageOfGroups ($startGroup = null) - { - $query = $this->newGroupQuery(); - $query->setStartGroupId($startGroup); - return $this->getGroupFeed($query); - } - - /** - * Gets page of Members - * - * @param string $groupId The group id which should be searched. - * @param string $startMember (optinal) The address of the first member, - * or null to start with the first member in the list. - * @return Zend_Gdata_Gapps_MemberFeed Collection of Zend_Gdata_MemberEntry - * objects - */ - public function retrievePageOfMembers($groupId, $startMember = null) - { - $query = $this->newMemberQuery($groupId); - $query->setStartMemberId($startMember); - return $this->getMemberFeed($query); - } - - /** - * Create a new email list. - * - * @param string $emailList The name of the email list to be created. - * @return Zend_Gdata_Gapps_EmailListEntry The email list entry - * as created on the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function createEmailList($emailList) { - $entry = $this->newEmailListEntry(); - $list = $this->newEmailList(); - $list->name = $emailList; - $entry->emailList = $list; - return $this->insertEmailList($entry); - } - - /** - * Retrieve all email lists associated with a recipient. - * - * @param string $username The recipient whose associated email lists - * should be returned. - * @return Zend_Gdata_Gapps_EmailListFeed The list of email lists found as - * Zend_Gdata_EmailListEntry objects. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrieveEmailLists($recipient) { - $query = $this->newEmailListQuery(); - $query->recipient = $recipient; - return $this->getEmailListFeed($query); - } - - /** - * Retrieve a page of email lists in alphabetical order, starting with the - * provided email list. - * - * @param string $startEmailListName (optional) The first list to - * retrieve. If null or not defined, the page will begin - * with the first email list in the domain. - * @return Zend_Gdata_Gapps_EmailListFeed Collection of Zend_Gdata_EmailListEntry - * objects representing all nicknames in the domain. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrievePageOfEmailLists ($startNickname = null) { - $query = $this->newEmailListQuery(); - $query->setStartEmailListName($startNickname); - return $this->getEmailListFeed($query); - } - - /** - * Retrieve all email lists associated with the curent domain. Be aware that - * calling this function on a domain with many email lists will take a - * signifigant amount of time to complete. On larger domains this may - * may cause execution to timeout without proper precautions in place. - * - * @return Zend_Gdata_Gapps_EmailListFeed The list of email lists found - * as Zend_Gdata_Gapps_EmailListEntry objects. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrieveAllEmailLists() { - return $this->retrieveAllEntriesForFeed($this->retrievePageOfEmailLists()); - } - - /** - * Delete a specified email list. - * - * @param string $emailList The name of the emailList to be deleted. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function deleteEmailList($emailList) { - $this->delete($this->getBaseUrl() . self::APPS_EMAIL_LIST_PATH . '/' - . $emailList); - } - - /** - * Add a specified recipient to an existing emailList. - * - * @param string $recipientAddress The address of the recipient to be - * added to the email list. - * @param string $emailList The name of the email address to which the - * recipient should be added. - * @return Zend_Gdata_Gapps_EmailListRecipientEntry The recipient entry - * created by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function addRecipientToEmailList($recipientAddress, $emailList) { - $entry = $this->newEmailListRecipientEntry(); - $who = $this->newWho(); - $who->email = $recipientAddress; - $entry->who = $who; - $address = $this->getBaseUrl() . self::APPS_EMAIL_LIST_PATH . '/' . - $emailList . self::APPS_EMAIL_LIST_RECIPIENT_POSTFIX . '/'; - return $this->insertEmailListRecipient($entry, $address); - } - - /** - * Retrieve a page of email list recipients in alphabetical order, - * starting with the provided email list recipient. - * - * @param string $emaiList The email list which should be searched. - * @param string $startRecipient (optinal) The address of the first - * recipient, or null to start with the first recipient in - * the list. - * @return Zend_Gdata_Gapps_EmailListRecipientFeed Collection of - * Zend_Gdata_EmailListRecipientEntry objects representing all - * recpients in the specified list. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrievePageOfRecipients ($emailList, - $startRecipient = null) { - $query = $this->newEmailListRecipientQuery(); - $query->setEmailListName($emailList); - $query->setStartRecipient($startRecipient); - return $this->getEmailListRecipientFeed($query); - } - - /** - * Retrieve all recipients associated with an email list. Be aware that - * calling this function on a domain with many email lists will take a - * signifigant amount of time to complete. On larger domains this may - * may cause execution to timeout without proper precautions in place. - * - * @param string $emaiList The email list which should be searched. - * @return Zend_Gdata_Gapps_EmailListRecipientFeed The list of email lists - * found as Zend_Gdata_Gapps_EmailListRecipientEntry objects. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function retrieveAllRecipients($emailList) { - return $this->retrieveAllEntriesForFeed( - $this->retrievePageOfRecipients($emailList)); - } - - /** - * Remove a specified recipient from an email list. - * - * @param string $recipientAddress The recipient to be removed. - * @param string $emailList The list from which the recipient should - * be removed. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - * @throws Zend_Gdata_Gapps_ServiceException - */ - public function removeRecipientFromEmailList($recipientAddress, $emailList) { - $this->delete($this->getBaseUrl() . self::APPS_EMAIL_LIST_PATH . '/' - . $emailList . self::APPS_EMAIL_LIST_RECIPIENT_POSTFIX . '/' - . $recipientAddress); - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/EmailListEntry.php b/library/vendor/Zend/Gdata/Gapps/EmailListEntry.php deleted file mode 100644 index cd25ac87d..000000000 --- a/library/vendor/Zend/Gdata/Gapps/EmailListEntry.php +++ /dev/null @@ -1,211 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Gapps - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Gapps_EmailListEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Gapps_EmailListEntry'; - - /** - * child element containing general information about - * this email list. - * - * @var Zend_Gdata_Gapps_Extension_EmailList - */ - protected $_emailList = null; - - /** - * element containing information about other feeds - * relevant to this entry. - * - * @var Zend_Gdata_Extension_FeedLink - */ - protected $_feedLink = array(); - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_emailList !== null) { - $element->appendChild($this->_emailList->getDOM($element->ownerDocument)); - } - foreach ($this->_feedLink as $feedLink) { - $element->appendChild($feedLink->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('apps') . ':' . 'emailList'; - $emailList = new Zend_Gdata_Gapps_Extension_EmailList(); - $emailList->transferFromDOM($child); - $this->_emailList = $emailList; - break; - case $this->lookupNamespace('gd') . ':' . 'feedLink'; - $feedLink = new Zend_Gdata_Extension_FeedLink(); - $feedLink->transferFromDOM($child); - $this->_feedLink[] = $feedLink; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Retrieve the email list property for this entry. - * - * @see setEmailList - * @return Zend_Gdata_Gapps_Extension_EmailList The requested object - * or null if not set. - */ - public function getEmailList() - { - return $this->_emailList; - } - - /** - * Set the email list property for this entry. This property contains - * information such as the name of this email list. - * - * This corresponds to the property in the Google Data - * protocol. - * - * @param Zend_Gdata_Gapps_Extension_EmailList $value The desired value - * this element, or null to unset. - * @return Zend_Gdata_Gapps_EventEntry Provides a fluent interface - */ - public function setEmailList($value) - { - $this->_emailList = $value; - 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; - } - } - - /** - * Set the feed link property for this entry. Feed links provide - * information about other feeds associated with this entry. - * - * This corresponds to the property in the Google Data - * protocol. - * - * @param array $value A collection of Zend_Gdata_Gapps_Extension_FeedLink - * instances representing all feed links for this entry, or - * null to unset. - * @return Zend_Gdata_Gapps_EventEntry Provides a fluent interface - */ - public function setFeedLink($value) - { - $this->_feedLink = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/EmailListFeed.php b/library/vendor/Zend/Gdata/Gapps/EmailListFeed.php deleted file mode 100644 index 3f7411387..000000000 --- a/library/vendor/Zend/Gdata/Gapps/EmailListFeed.php +++ /dev/null @@ -1,51 +0,0 @@ -setEmailListName($emailListName); - $this->setRecipient($recipient); - $this->setStartEmailListName($startEmailListName); - } - - /** - * Set the email list name to query for. When set, only lists with a name - * matching this value will be returned in search results. Set to - * null to disable filtering by list name. - * - * @param string $value The email list name to filter search results by, - * or null to disable. - */ - public function setEmailListName($value) - { - $this->_emailListName = $value; - } - - /** - * Get the email list name to query for. If no name is set, null will be - * returned. - * - * @see setEmailListName - * @return string The email list name to filter search results by, or null - * if disabled. - */ - public function getEmailListName() - { - return $this->_emailListName; - } - - /** - * Set the recipient to query for. When set, only subscribers with an - * email address matching this value will be returned in search results. - * Set to null to disable filtering by username. - * - * @param string $value The recipient email address to filter search - * results by, or null to disable. - */ - public function setRecipient($value) - { - if ($value !== null) { - $this->_params['recipient'] = $value; - } - else { - unset($this->_params['recipient']); - } - } - - /** - * Get the recipient email address to query for. If no recipient is set, - * null will be returned. - * - * @see setRecipient - * @return string The recipient email address to filter search results by, - * or null if disabled. - */ - public function getRecipient() - { - if (array_key_exists('recipient', $this->_params)) { - return $this->_params['recipient']; - } else { - return null; - } - } - - /** - * Set the first email list which should be displayed when retrieving - * a list of email lists. - * - * @param string $value The first email list to be returned, or null to - * disable. - */ - public function setStartEmailListName($value) - { - if ($value !== null) { - $this->_params['startEmailListName'] = $value; - } else { - unset($this->_params['startEmailListName']); - } - } - - /** - * Get the first email list which should be displayed when retrieving - * a list of email lists. - * - * @return string The first email list to be returned, or null to - * disable. - */ - public function getStartEmailListName() - { - if (array_key_exists('startEmailListName', $this->_params)) { - return $this->_params['startEmailListName']; - } else { - return null; - } - } - - /** - * Returns the URL generated for this query, based on it's current - * parameters. - * - * @return string A URL generated based on the state of this query. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getQueryUrl() - { - - $uri = $this->getBaseUrl(); - $uri .= Zend_Gdata_Gapps::APPS_EMAIL_LIST_PATH; - if ($this->_emailListName !== null) { - $uri .= '/' . $this->_emailListName; - } - $uri .= $this->getQueryString(); - return $uri; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/EmailListRecipientEntry.php b/library/vendor/Zend/Gdata/Gapps/EmailListRecipientEntry.php deleted file mode 100644 index 2f5b40c14..000000000 --- a/library/vendor/Zend/Gdata/Gapps/EmailListRecipientEntry.php +++ /dev/null @@ -1,144 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Gapps - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Gapps_EmailListRecipientEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Gapps_EmailListRecipientEntry'; - - /** - * element used to store the email address of the current - * recipient. Only the email property of this element should be - * populated. - * - * @var Zend_Gdata_Extension_Who - */ - protected $_who = null; - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_who !== null) { - $element->appendChild($this->_who->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'who'; - $who = new Zend_Gdata_Extension_Who(); - $who->transferFromDOM($child); - $this->_who = $who; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value of the who property for this object. - * - * @see setWho - * @return Zend_Gdata_Extension_Who The requested object. - */ - public function getWho() - { - return $this->_who; - } - - /** - * Set the value of the who property for this object. This property - * is used to store the email address of the current recipient. - * - * @param Zend_Gdata_Extension_Who $value The desired value for this - * instance's who property. - * @return Zend_Gdata_Gapps_EventEntry Provides a fluent interface. - */ - public function setWho($value) - { - $this->_who = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/EmailListRecipientFeed.php b/library/vendor/Zend/Gdata/Gapps/EmailListRecipientFeed.php deleted file mode 100644 index 8de3135bf..000000000 --- a/library/vendor/Zend/Gdata/Gapps/EmailListRecipientFeed.php +++ /dev/null @@ -1,51 +0,0 @@ -setEmailListName($emailListName); - $this->setStartRecipient($startRecipient); - } - - /** - * Set the email list name to query for. When set, only lists with a name - * matching this value will be returned in search results. Set to - * null to disable filtering by list name. - * - * @param string $value The email list name to filter search results by, - * or null to disable. - */ - public function setEmailListName($value) - { - $this->_emailListName = $value; - } - - /** - * Get the email list name to query for. If no name is set, null will be - * returned. - * - * @param string $value The email list name to filter search results by, - * or null if disabled. - */ - public function getEmailListName() - { - return $this->_emailListName; - } - - /** - * Set the first recipient which should be displayed when retrieving - * a list of email list recipients. - * - * @param string $value The first recipient to be returned, or null to - * disable. - */ - public function setStartRecipient($value) - { - if ($value !== null) { - $this->_params['startRecipient'] = $value; - } else { - unset($this->_params['startRecipient']); - } - } - - /** - * Get the first recipient which should be displayed when retrieving - * a list of email list recipients. - * - * @return string The first recipient to be returned, or null if - * disabled. - */ - public function getStartRecipient() - { - if (array_key_exists('startRecipient', $this->_params)) { - return $this->_params['startRecipient']; - } else { - return null; - } - } - - /** - * Returns the URL generated for this query, based on it's current - * parameters. - * - * @return string A URL generated based on the state of this query. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getQueryUrl() - { - - $uri = $this->getBaseUrl(); - $uri .= Zend_Gdata_Gapps::APPS_EMAIL_LIST_PATH; - if ($this->_emailListName !== null) { - $uri .= '/' . $this->_emailListName; - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'EmailListName must not be null'); - } - $uri .= Zend_Gdata_Gapps::APPS_EMAIL_LIST_RECIPIENT_POSTFIX . '/'; - $uri .= $this->getQueryString(); - return $uri; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/Error.php b/library/vendor/Zend/Gdata/Gapps/Error.php deleted file mode 100644 index 8171b50a2..000000000 --- a/library/vendor/Zend/Gdata/Gapps/Error.php +++ /dev/null @@ -1,232 +0,0 @@ -_errorCode = $errorCode; - $this->_reason = $reason; - $this->_invalidInput = $invalidInput; - } - - /** - * Set the error code for this exception. For more information about - * error codes, see getErrorCode. - * - * @see getErrorCode - * @param integer $value The new value for the error code. - */ - public function setErrorCode($value) { - $this->_errorCode = $value; - } - - /** - * Get the error code for this exception. Currently valid values are - * available as constants within this class. These values are: - * - * UNKNOWN_ERROR (1000) - * USER_DELETED_RECENTLY (1100) - * USER_SUSPENDED (1101) - * DOMAIN_USER_LIMIT_EXCEEDED (1200) - * DOMAIN_ALIAS_LIMIT_EXCEEDED (1201) - * DOMAIN_SUSPENDED (1202) - * DOMAIN_FEATURE_UNAVAILABLE (1203) - * ENTITY_EXISTS (1300) - * ENTITY_DOES_NOT_EXIST (1301) - * ENTITY_NAME_IS_RESERVED (1302) - * ENTITY_NAME_NOT_VALID (1303) - * INVALID_GIVEN_NAME (1400) - * INVALID_FAMILY_NAME (1401) - * INVALID_PASSWORD (1402) - * INVALID_USERNAME (1403) - * INVALID_HASH_FUNCTION_NAME (1404) - * INVALID_HASH_DIGEST_LENGTH (1405) - * INVALID_EMAIL_ADDRESS (1406) - * INVALID_QUERY_PARAMETER_VALUE (1407) - * TOO_MANY_RECIPIENTS_ON_EMAIL_LIST (1500) - * - * Numbers in parenthesis indicate the actual integer value of the - * constant. This list should not be treated as exhaustive, as additional - * error codes may be added at any time. - * - * For more information about these codes and their meaning, please - * see Appendix D of the Google Apps Provisioning API Reference. - * - * @link http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference.html#appendix_d Google Apps Provisioning API Reference: Appendix D - Gdata Error Codes - * @see setErrorCode - * @return integer The error code returned by the Google Apps server. - */ - public function getErrorCode() { - return $this->_errorCode; - } - - /** - * Set human-readable text describing the reason this exception occurred. - * - * @see getReason - * @param string $value The reason this exception occurred. - */ - public function setReason($value) { - $this->_reason = $value; - } - - /** - * Get human-readable text describing the reason this exception occurred. - * - * @see setReason - * @return string The reason this exception occurred. - */ - public function getReason() { - return $this->_reason; - } - - /** - * Set the invalid input which caused this exception. - * - * @see getInvalidInput - * @param string $value The invalid input that triggered this exception. - */ - public function setInvalidInput($value) { - $this->_invalidInput = $value; - } - - /** - * Set the invalid input which caused this exception. - * - * @see setInvalidInput - * @return string The reason this exception occurred. - */ - public function getInvalidInput() { - return $this->_invalidInput; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_errorCode !== null) { - $element->setAttribute('errorCode', $this->_errorCode); - } - if ($this->_reason !== null) { - $element->setAttribute('reason', $this->_reason); - } - if ($this->_invalidInput !== null) { - $element->setAttribute('invalidInput', $this->_invalidInput); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'errorCode': - $this->_errorCode = $attribute->nodeValue; - break; - case 'reason': - $this->_reason = $attribute->nodeValue; - break; - case 'invalidInput': - $this->_invalidInput = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get a human readable version of this exception. - * - * @return string - */ - public function __toString() { - return "Error " . $this->getErrorCode() . ": " . $this->getReason() . - "\n\tInvalid Input: \"" . $this->getInvalidInput() . "\""; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/Extension/EmailList.php b/library/vendor/Zend/Gdata/Gapps/Extension/EmailList.php deleted file mode 100644 index b45d20c27..000000000 --- a/library/vendor/Zend/Gdata/Gapps/Extension/EmailList.php +++ /dev/null @@ -1,142 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct(); - $this->_name = $name; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_name !== null) { - $element->setAttribute('name', $this->_name); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'name': - $this->_name = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's name attribute. - * - * @see setName - * @return string The requested attribute. - */ - public function getName() - { - return $this->_name; - } - - /** - * Set the value for this element's name attribute. This is the unique - * name which will be used to identify this email list within this - * domain, and will be used to form this email list's email address. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_EmailList The element being modified. - */ - public function setName($value) - { - $this->_name = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - * - * @return string - */ - public function __toString() - { - return $this->getName(); - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/Extension/Login.php b/library/vendor/Zend/Gdata/Gapps/Extension/Login.php deleted file mode 100644 index fef157a0a..000000000 --- a/library/vendor/Zend/Gdata/Gapps/Extension/Login.php +++ /dev/null @@ -1,471 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct(); - $this->_username = $username; - $this->_password = $password; - $this->_hashFunctionName = $hashFunctionName; - $this->_admin = $admin; - $this->_agreedToTerms = $agreedToTerms; - $this->_suspended = $suspended; - $this->_changePasswordAtNextLogin = $changePasswordAtNextLogin; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_username !== null) { - $element->setAttribute('userName', $this->_username); - } - if ($this->_password !== null) { - $element->setAttribute('password', $this->_password); - } - if ($this->_hashFunctionName !== null) { - $element->setAttribute('hashFunctionName', $this->_hashFunctionName); - } - if ($this->_admin !== null) { - $element->setAttribute('admin', ($this->_admin ? "true" : "false")); - } - if ($this->_agreedToTerms !== null) { - $element->setAttribute('agreedToTerms', ($this->_agreedToTerms ? "true" : "false")); - } - if ($this->_suspended !== null) { - $element->setAttribute('suspended', ($this->_suspended ? "true" : "false")); - } - if ($this->_changePasswordAtNextLogin !== null) { - $element->setAttribute('changePasswordAtNextLogin', ($this->_changePasswordAtNextLogin ? "true" : "false")); - } - - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - * @throws Zend_Gdata_App_InvalidArgumentException - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'userName': - $this->_username = $attribute->nodeValue; - break; - case 'password': - $this->_password = $attribute->nodeValue; - break; - case 'hashFunctionName': - $this->_hashFunctionName = $attribute->nodeValue; - break; - case 'admin': - if ($attribute->nodeValue == "true") { - $this->_admin = true; - } - else if ($attribute->nodeValue == "false") { - $this->_admin = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for apps:login#admin."); - } - break; - case 'agreedToTerms': - if ($attribute->nodeValue == "true") { - $this->_agreedToTerms = true; - } - else if ($attribute->nodeValue == "false") { - $this->_agreedToTerms = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for apps:login#agreedToTerms."); - } - break; - case 'suspended': - if ($attribute->nodeValue == "true") { - $this->_suspended = true; - } - else if ($attribute->nodeValue == "false") { - $this->_suspended = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for apps:login#suspended."); - } - break; - case 'changePasswordAtNextLogin': - if ($attribute->nodeValue == "true") { - $this->_changePasswordAtNextLogin = true; - } - else if ($attribute->nodeValue == "false") { - $this->_changePasswordAtNextLogin = false; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for apps:login#changePasswordAtNextLogin."); - } - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's username attribute. - * - * @see setUsername - * @return string The attribute being modified. - */ - public function getUsername() - { - return $this->_username; - } - - /** - * Set the value for this element's username attribute. This string - * is used to uniquely identify the user in this domian and is used - * to form this user's email address. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Login Provides a fluent interface. - */ - public function setUsername($value) - { - $this->_username = $value; - return $this; - } - - /** - * Get the value for this element's password attribute. - * - * @see setPassword - * @return string The requested attribute. - */ - public function getPassword() - { - return $this->_password; - } - - /** - * Set the value for this element's password attribute. As of this - * writing, this can be either be provided as plaintext or hashed using - * the SHA-1 algorithm for protection. If using a hash function, - * this must be indicated by calling setHashFunctionName(). - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Login Provides a fluent interface. - */ - public function setPassword($value) - { - $this->_password = $value; - return $this; - } - - /** - * Get the value for this element's hashFunctionName attribute. - * - * @see setHashFunctionName - * @return string The requested attribute. - */ - public function getHashFunctionName() - { - return $this->_hashFunctionName; - } - - /** - * Set the value for this element's hashFunctionName attribute. This - * indicates whether the password supplied with setPassword() is in - * plaintext or has had a hash function applied to it. If null, - * plaintext is assumed. As of this writing, the only valid hash - * function is 'SHA-1'. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Login Provides a fluent interface. - */ - public function setHashFunctionName($value) - { - $this->_hashFunctionName = $value; - return $this; - } - - /** - * Get the value for this element's admin attribute. - * - * @see setAdmin - * @return boolean The requested attribute. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getAdmin() - { - if (!(is_bool($this->_admin))) { - throw new Zend_Gdata_App_InvalidArgumentException('Expected boolean for admin.'); - } - return $this->_admin; - } - - /** - * Set the value for this element's admin attribute. This indicates - * whether this user is an administrator for this domain. - * - * @param boolean $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Login Provides a fluent interface. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function setAdmin($value) - { - if (!(is_bool($value))) { - throw new Zend_Gdata_App_InvalidArgumentException('Expected boolean for $value.'); - } - $this->_admin = $value; - return $this; - } - - /** - * Get the value for this element's agreedToTerms attribute. - * - * @see setAgreedToTerms - * @return boolean The requested attribute. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getAgreedToTerms() - { - if (!(is_bool($this->_agreedToTerms))) { - throw new Zend_Gdata_App_InvalidArgumentException('Expected boolean for agreedToTerms.'); - } - return $this->_agreedToTerms; - } - - /** - * Set the value for this element's agreedToTerms attribute. This - * indicates whether this user has agreed to the terms of service. - * - * @param boolean $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Login Provides a fluent interface. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function setAgreedToTerms($value) - { - if (!(is_bool($value))) { - throw new Zend_Gdata_App_InvalidArgumentException('Expected boolean for $value.'); - } - $this->_agreedToTerms = $value; - return $this; - } - - /** - * Get the value for this element's suspended attribute. - * - * @see setSuspended - * @return boolean The requested attribute. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getSuspended() - { - if (!(is_bool($this->_suspended))) { - throw new Zend_Gdata_App_InvalidArgumentException('Expected boolean for suspended.'); - } - return $this->_suspended; - } - - /** - * Set the value for this element's suspended attribute. If true, the - * user will not be able to login to this domain until unsuspended. - * - * @param boolean $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Login Provides a fluent interface. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function setSuspended($value) - { - if (!(is_bool($value))) { - throw new Zend_Gdata_App_InvalidArgumentException('Expected boolean for $value.'); - } - $this->_suspended = $value; - return $this; - } - - /** - * Get the value for this element's changePasswordAtNextLogin attribute. - * - * @see setChangePasswordAtNextLogin - * @return boolean The requested attribute. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getChangePasswordAtNextLogin() - { - if (!(is_bool($this->_changePasswordAtNextLogin))) { - throw new Zend_Gdata_App_InvalidArgumentException('Expected boolean for changePasswordAtNextLogin.'); - } - return $this->_changePasswordAtNextLogin; - } - - /** - * Set the value for this element's changePasswordAtNextLogin attribute. - * If true, the user will be forced to set a new password the next - * time they login. - * - * @param boolean $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Login Provides a fluent interface. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function setChangePasswordAtNextLogin($value) - { - if (!(is_bool($value))) { - throw new Zend_Gdata_App_InvalidArgumentException('Expected boolean for $value.'); - } - $this->_changePasswordAtNextLogin = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return "Username: " . $this->getUsername() . - "\nPassword: " . (($this->getPassword() === null) ? "NOT SET" : "SET") . - "\nPassword Hash Function: " . $this->getHashFunctionName() . - "\nAdministrator: " . ($this->getAdmin() ? "Yes" : "No") . - "\nAgreed To Terms: " . ($this->getAgreedToTerms() ? "Yes" : "No") . - "\nSuspended: " . ($this->getSuspended() ? "Yes" : "No"); - } -} diff --git a/library/vendor/Zend/Gdata/Gapps/Extension/Name.php b/library/vendor/Zend/Gdata/Gapps/Extension/Name.php deleted file mode 100644 index 72f546aef..000000000 --- a/library/vendor/Zend/Gdata/Gapps/Extension/Name.php +++ /dev/null @@ -1,179 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct(); - $this->_familyName = $familyName; - $this->_givenName = $givenName; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_familyName !== null) { - $element->setAttribute('familyName', $this->_familyName); - } - if ($this->_givenName !== null) { - $element->setAttribute('givenName', $this->_givenName); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'familyName': - $this->_familyName = $attribute->nodeValue; - break; - case 'givenName': - $this->_givenName = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's familyName attribute. - * - * @see setFamilyName - * @return string The requested attribute. - */ - public function getFamilyName() - { - return $this->_familyName; - } - - /** - * Set the value for this element's familyName attribute. This - * represents a user's family name. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Name Provides a fluent interface.. - */ - public function setFamilyName($value) - { - $this->_familyName = $value; - return $this; - } - - /** - * Get the value for this element's givenName attribute. - * - * @see setGivenName - * @return string The requested attribute. - */ - public function getGivenName() - { - return $this->_givenName; - } - - /** - * Set the value for this element's givenName attribute. This - * represents a user's given name. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Name Provides a fluent interface. - */ - public function setGivenName($value) - { - $this->_givenName = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getGivenName() . ' ' . $this->getFamilyName(); - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/Extension/Nickname.php b/library/vendor/Zend/Gdata/Gapps/Extension/Nickname.php deleted file mode 100644 index f5b8dd8ac..000000000 --- a/library/vendor/Zend/Gdata/Gapps/Extension/Nickname.php +++ /dev/null @@ -1,140 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct(); - $this->_name = $name; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_name !== null) { - $element->setAttribute('name', $this->_name); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'name': - $this->_name = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's name attribute. - * - * @see setName - * @return string The requested attribute. - */ - public function getName() - { - return $this->_name; - } - - /** - * Set the value for this element's name attribute. This name uniquely - * describes this nickname within the domain. Emails addressed to this - * name will be delivered to the user who owns this nickname. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Nickname Provides a fluent - * interface. - */ - public function setName($value) - { - $this->_name = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getName(); - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/Extension/Property.php b/library/vendor/Zend/Gdata/Gapps/Extension/Property.php deleted file mode 100644 index 91c7f475c..000000000 --- a/library/vendor/Zend/Gdata/Gapps/Extension/Property.php +++ /dev/null @@ -1,177 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct(); - $this->_name = $name; - $this->_value = $value; - - } - - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_name !== null) { - $element->setAttribute('name', $this->_name); - } - if ($this->_value !== null) { - $element->setAttribute('value', $this->_value); - } - - return $element; - - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'name': - $this->_name = $attribute->nodeValue; - break; - case 'value': - $this->_value = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's name attribute. - * - * @see setName - * @return string The requested attribute. - */ - public function getName() - { - return $this->_name; - } - - /** - * Set the value for this element's name attribute. - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Property The element being modified. - */ - public function setName($value) - { - $this->_name = $value; - return $this; - } - - /** - * Get the value for this element's value attribute. - * - * @see setName - * @return string The requested attribute. - */ - public function getValue() - { - return $this->_value; - } - - /** - * Set the value for this element's value attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Property The element being modified. - */ - public function setValue($value) - { - $this->_value = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - * - * @return string - */ - public function __toString() - { - return "Property Name: " . $this->getName() . - "\nProperty Value: " . $this->getValue(); - } -} diff --git a/library/vendor/Zend/Gdata/Gapps/Extension/Quota.php b/library/vendor/Zend/Gdata/Gapps/Extension/Quota.php deleted file mode 100644 index a3b88af0a..000000000 --- a/library/vendor/Zend/Gdata/Gapps/Extension/Quota.php +++ /dev/null @@ -1,140 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct(); - $this->_limit = $limit; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_limit !== null) { - $element->setAttribute('limit', $this->_limit); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'limit': - $this->_limit = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's limit attribute. - * - * @see setLimit - * @return string The requested attribute. - */ - public function getLimit() - { - return $this->_limit; - } - - /** - * Set the value for this element's limit attribute. This is the amount - * of storage space, in bytes, that should be made available to - * the associated user. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Gapps_Extension_Quota Provides a fluent interface. - */ - public function setLimit($value) - { - $this->_limit = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->getLimit(); - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/GroupEntry.php b/library/vendor/Zend/Gdata/Gapps/GroupEntry.php deleted file mode 100644 index e85a3ea46..000000000 --- a/library/vendor/Zend/Gdata/Gapps/GroupEntry.php +++ /dev/null @@ -1,156 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Gapps - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Gapps_GroupEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Gapps_GroupEntry'; - - /** - * element containing information about other items - * relevant to this entry. - * - * @var Zend_Gdata_Gapps_Extension_Property - */ - protected $_property = array(); - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - - foreach ($this->_property as $p) { - $element->appendChild($p->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - - case $this->lookupNamespace('apps') . ':' . 'property'; - $property = new Zend_Gdata_Gapps_Extension_Property(); - $property->transferFromDOM($child); - $this->_property[] = $property; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Returns all property tags for this entry - * - * @param string $rel The rel value of the property to be found. If null, - * the array of properties is returned instead. - * @return mixed Either an array of Zend_Gdata_Gapps_Extension_Property - * objects if $rel is null, a single - * Zend_Gdata_Gapps_Extension_Property object if $rel is specified - * and a matching feed link is found, or null if $rel is - * specified and no matching property is found. - */ - public function getProperty($rel = null) - { - if ($rel == null) { - return $this->_property; - } else { - foreach ($this->_property as $p) { - if ($p->rel == $rel) { - return $p; - } - } - return null; - } - } - - /** - * Set the value of the property property for this object. - * - * @param array $value A collection of - * Zend_Gdata_Gapps_Extension_Property objects. - * @return Zend_Gdata_Gapps_GroupEntry Provides a fluent interface. - */ - public function setProperty($value) - { - $this->_property = $value; - return $this; - } - -} - diff --git a/library/vendor/Zend/Gdata/Gapps/GroupFeed.php b/library/vendor/Zend/Gdata/Gapps/GroupFeed.php deleted file mode 100644 index 8cce1eea7..000000000 --- a/library/vendor/Zend/Gdata/Gapps/GroupFeed.php +++ /dev/null @@ -1,51 +0,0 @@ -setGroupId($groupId); - $this->setStartGroupId($startGroupId); - } - - /** - * Set the group id to query for. When set, only groups with a group id - * matching this value will be returned in search results. Set to - * null to disable filtering by group id. - * - * @see getGroupId - * @param string $value The group id to filter search results by, or null to - * disable. - */ - public function setGroupId($value) - { - $this->_groupId = $value; - } - - /** - * Get the group id to query for. If no group id is set, null will be - * returned. - * - * @param string $value The group id to filter search results by, or - * null if disabled. - */ - public function getGroupId() - { - return $this->_groupId; - } - - /** - * Set the member to query for. When set, only subscribers with an - * email address matching this value will be returned in search results. - * Set to null to disable filtering by username. - * - * @param string $value The member email address to filter search - * results by, or null to disable. - */ - public function setMember($value) - { - if ($value !== null) { - $this->_params['member'] = $value; - } - else { - unset($this->_params['member']); - } - } - - /** - * Get the member email address to query for. If no member is set, - * null will be returned. - * - * @see setMember - * @return string The member email address to filter search - * results by, or null if disabled. - */ - public function getMember() - { - if (array_key_exists('member', $this->_params)) { - return $this->_params['member']; - } else { - return null; - } - } - - - /** - * Sets the query parameter directOnly - * @param bool $value - */ - public function setDirectOnly($value) - { - if ($value !== null) { - if($value == true) { - $this->_params['directOnly'] = 'true'; - } else { - $this->_params['directOnly'] = 'false'; - } - } else { - unset($this->_params['directOnly']); - } - } - - /** - * - * @see setDirectOnly - * @return bool - */ - public function getDirectOnly() - { - if (array_key_exists('directOnly', $this->_params)) { - - if($this->_params['directOnly'] == 'true') { - return true; - } else { - return false; - } - } else { - return null; - } - } - - /** - * Set the first group id which should be displayed when retrieving - * a list of groups. - * - * @param string $value The first group id to be returned, or null to - * disable. - */ - public function setStartGroupId($value) - { - if ($value !== null) { - $this->_params['start'] = $value; - } else { - unset($this->_params['start']); - } - } - - /** - * Get the first group id which should be displayed when retrieving - * a list of groups. - * - * @see setStartGroupId - * @return string The first group id to be returned, or null if - * disabled. - */ - public function getStartGroupId() - { - if (array_key_exists('start', $this->_params)) { - return $this->_params['start']; - } else { - return null; - } - } - - /** - * Returns the query URL generated by this query instance. - * - * @return string The query URL for this instance. - */ - public function getQueryUrl() - { - - $uri = Zend_Gdata_Gapps::APPS_BASE_FEED_URI; - $uri .= Zend_Gdata_Gapps::APPS_GROUP_PATH; - $uri .= '/' . $this->_domain; - - if ($this->_groupId !== null) { - $uri .= '/' . $this->_groupId; - } - - if(array_key_exists('member', $this->_params)) { - $uri .= '/'; - } - - $uri .= $this->getQueryString(); - return $uri; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/MemberEntry.php b/library/vendor/Zend/Gdata/Gapps/MemberEntry.php deleted file mode 100644 index 2e9bf4fc1..000000000 --- a/library/vendor/Zend/Gdata/Gapps/MemberEntry.php +++ /dev/null @@ -1,157 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Gapps - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Gapps_MemberEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Gapps_MemberEntry'; - - /** - * element containing information about other items - * relevant to this entry. - * - * @var Zend_Gdata_Gapps_Extension_Property - */ - protected $_property = array(); - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - - foreach ($this->_property as $p) { - $element->appendChild($p->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - - case $this->lookupNamespace('apps') . ':' . 'property'; - $property = new Zend_Gdata_Gapps_Extension_Property(); - $property->transferFromDOM($child); - $this->_property[] = $property; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Returns all property tags for this entry - * - * @param string $rel The rel value of the property to be found. If null, - * the array of properties is returned instead. - * @return mixed Either an array of Zend_Gdata_Gapps_Extension_Property - * objects if $rel is null, a single - * Zend_Gdata_Gapps_Extension_Property object if $rel is specified - * and a matching feed link is found, or null if $rel is - * specified and no matching property is found. - */ - public function getProperty($rel = null) - { - if ($rel == null) { - return $this->_property; - } else { - foreach ($this->_property as $p) { - if ($p->rel == $rel) { - return $p; - } - } - return null; - } - } - - /** - * Set the value of the property property for this object. - * - * @param array $value A collection of - * Zend_Gdata_Gapps_Extension_Property objects. - * @return Zend_Gdata_Gapps_MemberEntry Provides a fluent interface. - */ - public function setProperty($value) - { - $this->_property = $value; - return $this; - } - -} - - diff --git a/library/vendor/Zend/Gdata/Gapps/MemberFeed.php b/library/vendor/Zend/Gdata/Gapps/MemberFeed.php deleted file mode 100644 index 83a02c73e..000000000 --- a/library/vendor/Zend/Gdata/Gapps/MemberFeed.php +++ /dev/null @@ -1,51 +0,0 @@ -setGroupId($groupId); - $this->setMemberId($memberId); - $this->setStartMemberId($startMemberId); - } - - /** - * Set the group id to query for. - * - * @see getGroupId - * @param string $value The group id to filter search results by, or null to - * disable. - */ - public function setGroupId($value) - { - $this->_groupId = $value; - } - - /** - * Get the group id to query for. If no group id is set, null will be - * returned. - * - * @param string $value The group id to filter search results by, or - * null if disabled. - * @return string The group id - */ - public function getGroupId() - { - return $this->_groupId; - } - - - /** - * Set the member id to query for. When set, only users with a member id - * matching this value will be returned in search results. Set to - * null to disable filtering by member id. - * - * @see getMemberId - * @param string $value The member id to filter search results by, or null to - * disable. - */ - public function setMemberId($value) - { - $this->_memberId = $value; - } - - /** - * Get the member id to query for. If no member id is set, null will be - * returned. - * - * @param string $value The member id to filter search results by, or - * null if disabled. - * @return The member id - */ - public function getMemberId() - { - return $this->_memberId; - } - - /** - * Set the first member id which should be displayed when retrieving - * a list of members. - * - * @param string $value The first member id to be returned, or null to - * disable. - */ - public function setStartMemberId($value) - { - if ($value !== null) { - $this->_params['start'] = $value; - } else { - unset($this->_params['start']); - } - } - - /** - * Get the first username which should be displayed when retrieving - * a list of users. - * - * @see setStartUsername - * @return string The first username to be returned, or null if - * disabled. - */ - public function getStartMemberId() - { - if (array_key_exists('start', $this->_params)) { - return $this->_params['start']; - } else { - return null; - } - } - - /** - * Returns the query URL generated by this query instance. - * - * @return string The query URL for this instance. - */ - public function getQueryUrl() - { - - $uri = Zend_Gdata_Gapps::APPS_BASE_FEED_URI; - $uri .= Zend_Gdata_Gapps::APPS_GROUP_PATH; - $uri .= '/' . $this->_domain; - if ($this->_groupId !== null) { - $uri .= '/' . $this->_groupId; - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'groupId must not be null'); - } - - $uri .= '/member'; - - if ($this->_memberId !== null) { - $uri .= '/' . $this->_memberId; - } - $uri .= $this->getQueryString(); - return $uri; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/NicknameEntry.php b/library/vendor/Zend/Gdata/Gapps/NicknameEntry.php deleted file mode 100644 index a9b20e175..000000000 --- a/library/vendor/Zend/Gdata/Gapps/NicknameEntry.php +++ /dev/null @@ -1,186 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Gapps - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Gapps_NicknameEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Gapps_NicknameEntry'; - - /** - * element used to hold information about the owner - * of this nickname, including their username. - * - * @var Zend_Gdata_Gapps_Extension_Login - */ - protected $_login = null; - - /** - * element used to hold the name of this nickname. - * - * @var Zend_Gdata_Gapps_Extension_Nickname - */ - protected $_nickname = null; - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_login !== null) { - $element->appendChild($this->_login->getDOM($element->ownerDocument)); - } - if ($this->_nickname !== null) { - $element->appendChild($this->_nickname->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('apps') . ':' . 'login'; - $login = new Zend_Gdata_Gapps_Extension_Login(); - $login->transferFromDOM($child); - $this->_login = $login; - break; - case $this->lookupNamespace('apps') . ':' . 'nickname'; - $nickname = new Zend_Gdata_Gapps_Extension_Nickname(); - $nickname->transferFromDOM($child); - $this->_nickname = $nickname; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value of the login property for this object. - * - * @see setLogin - * @return Zend_Gdata_Gapps_Extension_Login The requested object. - */ - public function getLogin() - { - return $this->_login; - } - - /** - * Set the value of the login property for this object. This property - * is used to store the username address of the current user. - * - * @param Zend_Gdata_Gapps_Extension_Login $value The desired value for - * this instance's login property. - * @return Zend_Gdata_Gapps_NicknameEntry Provides a fluent interface. - */ - public function setLogin($value) - { - $this->_login = $value; - return $this; - } - - /** - * Get the value of the nickname property for this object. - * - * @see setNickname - * @return Zend_Gdata_Gapps_Extension_Nickname The requested object. - */ - public function getNickname() - { - return $this->_nickname; - } - - /** - * Set the value of the nickname property for this object. This property - * is used to store the the name of the current nickname. - * - * @param Zend_Gdata_Gapps_Extension_Nickname $value The desired value for - * this instance's nickname property. - * @return Zend_Gdata_Gapps_NicknameEntry Provides a fluent interface. - */ - public function setNickname($value) - { - $this->_nickname = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/NicknameFeed.php b/library/vendor/Zend/Gdata/Gapps/NicknameFeed.php deleted file mode 100644 index 2d7d052c0..000000000 --- a/library/vendor/Zend/Gdata/Gapps/NicknameFeed.php +++ /dev/null @@ -1,51 +0,0 @@ -setNickname($nickname); - $this->setUsername($username); - $this->setStartNickname($startNickname); - } - - /** - * Set the nickname to query for. When set, only users with a nickname - * matching this value will be returned in search results. Set to - * null to disable filtering by username. - * - * @param string $value The nickname to filter search results by, or null - * to disable. - */ - public function setNickname($value) - { - $this->_nickname = $value; - } - - /** - * Get the nickname to query for. If no nickname is set, null will be - * returned. - * - * @see setNickname - * @return string The nickname to filter search results by, or null if - * disabled. - */ - public function getNickname() - { - return $this->_nickname; - } - - /** - * Set the username to query for. When set, only users with a username - * matching this value will be returned in search results. Set to - * null to disable filtering by username. - * - * @param string $value The username to filter search results by, or null - * to disable. - */ - public function setUsername($value) - { - if ($value !== null) { - $this->_params['username'] = $value; - } - else { - unset($this->_params['username']); - } - } - - /** - * Get the username to query for. If no username is set, null will be - * returned. - * - * @see setUsername - * @return string The username to filter search results by, or null if - * disabled. - */ - public function getUsername() - { - if (array_key_exists('username', $this->_params)) { - return $this->_params['username']; - } else { - return null; - } - } - - /** - * Set the first nickname which should be displayed when retrieving - * a list of nicknames. - * - * @param string $value The first nickname to be returned, or null to - * disable. - */ - public function setStartNickname($value) - { - if ($value !== null) { - $this->_params['startNickname'] = $value; - } else { - unset($this->_params['startNickname']); - } - } - - /** - * Get the first nickname which should be displayed when retrieving - * a list of nicknames. - * - * @return string The first nickname to be returned, or null to - * disable. - */ - public function getStartNickname() - { - if (array_key_exists('startNickname', $this->_params)) { - return $this->_params['startNickname']; - } else { - return null; - } - } - - /** - * Returns the URL generated for this query, based on it's current - * parameters. - * - * @return string A URL generated based on the state of this query. - */ - public function getQueryUrl() - { - - $uri = $this->getBaseUrl(); - $uri .= Zend_Gdata_Gapps::APPS_NICKNAME_PATH; - if ($this->_nickname !== null) { - $uri .= '/' . $this->_nickname; - } - $uri .= $this->getQueryString(); - return $uri; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/OwnerEntry.php b/library/vendor/Zend/Gdata/Gapps/OwnerEntry.php deleted file mode 100644 index 18db9c700..000000000 --- a/library/vendor/Zend/Gdata/Gapps/OwnerEntry.php +++ /dev/null @@ -1,156 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Gapps - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Gapps_OwnerEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Gapps_OwnerEntry'; - - /** - * element containing information about other items - * relevant to this entry. - * - * @var Zend_Gdata_Gapps_Extension_Property - */ - protected $_property = array(); - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - - foreach ($this->_property as $p) { - $element->appendChild($p->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as owners of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - - case $this->lookupNamespace('apps') . ':' . 'property'; - $property = new Zend_Gdata_Gapps_Extension_Property(); - $property->transferFromDOM($child); - $this->_property[] = $property; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Returns all property tags for this entry - * - * @param string $rel The rel value of the property to be found. If null, - * the array of properties is returned instead. - * @return mixed Either an array of Zend_Gdata_Gapps_Extension_Property - * objects if $rel is null, a single - * Zend_Gdata_Gapps_Extension_Property object if $rel is specified - * and a matching feed link is found, or null if $rel is - * specified and no matching property is found. - */ - public function getProperty($rel = null) - { - if ($rel == null) { - return $this->_property; - } else { - foreach ($this->_property as $p) { - if ($p->rel == $rel) { - return $p; - } - } - return null; - } - } - - /** - * Set the value of the property property for this object. - * - * @param array $value A collection of - * Zend_Gdata_Gapps_Extension_Property objects. - * @return Zend_Gdata_Gapps_OwnerEntry Provides a fluent interface. - */ - public function setProperty($value) - { - $this->_property = $value; - return $this; - } - -} - diff --git a/library/vendor/Zend/Gdata/Gapps/OwnerFeed.php b/library/vendor/Zend/Gdata/Gapps/OwnerFeed.php deleted file mode 100644 index c85e3f5bc..000000000 --- a/library/vendor/Zend/Gdata/Gapps/OwnerFeed.php +++ /dev/null @@ -1,51 +0,0 @@ -setGroupId($groupId); - $this->setOwnerEmail($ownerEmail); - } - - /** - * Set the group id to query for. - * - * @see getGroupId - * @param string $value - */ - public function setGroupId($value) - { - $this->_groupId = $value; - } - - /** - * Get the group id to query for. - * - * @return string - * - */ - public function getGroupId() - { - return $this->_groupId; - } - - /** - * Set the owner email to query for. - * - * @see getOwnerEmail - * @param string $value - */ - public function setOwnerEmail($value) - { - $this->_ownerEmail = $value; - } - - /** - * Get the owner email to query for. - * - * @return string - * - */ - public function getOwnerEmail() - { - return $this->_ownerEmail; - } - - /** - * Returns the query URL generated by this query instance. - * - * @return string The query URL for this instance. - */ - public function getQueryUrl() - { - $uri = Zend_Gdata_Gapps::APPS_BASE_FEED_URI; - $uri .= Zend_Gdata_Gapps::APPS_GROUP_PATH; - $uri .= '/' . $this->_domain; - if ($this->_groupId !== null) { - $uri .= '/' . $this->_groupId; - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'groupId must not be null'); - } - - $uri .= '/owner'; - - if ($this->_ownerEmail !== null) { - $uri .= '/' . $this->_ownerEmail; - } - - $uri .= $this->getQueryString(); - return $uri; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/Query.php b/library/vendor/Zend/Gdata/Gapps/Query.php deleted file mode 100644 index d2d5da205..000000000 --- a/library/vendor/Zend/Gdata/Gapps/Query.php +++ /dev/null @@ -1,120 +0,0 @@ -_domain = $domain; - } - - /** - * Set domain for this service instance. This should be a fully qualified - * domain, such as 'foo.example.com'. - * - * This value is used when calculating URLs for retrieving and posting - * entries. If no value is specified, a URL will have to be manually - * constructed prior to using any methods which interact with the Google - * Apps provisioning service. - * - * @param string $value The domain to be used for this session. - */ - public function setDomain($value) - { - $this->_domain = $value; - } - - /** - * Get domain for this service instance. This should be a fully qualified - * domain, such as 'foo.example.com'. If no domain is set, null will be - * returned. - * - * @see setDomain - * @return string The domain to be used for this session, or null if not - * set. - */ - public function getDomain() - { - return $this->_domain; - } - - /** - * Returns the base URL used to access the Google Apps service, based - * on the current domain. The current domain can be temporarily - * overridden by providing a fully qualified domain as $domain. - * - * @see setDomain - * @param string $domain (optional) A fully-qualified domain to use - * instead of the default domain for this service instance. - */ - public function getBaseUrl($domain = null) - { - if ($domain !== null) { - return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $domain; - } - else if ($this->_domain !== null) { - return Zend_Gdata_Gapps::APPS_BASE_FEED_URI . '/' . $this->_domain; - } - else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Domain must be specified.'); - } - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/ServiceException.php b/library/vendor/Zend/Gdata/Gapps/ServiceException.php deleted file mode 100644 index 262d3dd6a..000000000 --- a/library/vendor/Zend/Gdata/Gapps/ServiceException.php +++ /dev/null @@ -1,204 +0,0 @@ -setErrors($errors); - } - } - - /** - * Add a single Error object to the list of errors received by the - * server. - * - * @param Zend_Gdata_Gapps_Error $error An instance of an error returned - * by the server. The error's errorCode must be set. - * @throws Zend_Gdata_App_Exception - */ - public function addError($error) { - // Make sure that we don't try to index an error that doesn't - // contain an index value. - if ($error->getErrorCode() == null) { - throw new Zend_Gdata_App_Exception("Error encountered without corresponding error code."); - } - - $this->_errors[$error->getErrorCode()] = $error; - } - - /** - * Set the list of errors as sent by the server inside of an - * AppsForYourDomainErrors tag. - * - * @param array $array An associative array containing a collection of - * Zend_Gdata_Gapps_Error objects. All errors must have their - * errorCode value set. - * @throws Zend_Gdata_App_Exception - */ - public function setErrors($array) { - $this->_errors = array(); - foreach ($array as $error) { - $this->addError($error); - } - } - - /** - * Get the list of errors as sent by the server inside of an - * AppsForYourDomainErrors tag. - * - * @return array An associative array containing a collection of - * Zend_Gdata_Gapps_Error objects, indexed by error code. - */ - public function getErrors() { - return $this->_errors; - } - - /** - * Return the Error object associated with a specific error code. - * - * @return Zend_Gdata_Gapps_Error The Error object requested, or null - * if not found. - */ - public function getError($errorCode) { - if (array_key_exists($errorCode, $this->_errors)) { - $result = $this->_errors[$errorCode]; - return $result; - } else { - return null; - } - } - - /** - * Check whether or not a particular error code was returned by the - * server. - * - * @param integer $errorCode The error code to check against. - * @return boolean Whether or not the supplied error code was returned - * by the server. - */ - public function hasError($errorCode) { - return array_key_exists($errorCode, $this->_errors); - } - - /** - * Import an AppsForYourDomain error from XML. - * - * @param string $string The XML data to be imported - * @return Zend_Gdata_Gapps_ServiceException Provides a fluent interface. - * @throws Zend_Gdata_App_Exception - */ - public function importFromString($string) { - if ($string) { - // Check to see if an AppsForYourDomainError exists - // - // track_errors is temporarily enabled so that if an error - // occurs while parsing the XML we can append it to an - // exception by referencing $php_errormsg - @ini_set('track_errors', 1); - $doc = new DOMDocument(); - $doc = @Zend_Xml_Security::scan($string, $doc); - @ini_restore('track_errors'); - - if (!$doc) { - // $php_errormsg is automatically generated by PHP if - // an error occurs while calling loadXML(), above. - throw new Zend_Gdata_App_Exception("DOMDocument cannot parse XML: $php_errormsg"); - } - - // Ensure that the outermost node is an AppsForYourDomain error. - // If it isn't, something has gone horribly wrong. - $rootElement = $doc->getElementsByTagName($this->_rootElement)->item(0); - if (!$rootElement) { - throw new Zend_Gdata_App_Exception('No root <' . $this->_rootElement . '> element found, cannot parse feed.'); - } - - foreach ($rootElement->childNodes as $errorNode) { - if (!($errorNode instanceof DOMText)) { - $error = new Zend_Gdata_Gapps_Error(); - $error->transferFromDom($errorNode); - $this->addError($error); - } - } - return $this; - } else { - throw new Zend_Gdata_App_Exception('XML passed to transferFromXML cannot be null'); - } - - } - - /** - * Get a human readable version of this exception. - * - * @return string - */ - public function __toString() { - $result = "The server encountered the following errors processing the request:"; - foreach ($this->_errors as $error) { - $result .= "\n" . $error->__toString(); - } - return $result; - } -} diff --git a/library/vendor/Zend/Gdata/Gapps/UserEntry.php b/library/vendor/Zend/Gdata/Gapps/UserEntry.php deleted file mode 100644 index 414813f24..000000000 --- a/library/vendor/Zend/Gdata/Gapps/UserEntry.php +++ /dev/null @@ -1,290 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Gapps - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Gapps_UserEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Gapps_UserEntry'; - - /** - * element containing information about this user's - * account, including their username and permissions. - * - * @var Zend_Gdata_Gapps_Extension_Login - */ - protected $_login = null; - - /** - * element containing the user's actual name. - * - * @var Zend_Gdata_Gapps_Extension_Name - */ - protected $_name = null; - - /** - * element describing any storage quotas in place for - * this user. - * - * @var Zend_Gdata_Gapps_Extension_Quota - */ - protected $_quota = null; - - /** - * element containing information about other feeds - * relevant to this entry. - * - * @var Zend_Gdata_Extension_FeedLink - */ - protected $_feedLink = array(); - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_login !== null) { - $element->appendChild($this->_login->getDOM($element->ownerDocument)); - } - if ($this->_name !== null) { - $element->appendChild($this->_name->getDOM($element->ownerDocument)); - } - if ($this->_quota !== null) { - $element->appendChild($this->_quota->getDOM($element->ownerDocument)); - } - foreach ($this->_feedLink as $feedLink) { - $element->appendChild($feedLink->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('apps') . ':' . 'login'; - $login = new Zend_Gdata_Gapps_Extension_Login(); - $login->transferFromDOM($child); - $this->_login = $login; - break; - case $this->lookupNamespace('apps') . ':' . 'name'; - $name = new Zend_Gdata_Gapps_Extension_Name(); - $name->transferFromDOM($child); - $this->_name = $name; - break; - case $this->lookupNamespace('apps') . ':' . 'quota'; - $quota = new Zend_Gdata_Gapps_Extension_Quota(); - $quota->transferFromDOM($child); - $this->_quota = $quota; - break; - case $this->lookupNamespace('gd') . ':' . 'feedLink'; - $feedLink = new Zend_Gdata_Extension_FeedLink(); - $feedLink->transferFromDOM($child); - $this->_feedLink[] = $feedLink; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value of the login property for this object. - * - * @see setLogin - * @return Zend_Gdata_Gapps_Extension_Login The requested object. - */ - public function getLogin() - { - return $this->_login; - } - - /** - * Set the value of the login property for this object. This property - * is used to store the username address of the current user. - * - * @param Zend_Gdata_Gapps_Extension_Login $value The desired value for - * this instance's login property. - * @return Zend_Gdata_Gapps_UserEntry Provides a fluent interface. - */ - public function setLogin($value) - { - $this->_login = $value; - return $this; - } - - /** - * Get the value of the name property for this object. - * - * @see setName - * @return Zend_Gdata_Gapps_Extension_Name The requested object. - */ - public function getName() - { - return $this->_name; - } - - /** - * Set the value of the name property for this object. This property - * is used to store the full name of the current user. - * - * @param Zend_Gdata_Gapps_Extension_Name $value The desired value for - * this instance's name property. - * @return Zend_Gdata_Gapps_UserEntry Provides a fluent interface. - */ - public function setName($value) - { - $this->_name = $value; - return $this; - } - - /** - * Get the value of the quota property for this object. - * - * @see setQuota - * @return Zend_Gdata_Gapps_Extension_Quota The requested object. - */ - public function getQuota() - { - return $this->_quota; - } - - /** - * Set the value of the quota property for this object. This property - * is used to store the amount of storage available for the current - * user. Quotas may not be modifiable depending on the domain used. - * - * @param Zend_Gdata_Gapps_Extension_Quota $value The desired value for - * this instance's quota property. - * @return Zend_Gdata_Gapps_UserEntry Provides a fluent interface. - */ - public function setQuota($value) - { - $this->_quota = $value; - return $this; - } - - /** - * Returns all feed links for this entry, or if a rel value is - * specified, the feed link associated with that value is returned. - * - * @param string $rel The rel value of the link to be found. If null, - * the array of links is returned instead. - * @return mixed Either an array of Zend_Gdata_Extension_FeedLink - * objects if $rel is null, a single - * Zend_Gdata_Extension_FeedLink object if $rel is specified - * and a matching feed link is found, or null if $rel is - * specified and no matching feed link is found. - */ - 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; - } - } - - /** - * Set the value of the feed link property for this object. This property - * is used to provide links to alternative feeds relevant to this entry. - * - * @param array $value A collection of - * Zend_Gdata_Gapps_Extension_FeedLink objects. - * @return Zend_Gdata_Gapps_EventEntry Provides a fluent interface. - */ - public function setFeedLink($value) - { - $this->_feedLink = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Gapps/UserFeed.php b/library/vendor/Zend/Gdata/Gapps/UserFeed.php deleted file mode 100644 index 68660ed1c..000000000 --- a/library/vendor/Zend/Gdata/Gapps/UserFeed.php +++ /dev/null @@ -1,51 +0,0 @@ -setUsername($username); - $this->setStartUsername($startUsername); - } - - /** - * Set the username to query for. When set, only users with a username - * matching this value will be returned in search results. Set to - * null to disable filtering by username. - * - * @see getUsername - * @param string $value The username to filter search results by, or null to - * disable. - */ - public function setUsername($value) - { - $this->_username = $value; - } - - /** - * Get the username to query for. If no username is set, null will be - * returned. - * - * @param string $value The username to filter search results by, or - * null if disabled. - */ - public function getUsername() - { - return $this->_username; - } - - /** - * Set the first username which should be displayed when retrieving - * a list of users. - * - * @param string $value The first username to be returned, or null to - * disable. - */ - public function setStartUsername($value) - { - if ($value !== null) { - $this->_params['startUsername'] = $value; - } else { - unset($this->_params['startUsername']); - } - } - - /** - * Get the first username which should be displayed when retrieving - * a list of users. - * - * @see setStartUsername - * @return string The first username to be returned, or null if - * disabled. - */ - public function getStartUsername() - { - if (array_key_exists('startUsername', $this->_params)) { - return $this->_params['startUsername']; - } else { - return null; - } - } - - /** - * Returns the query URL generated by this query instance. - * - * @return string The query URL for this instance. - */ - public function getQueryUrl() - { - $uri = $this->getBaseUrl(); - $uri .= Zend_Gdata_Gapps::APPS_USER_PATH; - if ($this->_username !== null) { - $uri .= '/' . $this->_username; - } - $uri .= $this->getQueryString(); - return $uri; - } - -} diff --git a/library/vendor/Zend/Gdata/Gbase.php b/library/vendor/Zend/Gdata/Gbase.php deleted file mode 100644 index b66e81f6d..000000000 --- a/library/vendor/Zend/Gdata/Gbase.php +++ /dev/null @@ -1,76 +0,0 @@ -registerPackage('Zend_Gdata_Geo'); - $this->registerPackage('Zend_Gdata_Geo_Extension'); - parent::__construct($client, $applicationId); - } - -} diff --git a/library/vendor/Zend/Gdata/Geo/Entry.php b/library/vendor/Zend/Gdata/Geo/Entry.php deleted file mode 100755 index 627c2bc04..000000000 --- a/library/vendor/Zend/Gdata/Geo/Entry.php +++ /dev/null @@ -1,94 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Geo::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_where != null) { - $element->appendChild($this->_where->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('georss') . ':' . 'where': - $where = new Zend_Gdata_Geo_Extension_GeoRssWhere(); - $where->transferFromDOM($child); - $this->_where = $where; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - public function getWhere() - { - return $this->_where; - } - - public function setWhere($value) - { - $this->_where = $value; - return $this; - } - - -} diff --git a/library/vendor/Zend/Gdata/Geo/Extension/GeoRssWhere.php b/library/vendor/Zend/Gdata/Geo/Extension/GeoRssWhere.php deleted file mode 100755 index 64905dada..000000000 --- a/library/vendor/Zend/Gdata/Geo/Extension/GeoRssWhere.php +++ /dev/null @@ -1,132 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Geo::$namespaces); - parent::__construct(); - $this->setPoint($point); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_point !== null) { - $element->appendChild($this->_point->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gml') . ':' . 'Point'; - $point = new Zend_Gdata_Geo_Extension_GmlPoint(); - $point->transferFromDOM($child); - $this->_point = $point; - break; - } - } - - /** - * Get the value for this element's point attribute. - * - * @see setPoint - * @return Zend_Gdata_Geo_Extension_GmlPoint The requested attribute. - */ - public function getPoint() - { - return $this->_point; - } - - /** - * Set the value for this element's point attribute. - * - * @param Zend_Gdata_Geo_Extension_GmlPoint $value The desired value for this attribute. - * @return Zend_Gdata_Geo_Extension_GeoRssWhere Provides a fluent interface - */ - public function setPoint($value) - { - $this->_point = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Geo/Extension/GmlPoint.php b/library/vendor/Zend/Gdata/Geo/Extension/GmlPoint.php deleted file mode 100755 index 1255e35c7..000000000 --- a/library/vendor/Zend/Gdata/Geo/Extension/GmlPoint.php +++ /dev/null @@ -1,133 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Geo::$namespaces); - parent::__construct(); - $this->setPos($pos); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_pos !== null) { - $element->appendChild($this->_pos->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gml') . ':' . 'pos'; - $pos = new Zend_Gdata_Geo_Extension_GmlPos(); - $pos->transferFromDOM($child); - $this->_pos = $pos; - break; - } - } - - /** - * Get the value for this element's pos attribute. - * - * @see setPos - * @return Zend_Gdata_Geo_Extension_GmlPos The requested attribute. - */ - public function getPos() - { - return $this->_pos; - } - - /** - * Set the value for this element's distance attribute. - * - * @param Zend_Gdata_Geo_Extension_GmlPos $value The desired value for this attribute - * @return Zend_Gdata_Geo_Extension_GmlPoint Provides a fluent interface - */ - public function setPos($value) - { - $this->_pos = $value; - return $this; - } - - -} diff --git a/library/vendor/Zend/Gdata/Geo/Extension/GmlPos.php b/library/vendor/Zend/Gdata/Geo/Extension/GmlPos.php deleted file mode 100755 index 7968f6981..000000000 --- a/library/vendor/Zend/Gdata/Geo/Extension/GmlPos.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Geo::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Geo/Feed.php b/library/vendor/Zend/Gdata/Geo/Feed.php deleted file mode 100755 index 6f371142e..000000000 --- a/library/vendor/Zend/Gdata/Geo/Feed.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Geo::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/Health.php b/library/vendor/Zend/Gdata/Health.php deleted file mode 100755 index 80c1ff3c9..000000000 --- a/library/vendor/Zend/Gdata/Health.php +++ /dev/null @@ -1,87 +0,0 @@ -config['proxy_host']) { - throw new Zend_Http_Client_Adapter_Exception('No proxy host set!'); - } - - // Make sure we're properly connected - if (! $this->socket) { - throw new Zend_Http_Client_Adapter_Exception( - 'Trying to write but we are not connected'); - } - - $host = $this->config['proxy_host']; - $port = $this->config['proxy_port']; - - if ($this->connected_to[0] != $host || $this->connected_to[1] != $port) { - throw new Zend_Http_Client_Adapter_Exception( - 'Trying to write but we are connected to the wrong proxy ' . - 'server'); - } - - // Add Proxy-Authorization header - if ($this->config['proxy_user'] && ! isset($headers['proxy-authorization'])) { - $headers['proxy-authorization'] = Zend_Http_Client::encodeAuthHeader( - $this->config['proxy_user'], $this->config['proxy_pass'], $this->config['proxy_auth'] - ); - } - - // if we are proxying HTTPS, preform CONNECT handshake with the proxy - if ($uri->getScheme() == 'https' && (! $this->negotiated)) { - $this->connectHandshake($uri->getHost(), $uri->getPort(), $http_ver, $headers); - $this->negotiated = true; - } - - // Save request method for later - $this->method = $method; - - // Build request headers - $request = "{$method} {$uri->__toString()} HTTP/{$http_ver}\r\n"; - - // Add all headers to the request string - foreach ($headers as $k => $v) { - if (is_string($k)) $v = "$k: $v"; - $request .= "$v\r\n"; - } - - $request .= "\r\n"; - - // Send the request headers - if (! @fwrite($this->socket, $request)) { - throw new Zend_Http_Client_Adapter_Exception( - 'Error writing request to proxy server'); - } - - //read from $body, write to socket - while ($body->hasData()) { - if (! @fwrite($this->socket, $body->read(self::CHUNK_SIZE))) { - throw new Zend_Http_Client_Adapter_Exception( - 'Error writing request to server'); - } - } - return 'Large upload, request is not cached.'; - } -} diff --git a/library/vendor/Zend/Gdata/HttpAdapterStreamingSocket.php b/library/vendor/Zend/Gdata/HttpAdapterStreamingSocket.php deleted file mode 100644 index a09b8bf5b..000000000 --- a/library/vendor/Zend/Gdata/HttpAdapterStreamingSocket.php +++ /dev/null @@ -1,106 +0,0 @@ -socket) { - throw new Zend_Http_Client_Adapter_Exception( - 'Trying to write but we are not connected'); - } - - $host = $uri->getHost(); - $host = (strtolower($uri->getScheme()) == 'https' ? $this->config['ssltransport'] : 'tcp') . '://' . $host; - if ($this->connected_to[0] != $host || $this->connected_to[1] != $uri->getPort()) { - throw new Zend_Http_Client_Adapter_Exception( - 'Trying to write but we are connected to the wrong host'); - } - - // Save request method for later - $this->method = $method; - - // Build request headers - $path = $uri->getPath(); - if ($uri->getQuery()) $path .= '?' . $uri->getQuery(); - $request = "{$method} {$path} HTTP/{$http_ver}\r\n"; - foreach ($headers as $k => $v) { - if (is_string($k)) $v = ucfirst($k) . ": $v"; - $request .= "$v\r\n"; - } - - // Send the headers over - $request .= "\r\n"; - if (! @fwrite($this->socket, $request)) { - throw new Zend_Http_Client_Adapter_Exception( - 'Error writing request to server'); - } - - - //read from $body, write to socket - $chunk = $body->read(self::CHUNK_SIZE); - while ($chunk !== FALSE) { - if (! @fwrite($this->socket, $chunk)) { - throw new Zend_Http_Client_Adapter_Exception( - 'Error writing request to server'); - } - $chunk = $body->read(self::CHUNK_SIZE); - } - $body->closeFileHandle(); - return 'Large upload, request is not cached.'; - } -} diff --git a/library/vendor/Zend/Gdata/HttpClient.php b/library/vendor/Zend/Gdata/HttpClient.php deleted file mode 100644 index c82847e6c..000000000 --- a/library/vendor/Zend/Gdata/HttpClient.php +++ /dev/null @@ -1,348 +0,0 @@ -setAuthSubPrivateKey($key, $passphrase); - fclose($fp); - } - - /** - * Sets the PEM formatted private key to be used for secure AuthSub auth. - * - * In order to call this method, openssl must be enabled in your PHP - * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException - * will be thrown. - * - * @param string $key The private key - * @param string $passphrase The optional private key passphrase - * @throws Zend_Gdata_App_InvalidArgumentException - * @return Zend_Gdata_HttpClient Provides a fluent interface - */ - public function setAuthSubPrivateKey($key, $passphrase = null) { - if ($key != null && !function_exists('openssl_pkey_get_private')) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'You cannot enable secure AuthSub if the openssl module ' . - 'is not enabled in your PHP installation.'); - } - $this->_authSubPrivateKeyId = openssl_pkey_get_private( - $key, $passphrase); - return $this; - } - - /** - * Gets the openssl private key id - * - * @return string The private key - */ - public function getAuthSubPrivateKeyId() { - return $this->_authSubPrivateKeyId; - } - - /** - * Gets the AuthSub token used for authentication - * - * @return string The token - */ - public function getAuthSubToken() { - return $this->_authSubToken; - } - - /** - * Sets the AuthSub token used for authentication - * - * @param string $token The token - * @return Zend_Gdata_HttpClient Provides a fluent interface - */ - public function setAuthSubToken($token) { - $this->_authSubToken = $token; - return $this; - } - - /** - * Gets the ClientLogin token used for authentication - * - * @return string The token - */ - public function getClientLoginToken() { - return $this->_clientLoginToken; - } - - /** - * Sets the ClientLogin token used for authentication - * - * @param string $token The token - * @return Zend_Gdata_HttpClient Provides a fluent interface - */ - public function setClientLoginToken($token) { - $this->_clientLoginToken = $token; - return $this; - } - - /** - * Filters the HTTP requests being sent to add the Authorization header. - * - * If both AuthSub and ClientLogin tokens are set, - * AuthSub takes precedence. If an AuthSub key is set, then - * secure AuthSub authentication is used, and the request is signed. - * Requests must be signed only with the private key corresponding to the - * public key registered with Google. If an AuthSub key is set, but - * openssl support is not enabled in the PHP installation, an exception is - * thrown. - * - * @param string $method The HTTP method - * @param string $url The URL - * @param array $headers An associate array of headers to be - * sent with the request or null - * @param string $body The body of the request or null - * @param string $contentType The MIME content type of the body or null - * @throws Zend_Gdata_App_Exception if there was a signing failure - * @return array The processed values in an associative array, - * using the same names as the params - */ - public function filterHttpRequest($method, $url, $headers = array(), $body = null, $contentType = null) { - if ($this->getAuthSubToken() != null) { - // AuthSub authentication - if ($this->getAuthSubPrivateKeyId() != null) { - // secure AuthSub - $time = time(); - $nonce = mt_rand(0, 999999999); - $dataToSign = $method . ' ' . $url . ' ' . $time . ' ' . $nonce; - - // compute signature - $pKeyId = $this->getAuthSubPrivateKeyId(); - $signSuccess = openssl_sign($dataToSign, $signature, $pKeyId, - OPENSSL_ALGO_SHA1); - if (!$signSuccess) { - throw new Zend_Gdata_App_Exception( - 'openssl_signing failure - returned false'); - } - // encode signature - $encodedSignature = base64_encode($signature); - - // final header - $headers['authorization'] = 'AuthSub token="' . $this->getAuthSubToken() . '" ' . - 'data="' . $dataToSign . '" ' . - 'sig="' . $encodedSignature . '" ' . - 'sigalg="rsa-sha1"'; - } else { - // AuthSub without secure tokens - $headers['authorization'] = 'AuthSub token="' . $this->getAuthSubToken() . '"'; - } - } elseif ($this->getClientLoginToken() != null) { - $headers['authorization'] = 'GoogleLogin auth=' . $this->getClientLoginToken(); - } - return array('method' => $method, 'url' => $url, 'body' => $body, 'headers' => $headers, 'contentType' => $contentType); - } - - /** - * Method for filtering the HTTP response, though no filtering is - * currently done. - * - * @param Zend_Http_Response $response The response object to filter - * @return Zend_Http_Response The filterd response object - */ - public function filterHttpResponse($response) { - return $response; - } - - /** - * Return the current connection adapter - * - * @return Zend_Http_Client_Adapter_Interface|string $adapter - */ - public function getAdapter() - { - return $this->adapter; - } - - /** - * Load the connection adapter - * - * @param Zend_Http_Client_Adapter_Interface $adapter - * @return void - */ - public function setAdapter($adapter) - { - if ($adapter == null) { - $this->adapter = $adapter; - } else { - parent::setAdapter($adapter); - } - } - - /** - * Set the streamingRequest variable which controls whether we are - * sending the raw (already encoded) POST data from a stream source. - * - * @param boolean $value The value to set. - * @return void - */ - public function setStreamingRequest($value) - { - $this->_streamingRequest = $value; - } - - /** - * Check whether the client is set to perform streaming requests. - * - * @return boolean True if yes, false otherwise. - */ - public function getStreamingRequest() - { - if ($this->_streamingRequest()) { - return true; - } else { - return false; - } - } - - /** - * Prepare the request body (for POST and PUT requests) - * - * @return string - * @throws Zend_Http_Client_Exception - */ - protected function _prepareBody() - { - if($this->_streamingRequest) { - $this->setHeaders(self::CONTENT_LENGTH, - $this->raw_post_data->getTotalSize()); - return $this->raw_post_data; - } - else { - return parent::_prepareBody(); - } - } - - /** - * Clear all custom parameters we set. - * - * @return Zend_Http_Client - */ - public function resetParameters($clearAll = false) - { - $this->_streamingRequest = false; - - return parent::resetParameters($clearAll); - } - - /** - * Set the raw (already encoded) POST data from a stream source. - * - * This is used to support POSTing from open file handles without - * caching the entire body into memory. It is a wrapper around - * Zend_Http_Client::setRawData(). - * - * @param string $data The request data - * @param string $enctype The encoding type - * @return Zend_Http_Client - */ - public function setRawDataStream($data, $enctype = null) - { - $this->_streamingRequest = true; - return $this->setRawData($data, $enctype); - } - -} diff --git a/library/vendor/Zend/Gdata/Kind/EventEntry.php b/library/vendor/Zend/Gdata/Kind/EventEntry.php deleted file mode 100644 index 8fa5fa3e4..000000000 --- a/library/vendor/Zend/Gdata/Kind/EventEntry.php +++ /dev/null @@ -1,414 +0,0 @@ -_who != null) { - foreach ($this->_who as $who) { - $element->appendChild($who->getDOM($element->ownerDocument)); - } - } - if ($this->_when != null) { - foreach ($this->_when as $when) { - $element->appendChild($when->getDOM($element->ownerDocument)); - } - } - if ($this->_where != null) { - foreach ($this->_where as $where) { - $element->appendChild($where->getDOM($element->ownerDocument)); - } - } - if ($this->_recurrenceException != null) { - foreach ($this->_recurrenceException as $recurrenceException) { - $element->appendChild($recurrenceException->getDOM($element->ownerDocument)); - } - } - if ($this->_extendedProperty != null) { - foreach ($this->_extendedProperty as $extProp) { - $element->appendChild($extProp->getDOM($element->ownerDocument)); - } - } - - if ($this->_recurrence != null) { - $element->appendChild($this->_recurrence->getDOM($element->ownerDocument)); - } - if ($this->_eventStatus != null) { - $element->appendChild($this->_eventStatus->getDOM($element->ownerDocument)); - } - if ($this->_comments != null) { - $element->appendChild($this->_comments->getDOM($element->ownerDocument)); - } - if ($this->_transparency != null) { - $element->appendChild($this->_transparency->getDOM($element->ownerDocument)); - } - if ($this->_visibility != null) { - $element->appendChild($this->_visibility->getDOM($element->ownerDocument)); - } - if ($this->_originalEvent != null) { - $element->appendChild($this->_originalEvent->getDOM($element->ownerDocument)); - } - if ($this->_entryLink != null) { - $element->appendChild($this->_entryLink->getDOM($element->ownerDocument)); - } - - - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'where'; - $where = new Zend_Gdata_Extension_Where(); - $where->transferFromDOM($child); - $this->_where[] = $where; - break; - case $this->lookupNamespace('gd') . ':' . 'when'; - $when = new Zend_Gdata_Extension_When(); - $when->transferFromDOM($child); - $this->_when[] = $when; - break; - case $this->lookupNamespace('gd') . ':' . 'who'; - $who = new Zend_Gdata_Extension_Who(); - $who ->transferFromDOM($child); - $this->_who[] = $who; - break; - case $this->lookupNamespace('gd') . ':' . 'recurrence'; - $recurrence = new Zend_Gdata_Extension_Recurrence(); - $recurrence->transferFromDOM($child); - $this->_recurrence = $recurrence; - break; - case $this->lookupNamespace('gd') . ':' . 'eventStatus'; - $eventStatus = new Zend_Gdata_Extension_EventStatus(); - $eventStatus->transferFromDOM($child); - $this->_eventStatus = $eventStatus; - break; - case $this->lookupNamespace('gd') . ':' . 'comments'; - $comments = new Zend_Gdata_Extension_Comments(); - $comments->transferFromDOM($child); - $this->_comments = $comments; - break; - case $this->lookupNamespace('gd') . ':' . 'transparency'; - $transparency = new Zend_Gdata_Extension_Transparency(); - $transparency ->transferFromDOM($child); - $this->_transparency = $transparency; - break; - case $this->lookupNamespace('gd') . ':' . 'visibility'; - $visiblity = new Zend_Gdata_Extension_Visibility(); - $visiblity ->transferFromDOM($child); - $this->_visibility = $visiblity; - break; - case $this->lookupNamespace('gd') . ':' . 'recurrenceException'; - $recurrenceException = new Zend_Gdata_Extension_RecurrenceException(); - $recurrenceException ->transferFromDOM($child); - $this->_recurrenceException[] = $recurrenceException; - break; - case $this->lookupNamespace('gd') . ':' . 'originalEvent'; - $originalEvent = new Zend_Gdata_Extension_OriginalEvent(); - $originalEvent ->transferFromDOM($child); - $this->_originalEvent = $originalEvent; - break; - case $this->lookupNamespace('gd') . ':' . 'extendedProperty'; - $extProp = new Zend_Gdata_Extension_ExtendedProperty(); - $extProp->transferFromDOM($child); - $this->_extendedProperty[] = $extProp; - break; - case $this->lookupNamespace('gd') . ':' . 'entryLink': - $entryLink = new Zend_Gdata_Extension_EntryLink(); - $entryLink->transferFromDOM($child); - $this->_entryLink = $entryLink; - break; - - default: - parent::takeChildFromDOM($child); - break; - } - } - - public function getWhen() - { - return $this->_when; - } - - /** - * @param array $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setWhen($value) - { - $this->_when = $value; - return $this; - } - - public function getWhere() - { - return $this->_where; - } - - /** - * @param array $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setWhere($value) - { - $this->_where = $value; - return $this; - } - - public function getWho() - { - return $this->_who; - } - - /** - * @param array $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setWho($value) - { - $this->_who = $value; - return $this; - } - - public function getRecurrence() - { - return $this->_recurrence; - } - - /** - * @param array $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setRecurrence($value) - { - $this->_recurrence = $value; - return $this; - } - - public function getEventStatus() - { - return $this->_eventStatus; - } - - /** - * @param array $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setEventStatus($value) - { - $this->_eventStatus = $value; - return $this; - } - - public function getComments() - { - return $this->_comments; - } - - /** - * @param array $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setComments($value) - { - $this->_comments = $value; - return $this; - } - - public function getTransparency() - { - return $this->_transparency; - } - - /** - * @param Zend_Gdata_Transparency $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setTransparency($value) - { - $this->_transparency = $value; - return $this; - } - - public function getVisibility() - { - return $this->_visibility; - } - - /** - * @param Zend_Gdata_Visibility $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setVisibility($value) - { - $this->_visibility = $value; - return $this; - } - - public function getRecurrenceExcption() - { - return $this->_recurrenceException; - } - - /** - * @param array $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setRecurrenceException($value) - { - $this->_recurrenceException = $value; - return $this; - } - - public function getExtendedProperty() - { - return $this->_extendedProperty; - } - - /** - * @param array $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setExtendedProperty($value) - { - $this->_extendedProperty = $value; - return $this; - } - - public function getOriginalEvent() - { - return $this->_originalEvent; - } - - /** - * @param Zend_Gdata_Extension_OriginalEvent $value - * @return Zend_Gdata_Kind_EventEntry Provides a fluent interface - */ - public function setOriginalEvent($value) - { - $this->_originalEvent = $value; - return $this; - } - - /** - * Get this entry's EntryLink element. - * - * @return Zend_Gdata_Extension_EntryLink The requested entry. - */ - public function getEntryLink() - { - return $this->_entryLink; - } - - /** - * Set the child's EntryLink element. - * - * @param Zend_Gdata_Extension_EntryLink $value The desired value for this attribute. - * @return Zend_Gdata_Extension_Who The element being modified. - */ - public function setEntryLink($value) - { - $this->_entryLink = $value; - return $this; - } - - -} diff --git a/library/vendor/Zend/Gdata/Media.php b/library/vendor/Zend/Gdata/Media.php deleted file mode 100755 index 9e6b15d9b..000000000 --- a/library/vendor/Zend/Gdata/Media.php +++ /dev/null @@ -1,64 +0,0 @@ -registerPackage('Zend_Gdata_Media'); - $this->registerPackage('Zend_Gdata_Media_Extension'); - parent::__construct($client, $applicationId); - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Entry.php b/library/vendor/Zend/Gdata/Media/Entry.php deleted file mode 100755 index f42042542..000000000 --- a/library/vendor/Zend/Gdata/Media/Entry.php +++ /dev/null @@ -1,131 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_mediaGroup != null) { - $element->appendChild($this->_mediaGroup->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('media') . ':' . 'group': - $mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup(); - $mediaGroup->transferFromDOM($child); - $this->_mediaGroup = $mediaGroup; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Returns the entry's mediaGroup object. - * - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function getMediaGroup() - { - return $this->_mediaGroup; - } - - /** - * Sets the entry's mediaGroup object. - * - * @param Zend_Gdata_Media_Extension_MediaGroup $mediaGroup - * @return Zend_Gdata_Media_Entry Provides a fluent interface - */ - public function setMediaGroup($mediaGroup) - { - $this->_mediaGroup = $mediaGroup; - return $this; - } - - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaCategory.php b/library/vendor/Zend/Gdata/Media/Extension/MediaCategory.php deleted file mode 100755 index 28fb1feee..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaCategory.php +++ /dev/null @@ -1,147 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_text = $text; - $this->_scheme = $scheme; - $this->_label = $label; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_scheme !== null) { - $element->setAttribute('scheme', $this->_scheme); - } - if ($this->_label !== null) { - $element->setAttribute('label', $this->_label); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'scheme': - $this->_scheme = $attribute->nodeValue; - break; - case 'label': - $this->_label = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Returns the URI that identifies the categorization scheme - * Optional. - * - * @return string URI that identifies the categorization scheme - */ - public function getScheme() - { - return $this->_scheme; - } - - /** - * @param string $value URI that identifies the categorization scheme - * @return Zend_Gdata_Media_Extension_MediaCategory Provides a fluent interface - */ - public function setScheme($value) - { - $this->_scheme = $value; - return $this; - } - - /** - * @return string Human-readable label to be displayed in applications - */ - public function getLabel() - { - return $this->_label; - } - - /** - * @param string $value Human-readable label to be displayed in applications - * @return Zend_Gdata_Media_Extension_MediaCategory Provides a fluent interface - */ - public function setLabel($value) - { - $this->_label = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaContent.php b/library/vendor/Zend/Gdata/Media/Extension/MediaContent.php deleted file mode 100755 index b0159f83c..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaContent.php +++ /dev/null @@ -1,521 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_url = $url; - $this->_fileSize = $fileSize; - $this->_type = $type; - $this->_medium = $medium; - $this->_isDefault = $isDefault; - $this->_expression = $expression; - $this->_bitrate = $bitrate; - $this->_framerate = $framerate; - $this->_samplingrate = $samplingrate; - $this->_channels = $channels; - $this->_duration = $duration; - $this->_height = $height; - $this->_width = $width; - $this->_lang = $lang; - } - - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_url !== null) { - $element->setAttribute('url', $this->_url); - } - if ($this->_fileSize !== null) { - $element->setAttribute('fileSize', $this->_fileSize); - } - if ($this->_type !== null) { - $element->setAttribute('type', $this->_type); - } - if ($this->_medium !== null) { - $element->setAttribute('medium', $this->_medium); - } - if ($this->_isDefault !== null) { - $element->setAttribute('isDefault', $this->_isDefault); - } - if ($this->_expression !== null) { - $element->setAttribute('expression', $this->_expression); - } - if ($this->_bitrate !== null) { - $element->setAttribute('bitrate', $this->_bitrate); - } - if ($this->_framerate !== null) { - $element->setAttribute('framerate', $this->_framerate); - } - if ($this->_samplingrate !== null) { - $element->setAttribute('samplingrate', $this->_samplingrate); - } - if ($this->_channels !== null) { - $element->setAttribute('channels', $this->_channels); - } - if ($this->_duration !== null) { - $element->setAttribute('duration', $this->_duration); - } - if ($this->_height !== null) { - $element->setAttribute('height', $this->_height); - } - if ($this->_width !== null) { - $element->setAttribute('width', $this->_width); - } - if ($this->_lang !== null) { - $element->setAttribute('lang', $this->_lang); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'url': - $this->_url = $attribute->nodeValue; - break; - case 'fileSize': - $this->_fileSize = $attribute->nodeValue; - break; - case 'type': - $this->_type = $attribute->nodeValue; - break; - case 'medium': - $this->_medium = $attribute->nodeValue; - break; - case 'isDefault': - $this->_isDefault = $attribute->nodeValue; - break; - case 'expression': - $this->_expression = $attribute->nodeValue; - break; - case 'bitrate': - $this->_bitrate = $attribute->nodeValue; - break; - case 'framerate': - $this->_framerate = $attribute->nodeValue; - break; - case 'samplingrate': - $this->_samplingrate = $attribute->nodeValue; - break; - case 'channels': - $this->_channels = $attribute->nodeValue; - break; - case 'duration': - $this->_duration = $attribute->nodeValue; - break; - case 'height': - $this->_height = $attribute->nodeValue; - break; - case 'width': - $this->_width = $attribute->nodeValue; - break; - case 'lang': - $this->_lang = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Returns the URL representing this MediaContent object - * - * @return string The URL representing this MediaContent object. - */ - public function __toString() - { - return $this->getUrl(); - } - - /** - * @return string The direct URL to the media object - */ - public function getUrl() - { - return $this->_url; - } - - /** - * @param string $value The direct URL to the media object - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setUrl($value) - { - $this->_url = $value; - return $this; - } - - /** - * @return int The size of the media in bytes - */ - public function getFileSize() - { - return $this->_fileSize; - } - - /** - * @param int $value - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setFileSize($value) - { - $this->_fileSize = $value; - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->_type; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setType($value) - { - $this->_type = $value; - return $this; - } - - /** - * @return string - */ - public function getMedium() - { - return $this->_medium; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setMedium($value) - { - $this->_medium = $value; - return $this; - } - - /** - * @return bool - */ - public function getIsDefault() - { - return $this->_isDefault; - } - - /** - * @param bool $value - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setIsDefault($value) - { - $this->_isDefault = $value; - return $this; - } - - /** - * @return string - */ - public function getExpression() - { - return $this->_expression; - } - - /** - * @param string - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setExpression($value) - { - $this->_expression = $value; - return $this; - } - - /** - * @return int - */ - public function getBitrate() - { - return $this->_bitrate; - } - - /** - * @param int - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setBitrate($value) - { - $this->_bitrate = $value; - return $this; - } - - /** - * @return int - */ - public function getFramerate() - { - return $this->_framerate; - } - - /** - * @param int - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setFramerate($value) - { - $this->_framerate = $value; - return $this; - } - - /** - * @return int - */ - public function getSamplingrate() - { - return $this->_samplingrate; - } - - /** - * @param int - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setSamplingrate($value) - { - $this->_samplingrate = $value; - return $this; - } - - /** - * @return int - */ - public function getChannels() - { - return $this->_channels; - } - - /** - * @param int - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setChannels($value) - { - $this->_channels = $value; - return $this; - } - - /** - * @return int - */ - public function getDuration() - { - return $this->_duration; - } - - /** - * - * @param int - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setDuration($value) - { - $this->_duration = $value; - return $this; - } - - /** - * @return int - */ - public function getHeight() - { - return $this->_height; - } - - /** - * @param int - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setHeight($value) - { - $this->_height = $value; - return $this; - } - - /** - * @return int - */ - public function getWidth() - { - return $this->_width; - } - - /** - * @param int - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setWidth($value) - { - $this->_width = $value; - return $this; - } - - /** - * @return string - */ - public function getLang() - { - return $this->_lang; - } - - /** - * @param string - * @return Zend_Gdata_Media_Extension_MediaContent Provides a fluent interface - */ - public function setLang($value) - { - $this->_lang = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaCopyright.php b/library/vendor/Zend/Gdata/Media/Extension/MediaCopyright.php deleted file mode 100755 index 5299fa67c..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaCopyright.php +++ /dev/null @@ -1,115 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_text = $text; - $this->_url = $url; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_url !== null) { - $element->setAttribute('url', $this->_url); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'url': - $this->_url = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getUrl() - { - return $this->_url; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaCopyright Provides a fluent interface - */ - public function setUrl($value) - { - $this->_url = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaCredit.php b/library/vendor/Zend/Gdata/Media/Extension/MediaCredit.php deleted file mode 100755 index 2f51581ac..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaCredit.php +++ /dev/null @@ -1,148 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_text = $text; - $this->_role = $role; - $this->_scheme = $scheme; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_role !== null) { - $element->setAttribute('role', $this->_role); - } - if ($this->_scheme !== null) { - $element->setAttribute('scheme', $this->_scheme); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'role': - $this->_role = $attribute->nodeValue; - break; - case 'scheme': - $this->_scheme = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getRole() - { - return $this->_role; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaCredit Provides a fluent interface - */ - public function setRole($value) - { - $this->_role = $value; - return $this; - } - - /** - * @return string - */ - public function getScheme() - { - return $this->_scheme; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaCredit Provides a fluent interface - */ - public function setScheme($value) - { - $this->_scheme = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaDescription.php b/library/vendor/Zend/Gdata/Media/Extension/MediaDescription.php deleted file mode 100755 index ee043e45f..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaDescription.php +++ /dev/null @@ -1,115 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_type = $type; - $this->_text = $text; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_type !== null) { - $element->setAttribute('type', $this->_type); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'type': - $this->_type = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getType() - { - return $this->_type; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaDescription Provides a fluent interface - */ - public function setType($value) - { - $this->_type = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaGroup.php b/library/vendor/Zend/Gdata/Media/Extension/MediaGroup.php deleted file mode 100755 index c2ddaf326..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaGroup.php +++ /dev/null @@ -1,551 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - foreach ($this->_content as $content) { - $element->appendChild($content->getDOM($element->ownerDocument)); - } - foreach ($this->_category as $category) { - $element->appendChild($category->getDOM($element->ownerDocument)); - } - foreach ($this->_credit as $credit) { - $element->appendChild($credit->getDOM($element->ownerDocument)); - } - foreach ($this->_player as $player) { - $element->appendChild($player->getDOM($element->ownerDocument)); - } - foreach ($this->_rating as $rating) { - $element->appendChild($rating->getDOM($element->ownerDocument)); - } - foreach ($this->_restriction as $restriction) { - $element->appendChild($restriction->getDOM($element->ownerDocument)); - } - foreach ($this->_mediaText as $text) { - $element->appendChild($text->getDOM($element->ownerDocument)); - } - foreach ($this->_thumbnail as $thumbnail) { - $element->appendChild($thumbnail->getDOM($element->ownerDocument)); - } - if ($this->_copyright != null) { - $element->appendChild( - $this->_copyright->getDOM($element->ownerDocument)); - } - if ($this->_description != null) { - $element->appendChild( - $this->_description->getDOM($element->ownerDocument)); - } - foreach ($this->_hash as $hash) { - $element->appendChild($hash->getDOM($element->ownerDocument)); - } - if ($this->_keywords != null) { - $element->appendChild( - $this->_keywords->getDOM($element->ownerDocument)); - } - if ($this->_title != null) { - $element->appendChild( - $this->_title->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('media') . ':' . 'content'; - $content = new Zend_Gdata_Media_Extension_MediaContent(); - $content->transferFromDOM($child); - $this->_content[] = $content; - break; - case $this->lookupNamespace('media') . ':' . 'category'; - $category = new Zend_Gdata_Media_Extension_MediaCategory(); - $category->transferFromDOM($child); - $this->_category[] = $category; - break; - case $this->lookupNamespace('media') . ':' . 'copyright'; - $copyright = new Zend_Gdata_Media_Extension_MediaCopyright(); - $copyright->transferFromDOM($child); - $this->_copyright = $copyright; - break; - case $this->lookupNamespace('media') . ':' . 'credit'; - $credit = new Zend_Gdata_Media_Extension_MediaCredit(); - $credit->transferFromDOM($child); - $this->_credit[] = $credit; - break; - case $this->lookupNamespace('media') . ':' . 'description'; - $description = new Zend_Gdata_Media_Extension_MediaDescription(); - $description->transferFromDOM($child); - $this->_description = $description; - break; - case $this->lookupNamespace('media') . ':' . 'hash'; - $hash = new Zend_Gdata_Media_Extension_MediaHash(); - $hash->transferFromDOM($child); - $this->_hash[] = $hash; - break; - case $this->lookupNamespace('media') . ':' . 'keywords'; - $keywords = new Zend_Gdata_Media_Extension_MediaKeywords(); - $keywords->transferFromDOM($child); - $this->_keywords = $keywords; - break; - case $this->lookupNamespace('media') . ':' . 'player'; - $player = new Zend_Gdata_Media_Extension_MediaPlayer(); - $player->transferFromDOM($child); - $this->_player[] = $player; - break; - case $this->lookupNamespace('media') . ':' . 'rating'; - $rating = new Zend_Gdata_Media_Extension_MediaRating(); - $rating->transferFromDOM($child); - $this->_rating[] = $rating; - break; - case $this->lookupNamespace('media') . ':' . 'restriction'; - $restriction = new Zend_Gdata_Media_Extension_MediaRestriction(); - $restriction->transferFromDOM($child); - $this->_restriction[] = $restriction; - break; - case $this->lookupNamespace('media') . ':' . 'text'; - $text = new Zend_Gdata_Media_Extension_MediaText(); - $text->transferFromDOM($child); - $this->_mediaText[] = $text; - break; - case $this->lookupNamespace('media') . ':' . 'thumbnail'; - $thumbnail = new Zend_Gdata_Media_Extension_MediaThumbnail(); - $thumbnail->transferFromDOM($child); - $this->_thumbnail[] = $thumbnail; - break; - case $this->lookupNamespace('media') . ':' . 'title'; - $title = new Zend_Gdata_Media_Extension_MediaTitle(); - $title->transferFromDOM($child); - $this->_title = $title; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * @return array - */ - public function getContent() - { - return $this->_content; - } - - /** - * @param array $value - * @return Zend_Gdata_Media_MediaGroup Provides a fluent interface - */ - public function setContent($value) - { - $this->_content = $value; - return $this; - } - - /** - * @return array - */ - public function getCategory() - { - return $this->_category; - } - - /** - * @param array $value - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setCategory($value) - { - $this->_category = $value; - return $this; - } - - /** - * @return Zend_Gdata_Media_Extension_MediaCopyright - */ - public function getCopyright() - { - return $this->_copyright; - } - - /** - * @param Zend_Gdata_Media_Extension_MediaCopyright $value - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setCopyright($value) - { - $this->_copyright = $value; - return $this; - } - - /** - * @return array - */ - public function getCredit() - { - return $this->_credit; - } - - /** - * @param array $value - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setCredit($value) - { - $this->_credit = $value; - return $this; - } - - /** - * @return Zend_Gdata_Media_Extension_MediaTitle - */ - public function getTitle() - { - return $this->_title; - } - - /** - * @param Zend_Gdata_Media_Extension_MediaTitle $value - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setTitle($value) - { - $this->_title = $value; - return $this; - } - - /** - * @return Zend_Gdata_Media_Extension_MediaDescription - */ - public function getDescription() - { - return $this->_description; - } - - /** - * @param Zend_Gdata_Media_Extension_MediaDescription $value - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setDescription($value) - { - $this->_description = $value; - return $this; - } - - /** - * @return array - */ - public function getHash() - { - return $this->_hash; - } - - /** - * @param array $value - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setHash($value) - { - $this->_hash = $value; - return $this; - } - - /** - * @return Zend_Gdata_Media_Extension_MediaKeywords - */ - public function getKeywords() - { - return $this->_keywords; - } - - /** - * @param array $value - * @return Zend_Gdata_Media_Extension_MediaGroup Provides a fluent interface - */ - public function setKeywords($value) - { - $this->_keywords = $value; - return $this; - } - - /** - * @return array - */ - public function getPlayer() - { - return $this->_player; - } - - /** - * @param array - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setPlayer($value) - { - $this->_player = $value; - return $this; - } - - /** - * @return array - */ - public function getRating() - { - return $this->_rating; - } - - /** - * @param array - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setRating($value) - { - $this->_rating = $value; - return $this; - } - - /** - * @return array - */ - public function getRestriction() - { - return $this->_restriction; - } - - /** - * @param array - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setRestriction($value) - { - $this->_restriction = $value; - return $this; - } - - /** - * @return array - */ - public function getThumbnail() - { - return $this->_thumbnail; - } - - /** - * @param array - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setThumbnail($value) - { - $this->_thumbnail = $value; - return $this; - } - - /** - * @return array - */ - public function getMediaText() - { - return $this->_mediaText; - } - - /** - * @param array - * @return Zend_Gdata_Media_Extension_MediaGroup - */ - public function setMediaText($value) - { - $this->_mediaText = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaHash.php b/library/vendor/Zend/Gdata/Media/Extension/MediaHash.php deleted file mode 100755 index 9cefd86db..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaHash.php +++ /dev/null @@ -1,114 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_text = $text; - $this->_algo = $algo; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_algo !== null) { - $element->setAttribute('algo', $this->_algo); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - * @throws Zend_Gdata_App_InvalidArgumentException - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'algo': - $this->_algo = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string The algo - */ - public function getAlgo() - { - return $this->_algo; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaHash Provides a fluent interface - */ - public function setAlgo($value) - { - $this->_algo = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaKeywords.php b/library/vendor/Zend/Gdata/Media/Extension/MediaKeywords.php deleted file mode 100755 index 86b247ea2..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaKeywords.php +++ /dev/null @@ -1,51 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaPlayer.php b/library/vendor/Zend/Gdata/Media/Extension/MediaPlayer.php deleted file mode 100755 index fe782bd1c..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaPlayer.php +++ /dev/null @@ -1,177 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_url = $url; - $this->_width = $width; - $this->_height = $height; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_url !== null) { - $element->setAttribute('url', $this->_url); - } - if ($this->_width !== null) { - $element->setAttribute('width', $this->_width); - } - if ($this->_height !== null) { - $element->setAttribute('height', $this->_height); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'url': - $this->_url = $attribute->nodeValue; - break; - case 'width': - $this->_width = $attribute->nodeValue; - break; - case 'height': - $this->_height = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getUrl() - { - return $this->_url; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaPlayer Provides a fluent interface - */ - public function setUrl($value) - { - $this->_url = $value; - return $this; - } - - /** - * @return int - */ - public function getWidth() - { - return $this->_width; - } - - /** - * @param int $value - * @return Zend_Gdata_Media_Extension_MediaPlayer Provides a fluent interface - */ - public function setWidth($value) - { - $this->_width = $value; - return $this; - } - - /** - * @return int - */ - public function getHeight() - { - return $this->_height; - } - - /** - * @param int $value - * @return Zend_Gdata_Media_Extension_MediaPlayer Provides a fluent interface - */ - public function setHeight($value) - { - $this->_height = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaRating.php b/library/vendor/Zend/Gdata/Media/Extension/MediaRating.php deleted file mode 100755 index 0ad010261..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaRating.php +++ /dev/null @@ -1,117 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_scheme = $scheme; - $this->_text = $text; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_scheme !== null) { - $element->setAttribute('scheme', $this->_scheme); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'scheme': - $this->_scheme = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getScheme() - { - return $this->_scheme; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaRating Provides a fluent interface - */ - public function setScheme($value) - { - $this->_scheme = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaRestriction.php b/library/vendor/Zend/Gdata/Media/Extension/MediaRestriction.php deleted file mode 100755 index 3b4fb2225..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaRestriction.php +++ /dev/null @@ -1,148 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_text = $text; - $this->_relationship = $relationship; - $this->_type = $type; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_relationship !== null) { - $element->setAttribute('relationship', $this->_relationship); - } - if ($this->_type !== null) { - $element->setAttribute('type', $this->_type); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'relationship': - $this->_relationship = $attribute->nodeValue; - break; - case 'type': - $this->_type = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getRelationship() - { - return $this->_relationship; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaRestriction Provides a fluent interface - */ - public function setRelationship($value) - { - $this->_relationship = $value; - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->_type; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaRestriction Provides a fluent interface - */ - public function setType($value) - { - $this->_type = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaText.php b/library/vendor/Zend/Gdata/Media/Extension/MediaText.php deleted file mode 100755 index 6ea9adc9b..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaText.php +++ /dev/null @@ -1,210 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_text = $text; - $this->_type = $type; - $this->_lang = $lang; - $this->_start = $start; - $this->_end = $end; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_type !== null) { - $element->setAttribute('type', $this->_type); - } - if ($this->_lang !== null) { - $element->setAttribute('lang', $this->_lang); - } - if ($this->_start !== null) { - $element->setAttribute('start', $this->_start); - } - if ($this->_end !== null) { - $element->setAttribute('end', $this->_end); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'type': - $this->_type = $attribute->nodeValue; - break; - case 'lang': - $this->_lang = $attribute->nodeValue; - break; - case 'start': - $this->_start = $attribute->nodeValue; - break; - case 'end': - $this->_end = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getType() - { - return $this->_type; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaText Provides a fluent interface - */ - public function setType($value) - { - $this->_type = $value; - return $this; - } - - /** - * @return string - */ - public function getLang() - { - return $this->_lang; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaText Provides a fluent interface - */ - public function setLang($value) - { - $this->_lang = $value; - return $this; - } - - /** - * @return string - */ - public function getStart() - { - return $this->_start; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaText Provides a fluent interface - */ - public function setStart($value) - { - $this->_start = $value; - return $this; - } - - /** - * @return string - */ - public function getEnd() - { - return $this->_end; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaText Provides a fluent interface - */ - public function setEnd($value) - { - $this->_end = $value; - return $this; - } -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaThumbnail.php b/library/vendor/Zend/Gdata/Media/Extension/MediaThumbnail.php deleted file mode 100755 index b4d75120b..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaThumbnail.php +++ /dev/null @@ -1,209 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_url = $url; - $this->_width = $width; - $this->_height = $height; - $this->_time = $time ; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_url !== null) { - $element->setAttribute('url', $this->_url); - } - if ($this->_width !== null) { - $element->setAttribute('width', $this->_width); - } - if ($this->_height !== null) { - $element->setAttribute('height', $this->_height); - } - if ($this->_time !== null) { - $element->setAttribute('time', $this->_time); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'url': - $this->_url = $attribute->nodeValue; - break; - case 'width': - $this->_width = $attribute->nodeValue; - break; - case 'height': - $this->_height = $attribute->nodeValue; - break; - case 'time': - $this->_time = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getUrl() - { - return $this->_url; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaThumbnail Provides a fluent interface - */ - public function setUrl($value) - { - $this->_url = $value; - return $this; - } - - /** - * @return int - */ - public function getWidth() - { - return $this->_width; - } - - /** - * @param int $value - * @return Zend_Gdata_Media_Extension_MediaThumbnail Provides a fluent interface - */ - public function setWidth($value) - { - $this->_width = $value; - return $this; - } - - /** - * @return int - */ - public function getHeight() - { - return $this->_height; - } - - /** - * @param int $value - * @return Zend_Gdata_Media_Extension_MediaThumbnail Provides a fluent interface - */ - public function setHeight($value) - { - $this->_height = $value; - return $this; - } - - /** - * @return string - */ - public function getTime() - { - return $this->_time; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaThumbnail Provides a fluent interface - */ - public function setTime($value) - { - $this->_time = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Extension/MediaTitle.php b/library/vendor/Zend/Gdata/Media/Extension/MediaTitle.php deleted file mode 100755 index 723f1981c..000000000 --- a/library/vendor/Zend/Gdata/Media/Extension/MediaTitle.php +++ /dev/null @@ -1,117 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_type = $type; - $this->_text = $text; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_type !== null) { - $element->setAttribute('type', $this->_type); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'type': - $this->_type = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getType() - { - return $this->_type; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaTitle Provides a fluent interface - */ - public function setType($value) - { - $this->_type = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Media/Feed.php b/library/vendor/Zend/Gdata/Media/Feed.php deleted file mode 100755 index 322739d73..000000000 --- a/library/vendor/Zend/Gdata/Media/Feed.php +++ /dev/null @@ -1,67 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/MediaMimeStream.php b/library/vendor/Zend/Gdata/MediaMimeStream.php deleted file mode 100644 index d0bb2457f..000000000 --- a/library/vendor/Zend/Gdata/MediaMimeStream.php +++ /dev/null @@ -1,187 +0,0 @@ - 1. - */ - public function __construct($xmlString = null, $filePath = null, - $fileContentType = null) - { - if (!file_exists($filePath) || !is_readable($filePath)) { - throw new Zend_Gdata_App_IOException('File to be uploaded at ' . - $filePath . ' does not exist or is not readable.'); - } - - $this->_fileHandle = fopen($filePath, 'rb', TRUE); - $this->_boundaryString = '=_' . md5(microtime(1) . rand(1,20)); - $entry = $this->wrapEntry($xmlString, $fileContentType); - $closingBoundary = new Zend_Gdata_MimeBodyString("\r\n--{$this->_boundaryString}--\r\n"); - $file = new Zend_Gdata_MimeFile($this->_fileHandle); - $this->_parts = array($entry, $file, $closingBoundary); - - $fileSize = filesize($filePath); - $this->_totalSize = $entry->getSize() + $fileSize - + $closingBoundary->getSize(); - - } - - /** - * Sandwiches the entry body into a MIME message - * - * @return void - */ - private function wrapEntry($entry, $fileMimeType) - { - $wrappedEntry = "--{$this->_boundaryString}\r\n"; - $wrappedEntry .= "Content-Type: application/atom+xml\r\n\r\n"; - $wrappedEntry .= $entry; - $wrappedEntry .= "\r\n--{$this->_boundaryString}\r\n"; - $wrappedEntry .= "Content-Type: $fileMimeType\r\n\r\n"; - return new Zend_Gdata_MimeBodyString($wrappedEntry); - } - - /** - * Read a specific chunk of the the MIME multipart message. - * - * @param integer $bufferSize The size of the chunk that is to be read, - * must be lower than MAX_BUFFER_SIZE. - * @return string A corresponding piece of the message. This could be - * binary or regular text. - */ - public function read($bytesRequested) - { - if($this->_currentPart >= count($this->_parts)) { - return FALSE; - } - - $activePart = $this->_parts[$this->_currentPart]; - $buffer = $activePart->read($bytesRequested); - - while(strlen($buffer) < $bytesRequested) { - $this->_currentPart += 1; - $nextBuffer = $this->read($bytesRequested - strlen($buffer)); - if($nextBuffer === FALSE) { - break; - } - $buffer .= $nextBuffer; - } - - return $buffer; - } - - /** - * Return the total size of the mime message. - * - * @return integer Total size of the message to be sent. - */ - public function getTotalSize() - { - return $this->_totalSize; - } - - /** - * Close the internal file that we are streaming to the socket. - * - * @return void - */ - public function closeFileHandle() - { - if ($this->_fileHandle !== null) { - fclose($this->_fileHandle); - } - } - - /** - * Return a Content-type header that includes the current boundary string. - * - * @return string A valid HTTP Content-Type header. - */ - public function getContentType() - { - return 'multipart/related;boundary="' . - $this->_boundaryString . '"' . "\r\n"; - } - -} diff --git a/library/vendor/Zend/Gdata/MimeBodyString.php b/library/vendor/Zend/Gdata/MimeBodyString.php deleted file mode 100644 index 369d95cb8..000000000 --- a/library/vendor/Zend/Gdata/MimeBodyString.php +++ /dev/null @@ -1,92 +0,0 @@ -_sourceString = $sourceString; - $this->_bytesRead = 0; - } - - /** - * Read the next chunk of the string. - * - * @param integer $bytesRequested The size of the chunk that is to be read. - * @return string A corresponding piece of the string. - */ - public function read($bytesRequested) - { - $len = strlen($this->_sourceString); - if($this->_bytesRead == $len) { - return FALSE; - } else if($bytesRequested > $len - $this->_bytesRead) { - $bytesRequested = $len - $this->_bytesRead; - } - - $buffer = substr($this->_sourceString, $this->_bytesRead, $bytesRequested); - $this->_bytesRead += $bytesRequested; - - return $buffer; - } - - /** - * The length of the string. - * - * @return int The length of the string contained in the object. - */ - public function getSize() - { - return strlen($this->_sourceString); - } - - -} diff --git a/library/vendor/Zend/Gdata/MimeFile.php b/library/vendor/Zend/Gdata/MimeFile.php deleted file mode 100644 index e3ded005e..000000000 --- a/library/vendor/Zend/Gdata/MimeFile.php +++ /dev/null @@ -1,66 +0,0 @@ -_fileHandle = $fileHandle; - } - - /** - * Read the next chunk of the file. - * - * @param integer $bytesRequested The size of the chunk that is to be read. - * @return string A corresponding piece of the message. This could be - * binary or regular text. - */ - public function read($bytesRequested) - { - return fread($this->_fileHandle, $bytesRequested); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos.php b/library/vendor/Zend/Gdata/Photos.php deleted file mode 100755 index 3cee013de..000000000 --- a/library/vendor/Zend/Gdata/Photos.php +++ /dev/null @@ -1,563 +0,0 @@ -registerPackage('Zend_Gdata_Photos'); - $this->registerPackage('Zend_Gdata_Photos_Extension'); - parent::__construct($client, $applicationId); - $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); - } - - /** - * Retrieve a UserFeed containing AlbumEntries, PhotoEntries and - * TagEntries associated with a given user. - * - * @param string $userName The userName of interest - * @param mixed $location (optional) The location for the feed, as a URL - * or Query. If not provided, a default URL will be used instead. - * @return Zend_Gdata_Photos_UserFeed - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function getUserFeed($userName = null, $location = null) - { - if ($location instanceof Zend_Gdata_Photos_UserQuery) { - $location->setType('feed'); - if ($userName !== null) { - $location->setUser($userName); - } - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Query) { - if ($userName !== null) { - $location->setUser($userName); - } - $uri = $location->getQueryUrl(); - } else if ($location !== null) { - $uri = $location; - } else if ($userName !== null) { - $uri = self::PICASA_BASE_FEED_URI . '/' . - self::DEFAULT_PROJECTION . '/' . self::USER_PATH . '/' . - $userName; - } else { - $uri = self::PICASA_BASE_FEED_URI . '/' . - self::DEFAULT_PROJECTION . '/' . self::USER_PATH . '/' . - self::DEFAULT_USER; - } - - return parent::getFeed($uri, 'Zend_Gdata_Photos_UserFeed'); - } - - /** - * Retreive AlbumFeed object containing multiple PhotoEntry or TagEntry - * objects. - * - * @param mixed $location (optional) The location for the feed, as a URL or Query. - * @return Zend_Gdata_Photos_AlbumFeed - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function getAlbumFeed($location = null) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Photos_UserQuery) { - $location->setType('feed'); - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Photos_AlbumFeed'); - } - - /** - * Retreive PhotoFeed object containing comments and tags associated - * with a given photo. - * - * @param mixed $location (optional) The location for the feed, as a URL - * or Query. If not specified, the community search feed will - * be returned instead. - * @return Zend_Gdata_Photos_PhotoFeed - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function getPhotoFeed($location = null) - { - if ($location === null) { - $uri = self::PICASA_BASE_FEED_URI . '/' . - self::DEFAULT_PROJECTION . '/' . - self::COMMUNITY_SEARCH_PATH; - } else if ($location instanceof Zend_Gdata_Photos_UserQuery) { - $location->setType('feed'); - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Photos_PhotoFeed'); - } - - /** - * Retreive a single UserEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Photos_UserEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function getUserEntry($location) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Photos_UserQuery) { - $location->setType('entry'); - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Photos_UserEntry'); - } - - /** - * Retreive a single AlbumEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Photos_AlbumEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function getAlbumEntry($location) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Photos_UserQuery) { - $location->setType('entry'); - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Photos_AlbumEntry'); - } - - /** - * Retreive a single PhotoEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Photos_PhotoEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function getPhotoEntry($location) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Photos_UserQuery) { - $location->setType('entry'); - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Photos_PhotoEntry'); - } - - /** - * Retreive a single TagEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Photos_TagEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function getTagEntry($location) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Photos_UserQuery) { - $location->setType('entry'); - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Photos_TagEntry'); - } - - /** - * Retreive a single CommentEntry object. - * - * @param mixed $location The location for the feed, as a URL or Query. - * @return Zend_Gdata_Photos_CommentEntry - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function getCommentEntry($location) - { - if ($location === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Location must not be null'); - } else if ($location instanceof Zend_Gdata_Photos_UserQuery) { - $location->setType('entry'); - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_Photos_CommentEntry'); - } - - /** - * Create a new album from a AlbumEntry. - * - * @param Zend_Gdata_Photos_AlbumEntry $album The album entry to - * insert. - * @param string $url (optional) The URI that the album should be - * uploaded to. If null, the default album creation URI for - * this domain will be used. - * @return Zend_Gdata_Photos_AlbumEntry The inserted album entry as - * returned by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function insertAlbumEntry($album, $uri = null) - { - if ($uri === null) { - $uri = self::PICASA_BASE_FEED_URI . '/' . - self::DEFAULT_PROJECTION . '/' . self::USER_PATH . '/' . - self::DEFAULT_USER; - } - $newEntry = $this->insertEntry($album, $uri, 'Zend_Gdata_Photos_AlbumEntry'); - return $newEntry; - } - - /** - * Create a new photo from a PhotoEntry. - * - * @param Zend_Gdata_Photos_PhotoEntry $photo The photo to insert. - * @param string $url The URI that the photo should be uploaded - * to. Alternatively, an AlbumEntry can be provided and the - * photo will be added to that album. - * @return Zend_Gdata_Photos_PhotoEntry The inserted photo entry - * as returned by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function insertPhotoEntry($photo, $uri = null) - { - if ($uri instanceof Zend_Gdata_Photos_AlbumEntry) { - $uri = $uri->getLink(self::FEED_LINK_PATH)->href; - } - if ($uri === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'URI must not be null'); - } - $newEntry = $this->insertEntry($photo, $uri, 'Zend_Gdata_Photos_PhotoEntry'); - return $newEntry; - } - - /** - * Create a new tag from a TagEntry. - * - * @param Zend_Gdata_Photos_TagEntry $tag The tag entry to insert. - * @param string $url The URI where the tag should be - * uploaded to. Alternatively, a PhotoEntry can be provided and - * the tag will be added to that photo. - * @return Zend_Gdata_Photos_TagEntry The inserted tag entry as returned - * by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function insertTagEntry($tag, $uri = null) - { - if ($uri instanceof Zend_Gdata_Photos_PhotoEntry) { - $uri = $uri->getLink(self::FEED_LINK_PATH)->href; - } - if ($uri === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'URI must not be null'); - } - $newEntry = $this->insertEntry($tag, $uri, 'Zend_Gdata_Photos_TagEntry'); - return $newEntry; - } - - /** - * Create a new comment from a CommentEntry. - * - * @param Zend_Gdata_Photos_CommentEntry $comment The comment entry to - * insert. - * @param string $url The URI where the comment should be uploaded to. - * Alternatively, a PhotoEntry can be provided and - * the comment will be added to that photo. - * @return Zend_Gdata_Photos_CommentEntry The inserted comment entry - * as returned by the server. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function insertCommentEntry($comment, $uri = null) - { - if ($uri instanceof Zend_Gdata_Photos_PhotoEntry) { - $uri = $uri->getLink(self::FEED_LINK_PATH)->href; - } - if ($uri === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'URI must not be null'); - } - $newEntry = $this->insertEntry($comment, $uri, 'Zend_Gdata_Photos_CommentEntry'); - return $newEntry; - } - - /** - * Delete an AlbumEntry. - * - * @param Zend_Gdata_Photos_AlbumEntry $album The album entry to - * delete. - * @param boolean $catch Whether to catch an exception when - * modified and re-delete or throw - * @return void. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function deleteAlbumEntry($album, $catch) - { - if ($catch) { - try { - $this->delete($album); - } catch (Zend_Gdata_App_HttpException $e) { - if ($e->getResponse()->getStatus() === 409) { - $entry = new Zend_Gdata_Photos_AlbumEntry($e->getResponse()->getBody()); - $this->delete($entry->getLink('edit')->href); - } else { - throw $e; - } - } - } else { - $this->delete($album); - } - } - - /** - * Delete a PhotoEntry. - * - * @param Zend_Gdata_Photos_PhotoEntry $photo The photo entry to - * delete. - * @param boolean $catch Whether to catch an exception when - * modified and re-delete or throw - * @return void. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function deletePhotoEntry($photo, $catch) - { - if ($catch) { - try { - $this->delete($photo); - } catch (Zend_Gdata_App_HttpException $e) { - if ($e->getResponse()->getStatus() === 409) { - $entry = new Zend_Gdata_Photos_PhotoEntry($e->getResponse()->getBody()); - $this->delete($entry->getLink('edit')->href); - } else { - throw $e; - } - } - } else { - $this->delete($photo); - } - } - - /** - * Delete a CommentEntry. - * - * @param Zend_Gdata_Photos_CommentEntry $comment The comment entry to - * delete. - * @param boolean $catch Whether to catch an exception when - * modified and re-delete or throw - * @return void. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function deleteCommentEntry($comment, $catch) - { - if ($catch) { - try { - $this->delete($comment); - } catch (Zend_Gdata_App_HttpException $e) { - if ($e->getResponse()->getStatus() === 409) { - $entry = new Zend_Gdata_Photos_CommentEntry($e->getResponse()->getBody()); - $this->delete($entry->getLink('edit')->href); - } else { - throw $e; - } - } - } else { - $this->delete($comment); - } - } - - /** - * Delete a TagEntry. - * - * @param Zend_Gdata_Photos_TagEntry $tag The tag entry to - * delete. - * @param boolean $catch Whether to catch an exception when - * modified and re-delete or throw - * @return void. - * @throws Zend_Gdata_App_Exception - * @throws Zend_Gdata_App_HttpException - */ - public function deleteTagEntry($tag, $catch) - { - if ($catch) { - try { - $this->delete($tag); - } catch (Zend_Gdata_App_HttpException $e) { - if ($e->getResponse()->getStatus() === 409) { - $entry = new Zend_Gdata_Photos_TagEntry($e->getResponse()->getBody()); - $this->delete($entry->getLink('edit')->href); - } else { - throw $e; - } - } - } else { - $this->delete($tag); - } - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/AlbumEntry.php b/library/vendor/Zend/Gdata/Photos/AlbumEntry.php deleted file mode 100755 index 18a533984..000000000 --- a/library/vendor/Zend/Gdata/Photos/AlbumEntry.php +++ /dev/null @@ -1,597 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Photos - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Photos_AlbumEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Photos_AlbumEntry'; - - /** - * gphoto:id element - * - * @var Zend_Gdata_Photos_Extension_Id - */ - protected $_gphotoId = null; - - /** - * gphoto:access element - * - * @var Zend_Gdata_Photos_Extension_Access - */ - protected $_gphotoAccess = null; - - /** - * gphoto:location element - * - * @var Zend_Gdata_Photos_Extension_Location - */ - protected $_gphotoLocation = null; - - /** - * gphoto:user element - * - * @var Zend_Gdata_Photos_Extension_User - */ - protected $_gphotoUser = null; - - /** - * gphoto:nickname element - * - * @var Zend_Gdata_Photos_Extension_Nickname - */ - protected $_gphotoNickname = null; - - /** - * gphoto:timestamp element - * - * @var Zend_Gdata_Photos_Extension_Timestamp - */ - protected $_gphotoTimestamp = null; - - /** - * gphoto:name element - * - * @var Zend_Gdata_Photos_Extension_Name - */ - protected $_gphotoName = null; - - /** - * gphoto:numphotos element - * - * @var Zend_Gdata_Photos_Extension_NumPhotos - */ - protected $_gphotoNumPhotos = null; - - /** - * gphoto:commentCount element - * - * @var Zend_Gdata_Photos_Extension_CommentCount - */ - protected $_gphotoCommentCount = null; - - /** - * gphoto:commentingEnabled element - * - * @var Zend_Gdata_Photos_Extension_CommentingEnabled - */ - protected $_gphotoCommentingEnabled = null; - - /** - * media:group element - * - * @var Zend_Gdata_Media_MediaGroup - */ - protected $_mediaGroup = null; - - /** - * georss:where element - * - * @var Zend_Gdata_Geo_Extension_GeoRssWhere - */ - protected $_geoRssWhere = null; - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct($element); - - $category = new Zend_Gdata_App_Extension_Category( - 'http://schemas.google.com/photos/2007#album', - 'http://schemas.google.com/g/2005#kind'); - $this->setCategory(array($category)); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_gphotoTimestamp !== null) { - $element->appendChild($this->_gphotoTimestamp->getDOM($element->ownerDocument)); - } - if ($this->_gphotoUser !== null) { - $element->appendChild($this->_gphotoUser->getDOM($element->ownerDocument)); - } - if ($this->_gphotoNickname !== null) { - $element->appendChild($this->_gphotoNickname->getDOM($element->ownerDocument)); - } - if ($this->_gphotoAccess !== null) { - $element->appendChild($this->_gphotoAccess->getDOM($element->ownerDocument)); - } - if ($this->_gphotoLocation !== null) { - $element->appendChild($this->_gphotoLocation->getDOM($element->ownerDocument)); - } - if ($this->_gphotoName !== null) { - $element->appendChild($this->_gphotoName->getDOM($element->ownerDocument)); - } - if ($this->_gphotoNumPhotos !== null) { - $element->appendChild($this->_gphotoNumPhotos->getDOM($element->ownerDocument)); - } - if ($this->_gphotoCommentCount !== null) { - $element->appendChild($this->_gphotoCommentCount->getDOM($element->ownerDocument)); - } - if ($this->_gphotoCommentingEnabled !== null) { - $element->appendChild($this->_gphotoCommentingEnabled->getDOM($element->ownerDocument)); - } - if ($this->_gphotoId !== null) { - $element->appendChild($this->_gphotoId->getDOM($element->ownerDocument)); - } - if ($this->_mediaGroup !== null) { - $element->appendChild($this->_mediaGroup->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'access'; - $access = new Zend_Gdata_Photos_Extension_Access(); - $access->transferFromDOM($child); - $this->_gphotoAccess = $access; - break; - case $this->lookupNamespace('gphoto') . ':' . 'location'; - $location = new Zend_Gdata_Photos_Extension_Location(); - $location->transferFromDOM($child); - $this->_gphotoLocation = $location; - break; - case $this->lookupNamespace('gphoto') . ':' . 'name'; - $name = new Zend_Gdata_Photos_Extension_Name(); - $name->transferFromDOM($child); - $this->_gphotoName = $name; - break; - case $this->lookupNamespace('gphoto') . ':' . 'numphotos'; - $numPhotos = new Zend_Gdata_Photos_Extension_NumPhotos(); - $numPhotos->transferFromDOM($child); - $this->_gphotoNumPhotos = $numPhotos; - break; - case $this->lookupNamespace('gphoto') . ':' . 'commentCount'; - $commentCount = new Zend_Gdata_Photos_Extension_CommentCount(); - $commentCount->transferFromDOM($child); - $this->_gphotoCommentCount = $commentCount; - break; - case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled'; - $commentingEnabled = new Zend_Gdata_Photos_Extension_CommentingEnabled(); - $commentingEnabled->transferFromDOM($child); - $this->_gphotoCommentingEnabled = $commentingEnabled; - break; - case $this->lookupNamespace('gphoto') . ':' . 'id'; - $id = new Zend_Gdata_Photos_Extension_Id(); - $id->transferFromDOM($child); - $this->_gphotoId = $id; - break; - case $this->lookupNamespace('gphoto') . ':' . 'user'; - $user = new Zend_Gdata_Photos_Extension_User(); - $user->transferFromDOM($child); - $this->_gphotoUser = $user; - break; - case $this->lookupNamespace('gphoto') . ':' . 'timestamp'; - $timestamp = new Zend_Gdata_Photos_Extension_Timestamp(); - $timestamp->transferFromDOM($child); - $this->_gphotoTimestamp = $timestamp; - break; - case $this->lookupNamespace('gphoto') . ':' . 'nickname'; - $nickname = new Zend_Gdata_Photos_Extension_Nickname(); - $nickname->transferFromDOM($child); - $this->_gphotoNickname = $nickname; - break; - case $this->lookupNamespace('georss') . ':' . 'where'; - $geoRssWhere = new Zend_Gdata_Geo_Extension_GeoRssWhere(); - $geoRssWhere->transferFromDOM($child); - $this->_geoRssWhere = $geoRssWhere; - break; - case $this->lookupNamespace('media') . ':' . 'group'; - $mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup(); - $mediaGroup->transferFromDOM($child); - $this->_mediaGroup = $mediaGroup; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value for this element's gphoto:access attribute. - * - * @see setGphotoAccess - * @return string The requested attribute. - */ - public function getGphotoAccess() - { - return $this->_gphotoAccess; - } - - /** - * Set the value for this element's gphoto:access attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Access The element being modified. - */ - public function setGphotoAccess($value) - { - $this->_gphotoAccess = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:location attribute. - * - * @see setGphotoLocation - * @return string The requested attribute. - */ - public function getGphotoLocation() - { - return $this->_gphotoLocation; - } - - /** - * Set the value for this element's gphoto:location attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Location The element being modified. - */ - public function setGphotoLocation($value) - { - $this->_location = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:name attribute. - * - * @see setGphotoName - * @return string The requested attribute. - */ - public function getGphotoName() - { - return $this->_gphotoName; - } - - /** - * Set the value for this element's gphoto:name attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Name The element being modified. - */ - public function setGphotoName($value) - { - $this->_gphotoName = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:numphotos attribute. - * - * @see setGphotoNumPhotos - * @return string The requested attribute. - */ - public function getGphotoNumPhotos() - { - return $this->_gphotoNumPhotos; - } - - /** - * Set the value for this element's gphoto:numphotos attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_NumPhotos The element being modified. - */ - public function setGphotoNumPhotos($value) - { - $this->_gphotoNumPhotos = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:commentCount attribute. - * - * @see setGphotoCommentCount - * @return string The requested attribute. - */ - public function getGphotoCommentCount() - { - return $this->_gphotoCommentCount; - } - - /** - * Set the value for this element's gphoto:commentCount attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_CommentCount The element being modified. - */ - public function setGphotoCommentCount($value) - { - $this->_gphotoCommentCount = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:commentingEnabled attribute. - * - * @see setGphotoCommentingEnabled - * @return string The requested attribute. - */ - public function getGphotoCommentingEnabled() - { - return $this->_gphotoCommentingEnabled; - } - - /** - * Set the value for this element's gphoto:commentingEnabled attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_CommentingEnabled The element being modified. - */ - public function setGphotoCommentingEnabled($value) - { - $this->_gphotoCommentingEnabled = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:id attribute. - * - * @see setGphotoId - * @return string The requested attribute. - */ - public function getGphotoId() - { - return $this->_gphotoId; - } - - /** - * Set the value for this element's gphoto:id attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Id The element being modified. - */ - public function setGphotoId($value) - { - $this->_gphotoId = $value; - return $this; - } - - /** - * Get the value for this element's georss:where attribute. - * - * @see setGeoRssWhere - * @return string The requested attribute. - */ - public function getGeoRssWhere() - { - return $this->_geoRssWhere; - } - - /** - * Set the value for this element's georss:where attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Geo_Extension_GeoRssWhere The element being modified. - */ - public function setGeoRssWhere($value) - { - $this->_geoRssWhere = $value; - return $this; - } - - /** - * Get the value for this element's media:group attribute. - * - * @see setMediaGroup - * @return string The requested attribute. - */ - public function getMediaGroup() - { - return $this->_mediaGroup; - } - - /** - * Set the value for this element's media:group attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Media_Extension_MediaGroup The element being modified. - */ - public function setMediaGroup($value) - { - $this->_mediaGroup = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:user attribute. - * - * @see setGphotoUser - * @return string The requested attribute. - */ - public function getGphotoUser() - { - return $this->_gphotoUser; - } - - /** - * Set the value for this element's gphoto:user attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_User The element being modified. - */ - public function setGphotoUser($value) - { - $this->_gphotoUser = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:nickname attribute. - * - * @see setGphotoNickname - * @return string The requested attribute. - */ - public function getGphotoNickname() - { - return $this->_gphotoNickname; - } - - /** - * Set the value for this element's gphoto:nickname attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Nickname The element being modified. - */ - public function setGphotoNickname($value) - { - $this->_gphotoNickname = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:timestamp attribute. - * - * @see setGphotoTimestamp - * @return string The requested attribute. - */ - public function getGphotoTimestamp() - { - return $this->_gphotoTimestamp; - } - - /** - * Set the value for this element's gphoto:timestamp attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Timestamp The element being modified. - */ - public function setGphotoTimestamp($value) - { - $this->_gphotoTimestamp = $value; - return $this; - } -} diff --git a/library/vendor/Zend/Gdata/Photos/AlbumFeed.php b/library/vendor/Zend/Gdata/Photos/AlbumFeed.php deleted file mode 100755 index 73515a77c..000000000 --- a/library/vendor/Zend/Gdata/Photos/AlbumFeed.php +++ /dev/null @@ -1,505 +0,0 @@ - 'Zend_Gdata_Photos_PhotoEntry', - 'http://schemas.google.com/photos/2007#comment' => 'Zend_Gdata_Photos_CommentEntry', - 'http://schemas.google.com/photos/2007#tag' => 'Zend_Gdata_Photos_TagEntry' - ); - - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_gphotoId != null) { - $element->appendChild($this->_gphotoId->getDOM($element->ownerDocument)); - } - if ($this->_gphotoUser != null) { - $element->appendChild($this->_gphotoUser->getDOM($element->ownerDocument)); - } - if ($this->_gphotoNickname != null) { - $element->appendChild($this->_gphotoNickname->getDOM($element->ownerDocument)); - } - if ($this->_gphotoName != null) { - $element->appendChild($this->_gphotoName->getDOM($element->ownerDocument)); - } - if ($this->_gphotoLocation != null) { - $element->appendChild($this->_gphotoLocation->getDOM($element->ownerDocument)); - } - if ($this->_gphotoAccess != null) { - $element->appendChild($this->_gphotoAccess->getDOM($element->ownerDocument)); - } - if ($this->_gphotoTimestamp != null) { - $element->appendChild($this->_gphotoTimestamp->getDOM($element->ownerDocument)); - } - if ($this->_gphotoNumPhotos != null) { - $element->appendChild($this->_gphotoNumPhotos->getDOM($element->ownerDocument)); - } - if ($this->_gphotoCommentingEnabled != null) { - $element->appendChild($this->_gphotoCommentingEnabled->getDOM($element->ownerDocument)); - } - if ($this->_gphotoCommentCount != null) { - $element->appendChild($this->_gphotoCommentCount->getDOM($element->ownerDocument)); - } - - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'id'; - $id = new Zend_Gdata_Photos_Extension_Id(); - $id->transferFromDOM($child); - $this->_gphotoId = $id; - break; - case $this->lookupNamespace('gphoto') . ':' . 'user'; - $user = new Zend_Gdata_Photos_Extension_User(); - $user->transferFromDOM($child); - $this->_gphotoUser = $user; - break; - case $this->lookupNamespace('gphoto') . ':' . 'nickname'; - $nickname = new Zend_Gdata_Photos_Extension_Nickname(); - $nickname->transferFromDOM($child); - $this->_gphotoNickname = $nickname; - break; - case $this->lookupNamespace('gphoto') . ':' . 'name'; - $name = new Zend_Gdata_Photos_Extension_Name(); - $name->transferFromDOM($child); - $this->_gphotoName = $name; - break; - case $this->lookupNamespace('gphoto') . ':' . 'location'; - $location = new Zend_Gdata_Photos_Extension_Location(); - $location->transferFromDOM($child); - $this->_gphotoLocation = $location; - break; - case $this->lookupNamespace('gphoto') . ':' . 'access'; - $access = new Zend_Gdata_Photos_Extension_Access(); - $access->transferFromDOM($child); - $this->_gphotoAccess = $access; - break; - case $this->lookupNamespace('gphoto') . ':' . 'timestamp'; - $timestamp = new Zend_Gdata_Photos_Extension_Timestamp(); - $timestamp->transferFromDOM($child); - $this->_gphotoTimestamp = $timestamp; - break; - case $this->lookupNamespace('gphoto') . ':' . 'numphotos'; - $numphotos = new Zend_Gdata_Photos_Extension_NumPhotos(); - $numphotos->transferFromDOM($child); - $this->_gphotoNumPhotos = $numphotos; - break; - case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled'; - $commentingEnabled = new Zend_Gdata_Photos_Extension_CommentingEnabled(); - $commentingEnabled->transferFromDOM($child); - $this->_gphotoCommentingEnabled = $commentingEnabled; - break; - case $this->lookupNamespace('gphoto') . ':' . 'commentCount'; - $commentCount = new Zend_Gdata_Photos_Extension_CommentCount(); - $commentCount->transferFromDOM($child); - $this->_gphotoCommentCount = $commentCount; - break; - case $this->lookupNamespace('atom') . ':' . 'entry': - $entryClassName = $this->_entryClassName; - $tmpEntry = new Zend_Gdata_App_Entry($child); - $categories = $tmpEntry->getCategory(); - foreach ($categories as $category) { - if ($category->scheme == Zend_Gdata_Photos::KIND_PATH && - $this->_entryKindClassMapping[$category->term] != "") { - $entryClassName = $this->_entryKindClassMapping[$category->term]; - break; - } else { - throw new Zend_Gdata_App_Exception('Entry is missing kind declaration.'); - } - } - - $newEntry = new $entryClassName($child); - $newEntry->setHttpClient($this->getHttpClient()); - $this->_entry[] = $newEntry; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value for this element's gphoto:user attribute. - * - * @see setGphotoUser - * @return string The requested attribute. - */ - public function getGphotoUser() - { - return $this->_gphotoUser; - } - - /** - * Set the value for this element's gphoto:user attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_User The element being modified. - */ - public function setGphotoUser($value) - { - $this->_gphotoUser = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:access attribute. - * - * @see setGphotoAccess - * @return string The requested attribute. - */ - public function getGphotoAccess() - { - return $this->_gphotoAccess; - } - - /** - * Set the value for this element's gphoto:access attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Access The element being modified. - */ - public function setGphotoAccess($value) - { - $this->_gphotoAccess = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:location attribute. - * - * @see setGphotoLocation - * @return string The requested attribute. - */ - public function getGphotoLocation() - { - return $this->_gphotoLocation; - } - - /** - * Set the value for this element's gphoto:location attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Location The element being modified. - */ - public function setGphotoLocation($value) - { - $this->_gphotoLocation = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:name attribute. - * - * @see setGphotoName - * @return string The requested attribute. - */ - public function getGphotoName() - { - return $this->_gphotoName; - } - - /** - * Set the value for this element's gphoto:name attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Name The element being modified. - */ - public function setGphotoName($value) - { - $this->_gphotoName = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:numphotos attribute. - * - * @see setGphotoNumPhotos - * @return string The requested attribute. - */ - public function getGphotoNumPhotos() - { - return $this->_gphotoNumPhotos; - } - - /** - * Set the value for this element's gphoto:numphotos attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_NumPhotos The element being modified. - */ - public function setGphotoNumPhotos($value) - { - $this->_gphotoNumPhotos = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:commentCount attribute. - * - * @see setGphotoCommentCount - * @return string The requested attribute. - */ - public function getGphotoCommentCount() - { - return $this->_gphotoCommentCount; - } - - /** - * Set the value for this element's gphoto:commentCount attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_CommentCount The element being modified. - */ - public function setGphotoCommentCount($value) - { - $this->_gphotoCommentCount = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:commentingEnabled attribute. - * - * @see setGphotoCommentingEnabled - * @return string The requested attribute. - */ - public function getGphotoCommentingEnabled() - { - return $this->_gphotoCommentingEnabled; - } - - /** - * Set the value for this element's gphoto:commentingEnabled attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_CommentingEnabled The element being modified. - */ - public function setGphotoCommentingEnabled($value) - { - $this->_gphotoCommentingEnabled = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:id attribute. - * - * @see setGphotoId - * @return string The requested attribute. - */ - public function getGphotoId() - { - return $this->_gphotoId; - } - - /** - * Set the value for this element's gphoto:id attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Id The element being modified. - */ - public function setGphotoId($value) - { - $this->_gphotoId = $value; - return $this; - } - - /** - * Get the value for this element's georss:where attribute. - * - * @see setGeoRssWhere - * @return string The requested attribute. - */ - public function getGeoRssWhere() - { - return $this->_geoRssWhere; - } - - /** - * Set the value for this element's georss:where attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Geo_Extension_GeoRssWhere The element being modified. - */ - public function setGeoRssWhere($value) - { - $this->_geoRssWhere = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:nickname attribute. - * - * @see setGphotoNickname - * @return string The requested attribute. - */ - public function getGphotoNickname() - { - return $this->_gphotoNickname; - } - - /** - * Set the value for this element's gphoto:nickname attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Nickname The element being modified. - */ - public function setGphotoNickname($value) - { - $this->_gphotoNickname = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:timestamp attribute. - * - * @see setGphotoTimestamp - * @return string The requested attribute. - */ - public function getGphotoTimestamp() - { - return $this->_gphotoTimestamp; - } - - /** - * Set the value for this element's gphoto:timestamp attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Timestamp The element being modified. - */ - public function setGphotoTimestamp($value) - { - $this->_gphotoTimestamp = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/AlbumQuery.php b/library/vendor/Zend/Gdata/Photos/AlbumQuery.php deleted file mode 100755 index 39068a593..000000000 --- a/library/vendor/Zend/Gdata/Photos/AlbumQuery.php +++ /dev/null @@ -1,146 +0,0 @@ -_albumId = null; - $this->_albumName = $value; - - return $this; - } - - /** - * Get the album name which is to be returned. - * - * @see setAlbumName - * @return string The name of the album to retrieve. - */ - public function getAlbumName() - { - return $this->_albumName; - } - - /** - * Set the album ID to query for. When set, this album's photographs - * be returned. If not set or null, the default user's feed will be - * returned instead. - * - * NOTE: Album and AlbumId are mutually exclusive. Setting one will - * automatically set the other to null. - * - * @param string $value The ID of the album to retrieve, or null to - * clear. - * @return Zend_Gdata_Photos_AlbumQuery The query object. - */ - public function setAlbumId($value) - { - $this->_albumName = null; - $this->_albumId = $value; - - return $this; - } - - /** - * Get the album ID which is to be returned. - * - * @see setAlbum - * @return string The ID of the album to retrieve. - */ - public function getAlbumId() - { - return $this->_albumId; - } - - /** - * Returns the URL generated for this query, based on it's current - * parameters. - * - * @return string A URL generated based on the state of this query. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getQueryUrl($incomingUri = '') - { - $uri = ''; - if ($this->getAlbumName() !== null && $this->getAlbumId() === null) { - $uri .= '/album/' . $this->getAlbumName(); - } elseif ($this->getAlbumName() === null && $this->getAlbumId() !== null) { - $uri .= '/albumid/' . $this->getAlbumId(); - } elseif ($this->getAlbumName() !== null && $this->getAlbumId() !== null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'AlbumName and AlbumId cannot both be non-null'); - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'AlbumName and AlbumId cannot both be null'); - } - $uri .= $incomingUri; - return parent::getQueryUrl($uri); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/CommentEntry.php b/library/vendor/Zend/Gdata/Photos/CommentEntry.php deleted file mode 100755 index 55d59a3d3..000000000 --- a/library/vendor/Zend/Gdata/Photos/CommentEntry.php +++ /dev/null @@ -1,190 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Photos - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Photos_CommentEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Photos_CommentEntry'; - - /** - * gphoto:id element - * - * @var Zend_Gdata_Photos_Extension_Id - */ - protected $_gphotoId = null; - - /** - * gphoto:photoid element, differs from gphoto:id as this is an - * actual identification number unique exclusively to photo entries, - * whereas gphoto:id can refer to all gphoto objects - * - * @var Zend_Gdata_Photos_Extension_PhotoId - */ - protected $_gphotoPhotoId = null; - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct($element); - - $category = new Zend_Gdata_App_Extension_Category( - 'http://schemas.google.com/photos/2007#comment', - 'http://schemas.google.com/g/2005#kind'); - $this->setCategory(array($category)); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_gphotoId !== null) { - $element->appendChild($this->_gphotoId->getDOM($element->ownerDocument)); - } - if ($this->_gphotoPhotoId !== null) { - $element->appendChild($this->_gphotoPhotoId->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'id'; - $id = new Zend_Gdata_Photos_Extension_Id(); - $id->transferFromDOM($child); - $this->_gphotoId = $id; - break; - case $this->lookupNamespace('gphoto') . ':' . 'photoid'; - $photoid = new Zend_Gdata_Photos_Extension_PhotoId(); - $photoid->transferFromDOM($child); - $this->_gphotoPhotoId = $photoid; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value for this element's gphoto:photoid attribute. - * - * @see setGphotoPhotoId - * @return string The requested attribute. - */ - public function getGphotoPhotoId() - { - return $this->_gphotoPhotoId; - } - - /** - * Set the value for this element's gphoto:photoid attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_PhotoId The element being modified. - */ - public function setGphotoPhotoId($value) - { - $this->_gphotoPhotoId = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:id attribute. - * - * @see setGphotoId - * @return string The requested attribute. - */ - public function getGphotoId() - { - return $this->_gphotoId; - } - - /** - * Set the value for this element's gphoto:id attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Id The element being modified. - */ - public function setGphotoId($value) - { - $this->_gphotoId = $value; - return $this; - } -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Access.php b/library/vendor/Zend/Gdata/Photos/Extension/Access.php deleted file mode 100755 index 3fe09d008..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Access.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/AlbumId.php b/library/vendor/Zend/Gdata/Photos/Extension/AlbumId.php deleted file mode 100755 index 942c918b4..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/AlbumId.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/BytesUsed.php b/library/vendor/Zend/Gdata/Photos/Extension/BytesUsed.php deleted file mode 100755 index 41b655d14..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/BytesUsed.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Checksum.php b/library/vendor/Zend/Gdata/Photos/Extension/Checksum.php deleted file mode 100755 index 3c8acb8cf..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Checksum.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Client.php b/library/vendor/Zend/Gdata/Photos/Extension/Client.php deleted file mode 100755 index 62554e805..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Client.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/CommentCount.php b/library/vendor/Zend/Gdata/Photos/Extension/CommentCount.php deleted file mode 100755 index 9b5630268..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/CommentCount.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/CommentingEnabled.php b/library/vendor/Zend/Gdata/Photos/Extension/CommentingEnabled.php deleted file mode 100755 index c9ff7f498..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/CommentingEnabled.php +++ /dev/null @@ -1,62 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Height.php b/library/vendor/Zend/Gdata/Photos/Extension/Height.php deleted file mode 100755 index b569cfa47..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Height.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Id.php b/library/vendor/Zend/Gdata/Photos/Extension/Id.php deleted file mode 100755 index 710b61418..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Id.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Location.php b/library/vendor/Zend/Gdata/Photos/Extension/Location.php deleted file mode 100755 index d85a3b876..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Location.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/MaxPhotosPerAlbum.php b/library/vendor/Zend/Gdata/Photos/Extension/MaxPhotosPerAlbum.php deleted file mode 100755 index a28fafa22..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/MaxPhotosPerAlbum.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Name.php b/library/vendor/Zend/Gdata/Photos/Extension/Name.php deleted file mode 100755 index 74781bd0c..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Name.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Nickname.php b/library/vendor/Zend/Gdata/Photos/Extension/Nickname.php deleted file mode 100755 index 90a676e4a..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Nickname.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/NumPhotos.php b/library/vendor/Zend/Gdata/Photos/Extension/NumPhotos.php deleted file mode 100755 index b4971d130..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/NumPhotos.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/NumPhotosRemaining.php b/library/vendor/Zend/Gdata/Photos/Extension/NumPhotosRemaining.php deleted file mode 100755 index 702acb97d..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/NumPhotosRemaining.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/PhotoId.php b/library/vendor/Zend/Gdata/Photos/Extension/PhotoId.php deleted file mode 100755 index 8ea64e2db..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/PhotoId.php +++ /dev/null @@ -1,59 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Position.php b/library/vendor/Zend/Gdata/Photos/Extension/Position.php deleted file mode 100755 index 6096889e7..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Position.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/QuotaCurrent.php b/library/vendor/Zend/Gdata/Photos/Extension/QuotaCurrent.php deleted file mode 100755 index c398cc9ce..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/QuotaCurrent.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/QuotaLimit.php b/library/vendor/Zend/Gdata/Photos/Extension/QuotaLimit.php deleted file mode 100755 index 60b3add73..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/QuotaLimit.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Rotation.php b/library/vendor/Zend/Gdata/Photos/Extension/Rotation.php deleted file mode 100755 index 70cbffa48..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Rotation.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Size.php b/library/vendor/Zend/Gdata/Photos/Extension/Size.php deleted file mode 100755 index 5e4c6da0f..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Size.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Thumbnail.php b/library/vendor/Zend/Gdata/Photos/Extension/Thumbnail.php deleted file mode 100755 index d0aef4c9c..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Thumbnail.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Timestamp.php b/library/vendor/Zend/Gdata/Photos/Extension/Timestamp.php deleted file mode 100755 index 4494a88a7..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Timestamp.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/User.php b/library/vendor/Zend/Gdata/Photos/Extension/User.php deleted file mode 100755 index 57f1346a8..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/User.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Version.php b/library/vendor/Zend/Gdata/Photos/Extension/Version.php deleted file mode 100755 index b77238db0..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Version.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Weight.php b/library/vendor/Zend/Gdata/Photos/Extension/Weight.php deleted file mode 100755 index 7bc655737..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Weight.php +++ /dev/null @@ -1,61 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/Extension/Width.php b/library/vendor/Zend/Gdata/Photos/Extension/Width.php deleted file mode 100755 index c78aab181..000000000 --- a/library/vendor/Zend/Gdata/Photos/Extension/Width.php +++ /dev/null @@ -1,60 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct(); - $this->setText($text); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/PhotoEntry.php b/library/vendor/Zend/Gdata/Photos/PhotoEntry.php deleted file mode 100755 index 20e3ee49f..000000000 --- a/library/vendor/Zend/Gdata/Photos/PhotoEntry.php +++ /dev/null @@ -1,675 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Photos - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Photos_PhotoEntry extends Zend_Gdata_Media_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Photos_PhotoEntry'; - - /** - * gphoto:id element - * - * @var Zend_Gdata_Photos_Extension_Id - */ - protected $_gphotoId = null; - - /** - * gphoto:albumid element - * - * @var Zend_Gdata_Photos_Extension_AlbumId - */ - protected $_gphotoAlbumId = null; - - /** - * gphoto:version element - * - * @var Zend_Gdata_Photos_Extension_Version - */ - protected $_gphotoVersion = null; - - /** - * gphoto:width element - * - * @var Zend_Gdata_Photos_Extension_Width - */ - protected $_gphotoWidth = null; - - /** - * gphoto:height element - * - * @var Zend_Gdata_Photos_Extension_Height - */ - protected $_gphotoHeight = null; - - /** - * gphoto:size element - * - * @var Zend_Gdata_Photos_Extension_Size - */ - protected $_gphotoSize = null; - - /** - * gphoto:client element - * - * @var Zend_Gdata_Photos_Extension_Client - */ - protected $_gphotoClient = null; - - /** - * gphoto:checksum element - * - * @var Zend_Gdata_Photos_Extension_Checksum - */ - protected $_gphotoChecksum = null; - - /** - * gphoto:timestamp element - * - * @var Zend_Gdata_Photos_Extension_Timestamp - */ - protected $_gphotoTimestamp = null; - - /** - * gphoto:commentCount element - * - * @var Zend_Gdata_Photos_Extension_CommentCount - */ - protected $_gphotoCommentCount = null; - - /** - * gphoto:commentingEnabled element - * - * @var Zend_Gdata_Photos_Extension_CommentingEnabled - */ - protected $_gphotoCommentingEnabled = null; - - /** - * exif:tags element - * - * @var Zend_Gdata_Exif_Extension_Tags - */ - protected $_exifTags = null; - - /** - * georss:where element - * - * @var Zend_Gdata_Geo_Extension_GeoRssWhere - */ - protected $_geoRssWhere = null; - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct($element); - - $category = new Zend_Gdata_App_Extension_Category( - 'http://schemas.google.com/photos/2007#photo', - 'http://schemas.google.com/g/2005#kind'); - $this->setCategory(array($category)); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_gphotoAlbumId !== null) { - $element->appendChild($this->_gphotoAlbumId->getDOM($element->ownerDocument)); - } - if ($this->_gphotoId !== null) { - $element->appendChild($this->_gphotoId->getDOM($element->ownerDocument)); - } - if ($this->_gphotoVersion !== null) { - $element->appendChild($this->_gphotoVersion->getDOM($element->ownerDocument)); - } - if ($this->_gphotoWidth !== null) { - $element->appendChild($this->_gphotoWidth->getDOM($element->ownerDocument)); - } - if ($this->_gphotoHeight !== null) { - $element->appendChild($this->_gphotoHeight->getDOM($element->ownerDocument)); - } - if ($this->_gphotoSize !== null) { - $element->appendChild($this->_gphotoSize->getDOM($element->ownerDocument)); - } - if ($this->_gphotoClient !== null) { - $element->appendChild($this->_gphotoClient->getDOM($element->ownerDocument)); - } - if ($this->_gphotoChecksum !== null) { - $element->appendChild($this->_gphotoChecksum->getDOM($element->ownerDocument)); - } - if ($this->_gphotoTimestamp !== null) { - $element->appendChild($this->_gphotoTimestamp->getDOM($element->ownerDocument)); - } - if ($this->_gphotoCommentingEnabled !== null) { - $element->appendChild($this->_gphotoCommentingEnabled->getDOM($element->ownerDocument)); - } - if ($this->_gphotoCommentCount !== null) { - $element->appendChild($this->_gphotoCommentCount->getDOM($element->ownerDocument)); - } - if ($this->_exifTags !== null) { - $element->appendChild($this->_exifTags->getDOM($element->ownerDocument)); - } - if ($this->_geoRssWhere !== null) { - $element->appendChild($this->_geoRssWhere->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'albumid'; - $albumId = new Zend_Gdata_Photos_Extension_AlbumId(); - $albumId->transferFromDOM($child); - $this->_gphotoAlbumId = $albumId; - break; - case $this->lookupNamespace('gphoto') . ':' . 'id'; - $id = new Zend_Gdata_Photos_Extension_Id(); - $id->transferFromDOM($child); - $this->_gphotoId = $id; - break; - case $this->lookupNamespace('gphoto') . ':' . 'version'; - $version = new Zend_Gdata_Photos_Extension_Version(); - $version->transferFromDOM($child); - $this->_gphotoVersion = $version; - break; - case $this->lookupNamespace('gphoto') . ':' . 'width'; - $width = new Zend_Gdata_Photos_Extension_Width(); - $width->transferFromDOM($child); - $this->_gphotoWidth = $width; - break; - case $this->lookupNamespace('gphoto') . ':' . 'height'; - $height = new Zend_Gdata_Photos_Extension_Height(); - $height->transferFromDOM($child); - $this->_gphotoHeight = $height; - break; - case $this->lookupNamespace('gphoto') . ':' . 'size'; - $size = new Zend_Gdata_Photos_Extension_Size(); - $size->transferFromDOM($child); - $this->_gphotoSize = $size; - break; - case $this->lookupNamespace('gphoto') . ':' . 'client'; - $client = new Zend_Gdata_Photos_Extension_Client(); - $client->transferFromDOM($child); - $this->_gphotoClient = $client; - break; - case $this->lookupNamespace('gphoto') . ':' . 'checksum'; - $checksum = new Zend_Gdata_Photos_Extension_Checksum(); - $checksum->transferFromDOM($child); - $this->_gphotoChecksum = $checksum; - break; - case $this->lookupNamespace('gphoto') . ':' . 'timestamp'; - $timestamp = new Zend_Gdata_Photos_Extension_Timestamp(); - $timestamp->transferFromDOM($child); - $this->_gphotoTimestamp = $timestamp; - break; - case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled'; - $commentingEnabled = new Zend_Gdata_Photos_Extension_CommentingEnabled(); - $commentingEnabled->transferFromDOM($child); - $this->_gphotoCommentingEnabled = $commentingEnabled; - break; - case $this->lookupNamespace('gphoto') . ':' . 'commentCount'; - $commentCount = new Zend_Gdata_Photos_Extension_CommentCount(); - $commentCount->transferFromDOM($child); - $this->_gphotoCommentCount = $commentCount; - break; - case $this->lookupNamespace('exif') . ':' . 'tags'; - $exifTags = new Zend_Gdata_Exif_Extension_Tags(); - $exifTags->transferFromDOM($child); - $this->_exifTags = $exifTags; - break; - case $this->lookupNamespace('georss') . ':' . 'where'; - $geoRssWhere = new Zend_Gdata_Geo_Extension_GeoRssWhere(); - $geoRssWhere->transferFromDOM($child); - $this->_geoRssWhere = $geoRssWhere; - break; - default: - parent::takeChildFromDOM($child); - break; - - } - } - - /** - * Get the value for this element's gphoto:albumid attribute. - * - * @see setGphotoAlbumId - * @return string The requested attribute. - */ - public function getGphotoAlbumId() - { - return $this->_gphotoAlbumId; - } - - /** - * Set the value for this element's gphoto:albumid attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_AlbumId The element being modified. - */ - public function setGphotoAlbumId($value) - { - $this->_gphotoAlbumId = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:id attribute. - * - * @see setGphotoId - * @return string The requested attribute. - */ - public function getGphotoId() - { - return $this->_gphotoId; - } - - /** - * Set the value for this element's gphoto:id attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Id The element being modified. - */ - public function setGphotoId($value) - { - $this->_gphotoId = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:version attribute. - * - * @see setGphotoVersion - * @return string The requested attribute. - */ - public function getGphotoVersion() - { - return $this->_gphotoVersion; - } - - /** - * Set the value for this element's gphoto:version attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Version The element being modified. - */ - public function setGphotoVersion($value) - { - $this->_gphotoVersion = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:width attribute. - * - * @see setGphotoWidth - * @return string The requested attribute. - */ - public function getGphotoWidth() - { - return $this->_gphotoWidth; - } - - /** - * Set the value for this element's gphoto:width attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Width The element being modified. - */ - public function setGphotoWidth($value) - { - $this->_gphotoWidth = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:height attribute. - * - * @see setGphotoHeight - * @return string The requested attribute. - */ - public function getGphotoHeight() - { - return $this->_gphotoHeight; - } - - /** - * Set the value for this element's gphoto:height attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Height The element being modified. - */ - public function setGphotoHeight($value) - { - $this->_gphotoHeight = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:size attribute. - * - * @see setGphotoSize - * @return string The requested attribute. - */ - public function getGphotoSize() - { - return $this->_gphotoSize; - } - - /** - * Set the value for this element's gphoto:size attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Size The element being modified. - */ - public function setGphotoSize($value) - { - $this->_gphotoSize = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:client attribute. - * - * @see setGphotoClient - * @return string The requested attribute. - */ - public function getGphotoClient() - { - return $this->_gphotoClient; - } - - /** - * Set the value for this element's gphoto:client attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Client The element being modified. - */ - public function setGphotoClient($value) - { - $this->_gphotoClient = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:checksum attribute. - * - * @see setGphotoChecksum - * @return string The requested attribute. - */ - public function getGphotoChecksum() - { - return $this->_gphotoChecksum; - } - - /** - * Set the value for this element's gphoto:checksum attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Checksum The element being modified. - */ - public function setGphotoChecksum($value) - { - $this->_gphotoChecksum = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:timestamp attribute. - * - * @see setGphotoTimestamp - * @return string The requested attribute. - */ - public function getGphotoTimestamp() - { - return $this->_gphotoTimestamp; - } - - /** - * Set the value for this element's gphoto:timestamp attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Timestamp The element being modified. - */ - public function setGphotoTimestamp($value) - { - $this->_gphotoTimestamp = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:commentCount attribute. - * - * @see setGphotoCommentCount - * @return string The requested attribute. - */ - public function getGphotoCommentCount() - { - return $this->_gphotoCommentCount; - } - - /** - * Set the value for this element's gphoto:commentCount attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_CommentCount The element being modified. - */ - public function setGphotoCommentCount($value) - { - $this->_gphotoCommentCount = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:commentingEnabled attribute. - * - * @see setGphotoCommentingEnabled - * @return string The requested attribute. - */ - public function getGphotoCommentingEnabled() - { - return $this->_gphotoCommentingEnabled; - } - - /** - * Set the value for this element's gphoto:commentingEnabled attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_CommentingEnabled The element being modified. - */ - public function setGphotoCommentingEnabled($value) - { - $this->_gphotoCommentingEnabled = $value; - return $this; - } - - /** - * Get the value for this element's exif:tags attribute. - * - * @see setExifTags - * @return string The requested attribute. - */ - public function getExifTags() - { - return $this->_exifTags; - } - - /** - * Set the value for this element's exif:tags attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Exif_Extension_Tags The element being modified. - */ - public function setExifTags($value) - { - $this->_exifTags = $value; - return $this; - } - - /** - * Get the value for this element's georss:where attribute. - * - * @see setGeoRssWhere - * @return string The requested attribute. - */ - public function getGeoRssWhere() - { - return $this->_geoRssWhere; - } - - /** - * Set the value for this element's georss:where attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Geo_Extension_GeoRssWhere The element being modified. - */ - public function setGeoRssWhere($value) - { - $this->_geoRssWhere = $value; - return $this; - } - - /** - * Get the value for this element's media:group attribute. - * - * @see setMediaGroup - * @return string The requested attribute. - */ - public function getMediaGroup() - { - return $this->_mediaGroup; - } - - /** - * Set the value for this element's media:group attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Media_Extension_MediaGroup The element being modified. - */ - public function setMediaGroup($value) - { - $this->_mediaGroup = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/PhotoFeed.php b/library/vendor/Zend/Gdata/Photos/PhotoFeed.php deleted file mode 100755 index 147287047..000000000 --- a/library/vendor/Zend/Gdata/Photos/PhotoFeed.php +++ /dev/null @@ -1,555 +0,0 @@ - 'Zend_Gdata_Photos_CommentEntry', - 'http://schemas.google.com/photos/2007#tag' => 'Zend_Gdata_Photos_TagEntry' - ); - - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_gphotoId != null) { - $element->appendChild($this->_gphotoId->getDOM($element->ownerDocument)); - } - if ($this->_gphotoVersion != null) { - $element->appendChild($this->_gphotoVersion->getDOM($element->ownerDocument)); - } - if ($this->_gphotoWidth != null) { - $element->appendChild($this->_gphotoWidth->getDOM($element->ownerDocument)); - } - if ($this->_gphotoHeight != null) { - $element->appendChild($this->_gphotoHeight->getDOM($element->ownerDocument)); - } - if ($this->_gphotoSize != null) { - $element->appendChild($this->_gphotoSize->getDOM($element->ownerDocument)); - } - if ($this->_gphotoClient != null) { - $element->appendChild($this->_gphotoClient->getDOM($element->ownerDocument)); - } - if ($this->_gphotoChecksum != null) { - $element->appendChild($this->_gphotoChecksum->getDOM($element->ownerDocument)); - } - if ($this->_gphotoTimestamp != null) { - $element->appendChild($this->_gphotoTimestamp->getDOM($element->ownerDocument)); - } - if ($this->_gphotoCommentingEnabled != null) { - $element->appendChild($this->_gphotoCommentingEnabled->getDOM($element->ownerDocument)); - } - if ($this->_gphotoCommentCount != null) { - $element->appendChild($this->_gphotoCommentCount->getDOM($element->ownerDocument)); - } - if ($this->_mediaGroup != null) { - $element->appendChild($this->_mediaGroup->getDOM($element->ownerDocument)); - } - - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'id'; - $id = new Zend_Gdata_Photos_Extension_Id(); - $id->transferFromDOM($child); - $this->_gphotoId = $id; - break; - case $this->lookupNamespace('gphoto') . ':' . 'version'; - $version = new Zend_Gdata_Photos_Extension_Version(); - $version->transferFromDOM($child); - $this->_gphotoVersion = $version; - break; - case $this->lookupNamespace('gphoto') . ':' . 'albumid'; - $albumid = new Zend_Gdata_Photos_Extension_AlbumId(); - $albumid->transferFromDOM($child); - $this->_gphotoAlbumId = $albumid; - break; - case $this->lookupNamespace('gphoto') . ':' . 'width'; - $width = new Zend_Gdata_Photos_Extension_Width(); - $width->transferFromDOM($child); - $this->_gphotoWidth = $width; - break; - case $this->lookupNamespace('gphoto') . ':' . 'height'; - $height = new Zend_Gdata_Photos_Extension_Height(); - $height->transferFromDOM($child); - $this->_gphotoHeight = $height; - break; - case $this->lookupNamespace('gphoto') . ':' . 'size'; - $size = new Zend_Gdata_Photos_Extension_Size(); - $size->transferFromDOM($child); - $this->_gphotoSize = $size; - break; - case $this->lookupNamespace('gphoto') . ':' . 'client'; - $client = new Zend_Gdata_Photos_Extension_Client(); - $client->transferFromDOM($child); - $this->_gphotoClient = $client; - break; - case $this->lookupNamespace('gphoto') . ':' . 'checksum'; - $checksum = new Zend_Gdata_Photos_Extension_Checksum(); - $checksum->transferFromDOM($child); - $this->_gphotoChecksum = $checksum; - break; - case $this->lookupNamespace('gphoto') . ':' . 'timestamp'; - $timestamp = new Zend_Gdata_Photos_Extension_Timestamp(); - $timestamp->transferFromDOM($child); - $this->_gphotoTimestamp = $timestamp; - break; - case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled'; - $commentingEnabled = new Zend_Gdata_Photos_Extension_CommentingEnabled(); - $commentingEnabled->transferFromDOM($child); - $this->_gphotoCommentingEnabled = $commentingEnabled; - break; - case $this->lookupNamespace('gphoto') . ':' . 'commentCount'; - $commentCount = new Zend_Gdata_Photos_Extension_CommentCount(); - $commentCount->transferFromDOM($child); - $this->_gphotoCommentCount = $commentCount; - break; - case $this->lookupNamespace('media') . ':' . 'group'; - $mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup(); - $mediaGroup->transferFromDOM($child); - $this->_mediaGroup = $mediaGroup; - break; - case $this->lookupNamespace('atom') . ':' . 'entry': - $entryClassName = $this->_entryClassName; - $tmpEntry = new Zend_Gdata_App_Entry($child); - $categories = $tmpEntry->getCategory(); - foreach ($categories as $category) { - if ($category->scheme == Zend_Gdata_Photos::KIND_PATH && - $this->_entryKindClassMapping[$category->term] != "") { - $entryClassName = $this->_entryKindClassMapping[$category->term]; - break; - } else { - throw new Zend_Gdata_App_Exception('Entry is missing kind declaration.'); - } - } - - $newEntry = new $entryClassName($child); - $newEntry->setHttpClient($this->getHttpClient()); - $this->_entry[] = $newEntry; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value for this element's gphoto:id attribute. - * - * @see setGphotoId - * @return string The requested attribute. - */ - public function getGphotoId() - { - return $this->_gphotoId; - } - - /** - * Set the value for this element's gphoto:id attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Id The element being modified. - */ - public function setGphotoId($value) - { - $this->_gphotoId = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:version attribute. - * - * @see setGphotoVersion - * @return string The requested attribute. - */ - public function getGphotoVersion() - { - return $this->_gphotoVersion; - } - - /** - * Set the value for this element's gphoto:version attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Version The element being modified. - */ - public function setGphotoVersion($value) - { - $this->_gphotoVersion = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:albumid attribute. - * - * @see setGphotoAlbumId - * @return string The requested attribute. - */ - public function getGphotoAlbumId() - { - return $this->_gphotoAlbumId; - } - - /** - * Set the value for this element's gphoto:albumid attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_AlbumId The element being modified. - */ - public function setGphotoAlbumId($value) - { - $this->_gphotoAlbumId = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:width attribute. - * - * @see setGphotoWidth - * @return string The requested attribute. - */ - public function getGphotoWidth() - { - return $this->_gphotoWidth; - } - - /** - * Set the value for this element's gphoto:width attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Width The element being modified. - */ - public function setGphotoWidth($value) - { - $this->_gphotoWidth = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:height attribute. - * - * @see setGphotoHeight - * @return string The requested attribute. - */ - public function getGphotoHeight() - { - return $this->_gphotoHeight; - } - - /** - * Set the value for this element's gphoto:height attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Height The element being modified. - */ - public function setGphotoHeight($value) - { - $this->_gphotoHeight = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:size attribute. - * - * @see setGphotoSize - * @return string The requested attribute. - */ - public function getGphotoSize() - { - return $this->_gphotoSize; - } - - /** - * Set the value for this element's gphoto:size attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Size The element being modified. - */ - public function setGphotoSize($value) - { - $this->_gphotoSize = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:client attribute. - * - * @see setGphotoClient - * @return string The requested attribute. - */ - public function getGphotoClient() - { - return $this->_gphotoClient; - } - - /** - * Set the value for this element's gphoto:client attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Client The element being modified. - */ - public function setGphotoClient($value) - { - $this->_gphotoClient = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:checksum attribute. - * - * @see setGphotoChecksum - * @return string The requested attribute. - */ - public function getGphotoChecksum() - { - return $this->_gphotoChecksum; - } - - /** - * Set the value for this element's gphoto:checksum attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Checksum The element being modified. - */ - public function setGphotoChecksum($value) - { - $this->_gphotoChecksum = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:timestamp attribute. - * - * @see setGphotoTimestamp - * @return string The requested attribute. - */ - public function getGphotoTimestamp() - { - return $this->_gphotoTimestamp; - } - - /** - * Set the value for this element's gphoto:timestamp attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Timestamp The element being modified. - */ - public function setGphotoTimestamp($value) - { - $this->_gphotoTimestamp = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:commentCount attribute. - * - * @see setGphotoCommentCount - * @return string The requested attribute. - */ - public function getGphotoCommentCount() - { - return $this->_gphotoCommentCount; - } - - /** - * Set the value for this element's gphoto:commentCount attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_CommentCount The element being modified. - */ - public function setGphotoCommentCount($value) - { - $this->_gphotoCommentCount = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:commentingEnabled attribute. - * - * @see setGphotoCommentingEnabled - * @return string The requested attribute. - */ - public function getGphotoCommentingEnabled() - { - return $this->_gphotoCommentingEnabled; - } - - /** - * Set the value for this element's gphoto:commentingEnabled attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_CommentingEnabled The element being modified. - */ - public function setGphotoCommentingEnabled($value) - { - $this->_gphotoCommentingEnabled = $value; - return $this; - } - - /** - * Get the value for this element's media:group attribute. - * - * @see setMediaGroup - * @return string The requested attribute. - */ - public function getMediaGroup() - { - return $this->_mediaGroup; - } - - /** - * Set the value for this element's media:group attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Media_Extension_MediaGroup The element being modified. - */ - public function setMediaGroup($value) - { - $this->_mediaGroup = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/PhotoQuery.php b/library/vendor/Zend/Gdata/Photos/PhotoQuery.php deleted file mode 100755 index a00e46696..000000000 --- a/library/vendor/Zend/Gdata/Photos/PhotoQuery.php +++ /dev/null @@ -1,96 +0,0 @@ -_photoId = $value; - } - - /** - * Get the photo ID which is to be returned. - * - * @see setPhoto - * @return string The ID of the photo to retrieve. - */ - public function getPhotoId() - { - return $this->_photoId; - } - - /** - * Returns the URL generated for this query, based on it's current - * parameters. - * - * @return string A URL generated based on the state of this query. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getQueryUrl($incomingUri = '') - { - $uri = ''; - if ($this->getPhotoId() !== null) { - $uri .= '/photoid/' . $this->getPhotoId(); - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'PhotoId cannot be null'); - } - $uri .= $incomingUri; - return parent::getQueryUrl($uri); - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/TagEntry.php b/library/vendor/Zend/Gdata/Photos/TagEntry.php deleted file mode 100755 index 2a16fde48..000000000 --- a/library/vendor/Zend/Gdata/Photos/TagEntry.php +++ /dev/null @@ -1,137 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Photos - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Photos_TagEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Photos_TagEntry'; - - protected $_gphotoWeight = null; - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct($element); - - $category = new Zend_Gdata_App_Extension_Category( - 'http://schemas.google.com/photos/2007#tag', - 'http://schemas.google.com/g/2005#kind'); - $this->setCategory(array($category)); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_gphotoWeight !== null) { - $element->appendChild($this->_gphotoWeight->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'weight'; - $weight = new Zend_Gdata_Photos_Extension_Weight(); - $weight->transferFromDOM($child); - $this->_gphotoWeight = $weight; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value for this element's gphoto:weight attribute. - * - * @see setGphotoWeight - * @return string The requested attribute. - */ - public function getGphotoWeight() - { - return $this->_gphotoWeight; - } - - /** - * Set the value for this element's gphoto:weight attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Weight The element being modified. - */ - public function setGphotoWeight($value) - { - $this->_gphotoWeight = $value; - return $this; - } -} diff --git a/library/vendor/Zend/Gdata/Photos/UserEntry.php b/library/vendor/Zend/Gdata/Photos/UserEntry.php deleted file mode 100755 index 659346909..000000000 --- a/library/vendor/Zend/Gdata/Photos/UserEntry.php +++ /dev/null @@ -1,357 +0,0 @@ - in the Google Data protocol. - * - * @category Zend - * @package Zend_Gdata - * @subpackage Photos - * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ -class Zend_Gdata_Photos_UserEntry extends Zend_Gdata_Entry -{ - - protected $_entryClassName = 'Zend_Gdata_Photos_UserEntry'; - - /** - * gphoto:nickname element - * - * @var Zend_Gdata_Photos_Extension_Nickname - */ - protected $_gphotoNickname = null; - - /** - * gphoto:user element - * - * @var Zend_Gdata_Photos_Extension_User - */ - protected $_gphotoUser = null; - - /** - * gphoto:thumbnail element - * - * @var Zend_Gdata_Photos_Extension_Thumbnail - */ - protected $_gphotoThumbnail = null; - - /** - * gphoto:quotalimit element - * - * @var Zend_Gdata_Photos_Extension_QuotaLimit - */ - protected $_gphotoQuotaLimit = null; - - /** - * gphoto:quotacurrent element - * - * @var Zend_Gdata_Photos_Extension_QuotaCurrent - */ - protected $_gphotoQuotaCurrent = null; - - /** - * gphoto:maxPhotosPerAlbum element - * - * @var Zend_Gdata_Photos_Extension_MaxPhotosPerAlbum - */ - protected $_gphotoMaxPhotosPerAlbum = null; - - /** - * Create a new instance. - * - * @param DOMElement $element (optional) DOMElement from which this - * object should be constructed. - */ - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct($element); - - $category = new Zend_Gdata_App_Extension_Category( - 'http://schemas.google.com/photos/2007#user', - 'http://schemas.google.com/g/2005#kind'); - $this->setCategory(array($category)); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_gphotoNickname !== null) { - $element->appendChild($this->_gphotoNickname->getDOM($element->ownerDocument)); - } - if ($this->_gphotoThumbnail !== null) { - $element->appendChild($this->_gphotoThumbnail->getDOM($element->ownerDocument)); - } - if ($this->_gphotoUser !== null) { - $element->appendChild($this->_gphotoUser->getDOM($element->ownerDocument)); - } - if ($this->_gphotoQuotaCurrent !== null) { - $element->appendChild($this->_gphotoQuotaCurrent->getDOM($element->ownerDocument)); - } - if ($this->_gphotoQuotaLimit !== null) { - $element->appendChild($this->_gphotoQuotaLimit->getDOM($element->ownerDocument)); - } - if ($this->_gphotoMaxPhotosPerAlbum !== null) { - $element->appendChild($this->_gphotoMaxPhotosPerAlbum->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'nickname'; - $nickname = new Zend_Gdata_Photos_Extension_Nickname(); - $nickname->transferFromDOM($child); - $this->_gphotoNickname = $nickname; - break; - case $this->lookupNamespace('gphoto') . ':' . 'thumbnail'; - $thumbnail = new Zend_Gdata_Photos_Extension_Thumbnail(); - $thumbnail->transferFromDOM($child); - $this->_gphotoThumbnail = $thumbnail; - break; - case $this->lookupNamespace('gphoto') . ':' . 'user'; - $user = new Zend_Gdata_Photos_Extension_User(); - $user->transferFromDOM($child); - $this->_gphotoUser = $user; - break; - case $this->lookupNamespace('gphoto') . ':' . 'quotacurrent'; - $quotaCurrent = new Zend_Gdata_Photos_Extension_QuotaCurrent(); - $quotaCurrent->transferFromDOM($child); - $this->_gphotoQuotaCurrent = $quotaCurrent; - break; - case $this->lookupNamespace('gphoto') . ':' . 'quotalimit'; - $quotaLimit = new Zend_Gdata_Photos_Extension_QuotaLimit(); - $quotaLimit->transferFromDOM($child); - $this->_gphotoQuotaLimit = $quotaLimit; - break; - case $this->lookupNamespace('gphoto') . ':' . 'maxPhotosPerAlbum'; - $maxPhotosPerAlbum = new Zend_Gdata_Photos_Extension_MaxPhotosPerAlbum(); - $maxPhotosPerAlbum->transferFromDOM($child); - $this->_gphotoMaxPhotosPerAlbum = $maxPhotosPerAlbum; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value for this element's gphoto:nickname attribute. - * - * @see setGphotoNickname - * @return string The requested attribute. - */ - public function getGphotoNickname() - { - return $this->_gphotoNickname; - } - - /** - * Set the value for this element's gphoto:nickname attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Nickname The element being modified. - */ - public function setGphotoNickname($value) - { - $this->_gphotoNickname = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:thumbnail attribute. - * - * @see setGphotoThumbnail - * @return string The requested attribute. - */ - public function getGphotoThumbnail() - { - return $this->_gphotoThumbnail; - } - - /** - * Set the value for this element's gphoto:thumbnail attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Thumbnail The element being modified. - */ - public function setGphotoThumbnail($value) - { - $this->_gphotoThumbnail = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:quotacurrent attribute. - * - * @see setGphotoQuotaCurrent - * @return string The requested attribute. - */ - public function getGphotoQuotaCurrent() - { - return $this->_gphotoQuotaCurrent; - } - - /** - * Set the value for this element's gphoto:quotacurrent attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_QuotaCurrent The element being modified. - */ - public function setGphotoQuotaCurrent($value) - { - $this->_gphotoQuotaCurrent = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:quotalimit attribute. - * - * @see setGphotoQuotaLimit - * @return string The requested attribute. - */ - public function getGphotoQuotaLimit() - { - return $this->_gphotoQuotaLimit; - } - - /** - * Set the value for this element's gphoto:quotalimit attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_QuotaLimit The element being modified. - */ - public function setGphotoQuotaLimit($value) - { - $this->_gphotoQuotaLimit = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:maxPhotosPerAlbum attribute. - * - * @see setGphotoMaxPhotosPerAlbum - * @return string The requested attribute. - */ - public function getGphotoMaxPhotosPerAlbum() - { - return $this->_gphotoMaxPhotosPerAlbum; - } - - /** - * Set the value for this element's gphoto:maxPhotosPerAlbum attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_MaxPhotosPerAlbum The element being modified. - */ - public function setGphotoMaxPhotosPerAlbum($value) - { - $this->_gphotoMaxPhotosPerAlbum = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:user attribute. - * - * @see setGphotoUser - * @return string The requested attribute. - */ - public function getGphotoUser() - { - return $this->_gphotoUser; - } - - /** - * Set the value for this element's gphoto:user attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_User The element being modified. - */ - public function setGphotoUser($value) - { - $this->_gphotoUser = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/UserFeed.php b/library/vendor/Zend/Gdata/Photos/UserFeed.php deleted file mode 100755 index b124991fd..000000000 --- a/library/vendor/Zend/Gdata/Photos/UserFeed.php +++ /dev/null @@ -1,239 +0,0 @@ - 'Zend_Gdata_Photos_AlbumEntry', - 'http://schemas.google.com/photos/2007#photo' => 'Zend_Gdata_Photos_PhotoEntry', - 'http://schemas.google.com/photos/2007#comment' => 'Zend_Gdata_Photos_CommentEntry', - 'http://schemas.google.com/photos/2007#tag' => 'Zend_Gdata_Photos_TagEntry' - ); - - public function __construct($element = null) - { - $this->registerAllNamespaces(Zend_Gdata_Photos::$namespaces); - parent::__construct($element); - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gphoto') . ':' . 'user'; - $user = new Zend_Gdata_Photos_Extension_User(); - $user->transferFromDOM($child); - $this->_gphotoUser = $user; - break; - case $this->lookupNamespace('gphoto') . ':' . 'nickname'; - $nickname = new Zend_Gdata_Photos_Extension_Nickname(); - $nickname->transferFromDOM($child); - $this->_gphotoNickname = $nickname; - break; - case $this->lookupNamespace('gphoto') . ':' . 'thumbnail'; - $thumbnail = new Zend_Gdata_Photos_Extension_Thumbnail(); - $thumbnail->transferFromDOM($child); - $this->_gphotoThumbnail = $thumbnail; - break; - case $this->lookupNamespace('atom') . ':' . 'entry': - $entryClassName = $this->_entryClassName; - $tmpEntry = new Zend_Gdata_App_Entry($child); - $categories = $tmpEntry->getCategory(); - foreach ($categories as $category) { - if ($category->scheme == Zend_Gdata_Photos::KIND_PATH && - $this->_entryKindClassMapping[$category->term] != "") { - $entryClassName = $this->_entryKindClassMapping[$category->term]; - break; - } else { - throw new Zend_Gdata_App_Exception('Entry is missing kind declaration.'); - } - } - - $newEntry = new $entryClassName($child); - $newEntry->setHttpClient($this->getHttpClient()); - $this->_entry[] = $newEntry; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_gphotoUser != null) { - $element->appendChild($this->_gphotoUser->getDOM($element->ownerDocument)); - } - if ($this->_gphotoNickname != null) { - $element->appendChild($this->_gphotoNickname->getDOM($element->ownerDocument)); - } - if ($this->_gphotoThumbnail != null) { - $element->appendChild($this->_gphotoThumbnail->getDOM($element->ownerDocument)); - } - - return $element; - } - - /** - * Get the value for this element's gphoto:user attribute. - * - * @see setGphotoUser - * @return string The requested attribute. - */ - public function getGphotoUser() - { - return $this->_gphotoUser; - } - - /** - * Set the value for this element's gphoto:user attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_User The element being modified. - */ - public function setGphotoUser($value) - { - $this->_gphotoUser = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:nickname attribute. - * - * @see setGphotoNickname - * @return string The requested attribute. - */ - public function getGphotoNickname() - { - return $this->_gphotoNickname; - } - - /** - * Set the value for this element's gphoto:nickname attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Nickname The element being modified. - */ - public function setGphotoNickname($value) - { - $this->_gphotoNickname = $value; - return $this; - } - - /** - * Get the value for this element's gphoto:thumbnail attribute. - * - * @see setGphotoThumbnail - * @return string The requested attribute. - */ - public function getGphotoThumbnail() - { - return $this->_gphotoThumbnail; - } - - /** - * Set the value for this element's gphoto:thumbnail attribute. - * - * @param string $value The desired value for this attribute. - * @return Zend_Gdata_Photos_Extension_Thumbnail The element being modified. - */ - public function setGphotoThumbnail($value) - { - $this->_gphotoThumbnail = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Photos/UserQuery.php b/library/vendor/Zend/Gdata/Photos/UserQuery.php deleted file mode 100755 index 8a22cc614..000000000 --- a/library/vendor/Zend/Gdata/Photos/UserQuery.php +++ /dev/null @@ -1,351 +0,0 @@ -_projection = $value; - return $this; - } - - /** - * Gets the format of data in returned in Atom feeds. - * - * @see setProjection - * @return string projection - */ - public function getProjection() - { - return $this->_projection; - } - - /** - * Set's the type of data returned in queries. Can be either - * 'feed' or 'entry'. Normally, 'feed' will be desired. Default is 'feed'. - * - * @param string $value - * @return Zend_Gdata_Photos_UserQuery Provides a fluent interface - */ - public function setType($value) - { - $this->_type = $value; - return $this; - } - - /** - * Gets the type of data in returned in queries. - * - * @see setType - * @return string type - */ - public function getType() - { - return $this->_type; - } - - /** - * Set the user to query for. When set, this user's feed will be - * returned. If not set or null, the default user's feed will be returned - * instead. - * - * @param string $value The user to retrieve, or null for the default - * user. - */ - public function setUser($value) - { - if ($value !== null) { - $this->_user = $value; - } else { - $this->_user = Zend_Gdata_Photos::DEFAULT_USER; - } - } - - /** - * Get the user which is to be returned. - * - * @see setUser - * @return string The visibility to retrieve. - */ - public function getUser() - { - return $this->_user; - } - - /** - * Set the visibility filter for entries returned. Only entries which - * match this value will be returned. If null or unset, the default - * value will be used instead. - * - * Valid values are 'all' (default), 'public', and 'private'. - * - * @param string $value The visibility to filter by, or null to use the - * default value. - */ - public function setAccess($value) - { - if ($value !== null) { - $this->_params['access'] = $value; - } else { - unset($this->_params['access']); - } - } - - /** - * Get the visibility filter for entries returned. - * - * @see setAccess - * @return string The visibility to filter by, or null for the default - * user. - */ - public function getAccess() - { - return $this->_params['access']; - } - - /** - * Set the tag for entries that are returned. Only entries which - * match this value will be returned. If null or unset, this filter will - * not be applied. - * - * See http://code.google.com/apis/picasaweb/reference.html#Parameters - * for a list of valid values. - * - * @param string $value The tag to filter by, or null if no - * filter is to be applied. - */ - public function setTag($value) - { - if ($value !== null) { - $this->_params['tag'] = $value; - } else { - unset($this->_params['tag']); - } - } - - /** - * Get the tag filter for entries returned. - * - * @see setTag - * @return string The tag to filter by, or null if no filter - * is to be applied. - */ - public function getTag() - { - return $this->_params['tag']; - } - - /** - * Set the kind of entries that are returned. Only entries which - * match this value will be returned. If null or unset, this filter will - * not be applied. - * - * See http://code.google.com/apis/picasaweb/reference.html#Parameters - * for a list of valid values. - * - * @param string $value The kind to filter by, or null if no - * filter is to be applied. - */ - public function setKind($value) - { - if ($value !== null) { - $this->_params['kind'] = $value; - } else { - unset($this->_params['kind']); - } - } - - /** - * Get the kind of entries to be returned. - * - * @see setKind - * @return string The kind to filter by, or null if no filter - * is to be applied. - */ - public function getKind() - { - return $this->_params['kind']; - } - - /** - * Set the maximum image size for entries returned. Only entries which - * match this value will be returned. If null or unset, this filter will - * not be applied. - * - * See http://code.google.com/apis/picasaweb/reference.html#Parameters - * for a list of valid values. - * - * @param string $value The image size to filter by, or null if no - * filter is to be applied. - */ - public function setImgMax($value) - { - if ($value !== null) { - $this->_params['imgmax'] = $value; - } else { - unset($this->_params['imgmax']); - } - } - - /** - * Get the maximum image size filter for entries returned. - * - * @see setImgMax - * @return string The image size size to filter by, or null if no filter - * is to be applied. - */ - public function getImgMax() - { - return $this->_params['imgmax']; - } - - /** - * Set the thumbnail size filter for entries returned. Only entries which - * match this value will be returned. If null or unset, this filter will - * not be applied. - * - * See http://code.google.com/apis/picasaweb/reference.html#Parameters - * for a list of valid values. - * - * @param string $value The thumbnail size to filter by, or null if no - * filter is to be applied. - */ - public function setThumbsize($value) - { - if ($value !== null) { - $this->_params['thumbsize'] = $value; - } else { - unset($this->_params['thumbsize']); - } - } - - /** - * Get the thumbnail size filter for entries returned. - * - * @see setThumbsize - * @return string The thumbnail size to filter by, or null if no filter - * is to be applied. - */ - public function getThumbsize() - { - return $this->_params['thumbsize']; - } - - /** - * Returns the URL generated for this query, based on it's current - * parameters. - * - * @return string A URL generated based on the state of this query. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function getQueryUrl($incomingUri = null) - { - $uri = Zend_Gdata_Photos::PICASA_BASE_URI; - - if ($this->getType() !== null) { - $uri .= '/' . $this->getType(); - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Type must be feed or entry, not null'); - } - - if ($this->getProjection() !== null) { - $uri .= '/' . $this->getProjection(); - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Projection must not be null'); - } - - if ($this->getUser() !== null) { - $uri .= '/user/' . $this->getUser(); - } else { - // Should never occur due to setter behavior - throw new Zend_Gdata_App_InvalidArgumentException( - 'User must not be null'); - } - - $uri .= $incomingUri; - $uri .= $this->getQueryString(); - return $uri; - } - -} diff --git a/library/vendor/Zend/Gdata/Query.php b/library/vendor/Zend/Gdata/Query.php deleted file mode 100644 index 8326a458a..000000000 --- a/library/vendor/Zend/Gdata/Query.php +++ /dev/null @@ -1,415 +0,0 @@ -_url = $url; - } - - /** - * @return string querystring - */ - public function getQueryString() - { - $queryArray = array(); - foreach ($this->_params as $name => $value) { - if (substr($name, 0, 1) == '_') { - continue; - } - $queryArray[] = urlencode($name) . '=' . urlencode($value); - } - if (count($queryArray) > 0) { - return '?' . implode('&', $queryArray); - } else { - return ''; - } - } - - /** - * - */ - public function resetParameters() - { - $this->_params = array(); - } - - /** - * @return string url - */ - public function getQueryUrl() - { - if ($this->_url == null) { - $url = $this->_defaultFeedUri; - } else { - $url = $this->_url; - } - if ($this->getCategory() !== null) { - $url .= '/-/' . $this->getCategory(); - } - $url .= $this->getQueryString(); - return $url; - } - - /** - * @param string $name - * @param string $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setParam($name, $value) - { - $this->_params[$name] = $value; - return $this; - } - - /** - * @param string $name - */ - public function getParam($name) - { - return $this->_params[$name]; - } - - /** - * @param string $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setAlt($value) - { - if ($value != null) { - $this->_params['alt'] = $value; - } else { - unset($this->_params['alt']); - } - return $this; - } - - /** - * @param int $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setMaxResults($value) - { - if ($value != null) { - $this->_params['max-results'] = $value; - } else { - unset($this->_params['max-results']); - } - return $this; - } - - /** - * @param string $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setQuery($value) - { - if ($value != null) { - $this->_params['q'] = $value; - } else { - unset($this->_params['q']); - } - return $this; - } - - /** - * @param int $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setStartIndex($value) - { - if ($value != null) { - $this->_params['start-index'] = $value; - } else { - unset($this->_params['start-index']); - } - return $this; - } - - /** - * @param string $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setUpdatedMax($value) - { - if ($value != null) { - $this->_params['updated-max'] = Zend_Gdata_App_Util::formatTimestamp($value); - } else { - unset($this->_params['updated-max']); - } - return $this; - } - - /** - * @param string $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setUpdatedMin($value) - { - if ($value != null) { - $this->_params['updated-min'] = Zend_Gdata_App_Util::formatTimestamp($value); - } else { - unset($this->_params['updated-min']); - } - return $this; - } - - /** - * @param string $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setPublishedMax($value) - { - if ($value !== null) { - $this->_params['published-max'] = Zend_Gdata_App_Util::formatTimestamp($value); - } else { - unset($this->_params['published-max']); - } - return $this; - } - - /** - * @param string $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setPublishedMin($value) - { - if ($value != null) { - $this->_params['published-min'] = Zend_Gdata_App_Util::formatTimestamp($value); - } else { - unset($this->_params['published-min']); - } - return $this; - } - - /** - * @param string $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setAuthor($value) - { - if ($value != null) { - $this->_params['author'] = $value; - } else { - unset($this->_params['author']); - } - return $this; - } - - /** - * @return string rss or atom - */ - public function getAlt() - { - if (array_key_exists('alt', $this->_params)) { - return $this->_params['alt']; - } else { - return null; - } - } - - /** - * @return int maxResults - */ - public function getMaxResults() - { - if (array_key_exists('max-results', $this->_params)) { - return intval($this->_params['max-results']); - } else { - return null; - } - } - - /** - * @return string query - */ - public function getQuery() - { - if (array_key_exists('q', $this->_params)) { - return $this->_params['q']; - } else { - return null; - } - } - - /** - * @return int startIndex - */ - public function getStartIndex() - { - if (array_key_exists('start-index', $this->_params)) { - return intval($this->_params['start-index']); - } else { - return null; - } - } - - /** - * @return string updatedMax - */ - public function getUpdatedMax() - { - if (array_key_exists('updated-max', $this->_params)) { - return $this->_params['updated-max']; - } else { - return null; - } - } - - /** - * @return string updatedMin - */ - public function getUpdatedMin() - { - if (array_key_exists('updated-min', $this->_params)) { - return $this->_params['updated-min']; - } else { - return null; - } - } - - /** - * @return string publishedMax - */ - public function getPublishedMax() - { - if (array_key_exists('published-max', $this->_params)) { - return $this->_params['published-max']; - } else { - return null; - } - } - - /** - * @return string publishedMin - */ - public function getPublishedMin() - { - if (array_key_exists('published-min', $this->_params)) { - return $this->_params['published-min']; - } else { - return null; - } - } - - /** - * @return string author - */ - public function getAuthor() - { - if (array_key_exists('author', $this->_params)) { - return $this->_params['author']; - } else { - return null; - } - } - - /** - * @param string $value - * @return Zend_Gdata_Query Provides a fluent interface - */ - public function setCategory($value) - { - $this->_category = $value; - return $this; - } - - /* - * @return string id - */ - public function getCategory() - { - return $this->_category; - } - - - public function __get($name) - { - $method = 'get'.ucfirst($name); - if (method_exists($this, $method)) { - return call_user_func(array(&$this, $method)); - } else { - throw new Zend_Gdata_App_Exception('Property ' . $name . ' does not exist'); - } - } - - public function __set($name, $val) - { - $method = 'set'.ucfirst($name); - if (method_exists($this, $method)) { - return call_user_func(array(&$this, $method), $val); - } else { - throw new Zend_Gdata_App_Exception('Property ' . $name . ' does not exist'); - } - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets.php b/library/vendor/Zend/Gdata/Spreadsheets.php deleted file mode 100644 index 19846eed4..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets.php +++ /dev/null @@ -1,433 +0,0 @@ -registerPackage('Zend_Gdata_Spreadsheets'); - $this->registerPackage('Zend_Gdata_Spreadsheets_Extension'); - parent::__construct($client, $applicationId); - $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); - $this->_server = 'spreadsheets.google.com'; - } - - /** - * Gets a spreadsheet feed. - * - * @param mixed $location A DocumentQuery or a string URI specifying the feed location. - * @return Zend_Gdata_Spreadsheets_SpreadsheetFeed - */ - public function getSpreadsheetFeed($location = null) - { - if ($location == null) { - $uri = self::SPREADSHEETS_FEED_URI; - } else if ($location instanceof Zend_Gdata_Spreadsheets_DocumentQuery) { - if ($location->getDocumentType() == null) { - $location->setDocumentType('spreadsheets'); - } - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - - return parent::getFeed($uri, 'Zend_Gdata_Spreadsheets_SpreadsheetFeed'); - } - - /** - * Gets a spreadsheet entry. - * - * @param string $location A DocumentQuery or a URI specifying the entry location. - * @return SpreadsheetEntry - */ - public function getSpreadsheetEntry($location) - { - if ($location instanceof Zend_Gdata_Spreadsheets_DocumentQuery) { - if ($location->getDocumentType() == null) { - $location->setDocumentType('spreadsheets'); - } - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - - return parent::getEntry($uri, 'Zend_Gdata_Spreadsheets_SpreadsheetEntry'); - } - - /** - * Gets a worksheet feed. - * - * @param mixed $location A DocumentQuery, SpreadsheetEntry, or a string URI - * @return Zend_Gdata_Spreadsheets_WorksheetFeed The feed of worksheets - */ - public function getWorksheetFeed($location) - { - if ($location instanceof Zend_Gdata_Spreadsheets_DocumentQuery) { - if ($location->getDocumentType() == null) { - $location->setDocumentType('worksheets'); - } - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Spreadsheets_SpreadsheetEntry) { - $uri = $location->getLink(self::WORKSHEETS_FEED_LINK_URI)->href; - } else { - $uri = $location; - } - - return parent::getFeed($uri, 'Zend_Gdata_Spreadsheets_WorksheetFeed'); - } - - /** - * Gets a worksheet entry. - * - * @param string $location A DocumentQuery or a URI specifying the entry location. - * @return WorksheetEntry - */ - public function GetWorksheetEntry($location) - { - if ($location instanceof Zend_Gdata_Spreadsheets_DocumentQuery) { - if ($location->getDocumentType() == null) { - $location->setDocumentType('worksheets'); - } - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - - return parent::getEntry($uri, 'Zend_Gdata_Spreadsheets_WorksheetEntry'); - } - - /** - * Gets a cell feed. - * - * @param string $location A CellQuery, WorksheetEntry or a URI specifying the feed location. - * @return CellFeed - */ - public function getCellFeed($location) - { - if ($location instanceof Zend_Gdata_Spreadsheets_CellQuery) { - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Spreadsheets_WorksheetEntry) { - $uri = $location->getLink(self::CELL_FEED_LINK_URI)->href; - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_Spreadsheets_CellFeed'); - } - - /** - * Gets a cell entry. - * - * @param string $location A CellQuery or a URI specifying the entry location. - * @return CellEntry - */ - public function getCellEntry($location) - { - if ($location instanceof Zend_Gdata_Spreadsheets_CellQuery) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - - return parent::getEntry($uri, 'Zend_Gdata_Spreadsheets_CellEntry'); - } - - /** - * Gets a list feed. - * - * @param mixed $location A ListQuery, WorksheetEntry or string URI specifying the feed location. - * @return ListFeed - */ - public function getListFeed($location) - { - if ($location instanceof Zend_Gdata_Spreadsheets_ListQuery) { - $uri = $location->getQueryUrl(); - } else if ($location instanceof Zend_Gdata_Spreadsheets_WorksheetEntry) { - $uri = $location->getLink(self::LIST_FEED_LINK_URI)->href; - } else { - $uri = $location; - } - - return parent::getFeed($uri, 'Zend_Gdata_Spreadsheets_ListFeed'); - } - - /** - * Gets a list entry. - * - * @param string $location A ListQuery or a URI specifying the entry location. - * @return ListEntry - */ - public function getListEntry($location) - { - if ($location instanceof Zend_Gdata_Spreadsheets_ListQuery) { - $uri = $location->getQueryUrl(); - } else { - $uri = $location; - } - - return parent::getEntry($uri, 'Zend_Gdata_Spreadsheets_ListEntry'); - } - - /** - * Updates an existing cell. - * - * @param int $row The row containing the cell to update - * @param int $col The column containing the cell to update - * @param int $inputValue The new value for the cell - * @param string $key The key for the spreadsheet to be updated - * @param string $wkshtId (optional) The worksheet to be updated - * @return CellEntry The updated cell entry. - */ - public function updateCell($row, $col, $inputValue, $key, $wkshtId = 'default') - { - $cell = 'R'.$row.'C'.$col; - - $query = new Zend_Gdata_Spreadsheets_CellQuery(); - $query->setSpreadsheetKey($key); - $query->setWorksheetId($wkshtId); - $query->setCellId($cell); - - $entry = $this->getCellEntry($query); - $entry->setCell(new Zend_Gdata_Spreadsheets_Extension_Cell(null, $row, $col, $inputValue)); - $response = $entry->save(); - return $response; - } - - /** - * Inserts a new row with provided data. - * - * @param array $rowData An array of column header to row data - * @param string $key The key of the spreadsheet to modify - * @param string $wkshtId (optional) The worksheet to modify - * @return ListEntry The inserted row - */ - public function insertRow($rowData, $key, $wkshtId = 'default') - { - $newEntry = new Zend_Gdata_Spreadsheets_ListEntry(); - $newCustomArr = array(); - foreach ($rowData as $k => $v) { - $newCustom = new Zend_Gdata_Spreadsheets_Extension_Custom(); - $newCustom->setText($v)->setColumnName($k); - $newEntry->addCustom($newCustom); - } - - $query = new Zend_Gdata_Spreadsheets_ListQuery(); - $query->setSpreadsheetKey($key); - $query->setWorksheetId($wkshtId); - - $feed = $this->getListFeed($query); - $editLink = $feed->getLink('http://schemas.google.com/g/2005#post'); - - return $this->insertEntry($newEntry->saveXML(), $editLink->href, 'Zend_Gdata_Spreadsheets_ListEntry'); - } - - /** - * Updates an existing row with provided data. - * - * @param ListEntry $entry The row entry to update - * @param array $newRowData An array of column header to row data - */ - public function updateRow($entry, $newRowData) - { - $newCustomArr = array(); - foreach ($newRowData as $k => $v) { - $newCustom = new Zend_Gdata_Spreadsheets_Extension_Custom(); - $newCustom->setText($v)->setColumnName($k); - $newCustomArr[] = $newCustom; - } - $entry->setCustom($newCustomArr); - - return $entry->save(); - } - - /** - * Deletes an existing row . - * - * @param ListEntry $entry The row to delete - */ - public function deleteRow($entry) - { - $entry->delete(); - } - - /** - * Returns the content of all rows as an associative array - * - * @param mixed $location A ListQuery or string URI specifying the feed location. - * @return array An array of rows. Each element of the array is an associative array of data - */ - public function getSpreadsheetListFeedContents($location) - { - $listFeed = $this->getListFeed($location); - $listFeed = $this->retrieveAllEntriesForFeed($listFeed); - $spreadsheetContents = array(); - foreach ($listFeed as $listEntry) { - $rowContents = array(); - $customArray = $listEntry->getCustom(); - foreach ($customArray as $custom) { - $rowContents[$custom->getColumnName()] = $custom->getText(); - } - $spreadsheetContents[] = $rowContents; - } - return $spreadsheetContents; - } - - /** - * Returns the content of all cells as an associative array, indexed - * off the cell location (ie 'A1', 'D4', etc). Each element of - * the array is an associative array with a 'value' and a 'function'. - * Only non-empty cells are returned by default. 'range' is the - * value of the 'range' query parameter specified at: - * http://code.google.com/apis/spreadsheets/reference.html#cells_Parameters - * - * @param mixed $location A CellQuery, WorksheetEntry or a URL (w/o query string) specifying the feed location. - * @param string $range The range of cells to retrieve - * @param boolean $empty Whether to retrieve empty cells - * @return array An associative array of cells - */ - public function getSpreadsheetCellFeedContents($location, $range = null, $empty = false) - { - $cellQuery = null; - if ($location instanceof Zend_Gdata_Spreadsheets_CellQuery) { - $cellQuery = $location; - } else if ($location instanceof Zend_Gdata_Spreadsheets_WorksheetEntry) { - $url = $location->getLink(self::CELL_FEED_LINK_URI)->href; - $cellQuery = new Zend_Gdata_Spreadsheets_CellQuery($url); - } else { - $url = $location; - $cellQuery = new Zend_Gdata_Spreadsheets_CellQuery($url); - } - - if ($range != null) { - $cellQuery->setRange($range); - } - $cellQuery->setReturnEmpty($empty); - - $cellFeed = $this->getCellFeed($cellQuery); - $cellFeed = $this->retrieveAllEntriesForFeed($cellFeed); - $spreadsheetContents = array(); - foreach ($cellFeed as $cellEntry) { - $cellContents = array(); - $cell = $cellEntry->getCell(); - $cellContents['formula'] = $cell->getInputValue(); - $cellContents['value'] = $cell->getText(); - $spreadsheetContents[$cellEntry->getTitle()->getText()] = $cellContents; - } - return $spreadsheetContents; - } - - /** - * Alias for getSpreadsheetFeed - * - * @param mixed $location A DocumentQuery or a string URI specifying the feed location. - * @return Zend_Gdata_Spreadsheets_SpreadsheetFeed - */ - public function getSpreadsheets($location = null) - { - return $this->getSpreadsheetFeed($location = null); - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/CellEntry.php b/library/vendor/Zend/Gdata/Spreadsheets/CellEntry.php deleted file mode 100644 index 2049e68f4..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/CellEntry.php +++ /dev/null @@ -1,102 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_cell != null) { - $element->appendChild($this->_cell->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gs') . ':' . 'cell'; - $cell = new Zend_Gdata_Spreadsheets_Extension_Cell(); - $cell->transferFromDOM($child); - $this->_cell = $cell; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Gets the Cell element of this Cell Entry. - * @return Zend_Gdata_Spreadsheets_Extension_Cell - */ - public function getCell() - { - return $this->_cell; - } - - /** - * Sets the Cell element of this Cell Entry. - * @param Zend_Gdata_Spreadsheets_Extension_Cell $cell - * @return Zend_Gdata_Spreadsheets_CellEntry - */ - public function setCell($cell) - { - $this->_cell = $cell; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/CellFeed.php b/library/vendor/Zend/Gdata/Spreadsheets/CellFeed.php deleted file mode 100644 index e29c81d28..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/CellFeed.php +++ /dev/null @@ -1,155 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->rowCount != null) { - $element->appendChild($this->_rowCount->getDOM($element->ownerDocument)); - } - if ($this->colCount != null) { - $element->appendChild($this->_colCount->getDOM($element->ownerDocument)); - } - return $element; - } - - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gs') . ':' . 'rowCount'; - $rowCount = new Zend_Gdata_Spreadsheets_Extension_RowCount(); - $rowCount->transferFromDOM($child); - $this->_rowCount = $rowCount; - break; - case $this->lookupNamespace('gs') . ':' . 'colCount'; - $colCount = new Zend_Gdata_Spreadsheets_Extension_ColCount(); - $colCount->transferFromDOM($child); - $this->_colCount = $colCount; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Gets the row count for this feed. - * @return string The row count for the feed. - */ - public function getRowCount() - { - return $this->_rowCount; - } - - /** - * Gets the column count for this feed. - * @return string The column count for the feed. - */ - public function getColumnCount() - { - return $this->_colCount; - } - - /** - * Sets the row count for this feed. - * @param string $rowCount The new row count for the feed. - */ - public function setRowCount($rowCount) - { - $this->_rowCount = $rowCount; - return $this; - } - - /** - * Sets the column count for this feed. - * @param string $colCount The new column count for the feed. - */ - public function setColumnCount($colCount) - { - $this->_colCount = $colCount; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/CellQuery.php b/library/vendor/Zend/Gdata/Spreadsheets/CellQuery.php deleted file mode 100644 index b6e389a6d..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/CellQuery.php +++ /dev/null @@ -1,411 +0,0 @@ -_spreadsheetKey = $value; - return $this; - } - - /** - * Gets the spreadsheet key for this query. - * - * @return string spreadsheet key - */ - public function getSpreadsheetKey() - { - return $this->_spreadsheetKey; - } - - /** - * Sets the worksheet id for this query. - * - * @param string $value - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setWorksheetId($value) - { - $this->_worksheetId = $value; - return $this; - } - - /** - * Gets the worksheet id for this query. - * - * @return string worksheet id - */ - public function getWorksheetId() - { - return $this->_worksheetId; - } - - /** - * Sets the cell id for this query. - * - * @param string $value - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setCellId($value) - { - $this->_cellId = $value; - return $this; - } - - /** - * Gets the cell id for this query. - * - * @return string cell id - */ - public function getCellId() - { - return $this->_cellId; - } - - /** - * Sets the projection for this query. - * - * @param string $value - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setProjection($value) - { - $this->_projection = $value; - return $this; - } - - /** - * Sets the visibility for this query. - * - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setVisibility($value) - { - $this->_visibility = $value; - return $this; - } - - /** - * Gets the projection for this query. - * - * @return string projection - */ - public function getProjection() - { - return $this->_projection; - } - - /** - * Gets the visibility for this query. - * - * @return string visibility - */ - public function getVisibility() - { - return $this->_visibility; - } - - /** - * Sets the min-row attribute for this query. - * - * @param string $value - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setMinRow($value) - { - if ($value != null) { - $this->_params['min-row'] = $value; - } else { - unset($this->_params['min-row']); - } - return $this; - } - - /** - * Gets the min-row attribute for this query. - * - * @return string min-row - */ - public function getMinRow() - { - if (array_key_exists('min-row', $this->_params)) { - return $this->_params['min-row']; - } else { - return null; - } - } - - /** - * Sets the max-row attribute for this query. - * - * @param string $value - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setMaxRow($value) - { - if ($value != null) { - $this->_params['max-row'] = $value; - } else { - unset($this->_params['max-row']); - } - return $this; - } - - /** - * Gets the max-row attribute for this query. - * - * @return string max-row - */ - public function getMaxRow() - { - if (array_key_exists('max-row', $this->_params)) { - return $this->_params['max-row']; - } else { - return null; - } - } - - /** - * Sets the min-col attribute for this query. - * - * @param string $value - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setMinCol($value) - { - if ($value != null) { - $this->_params['min-col'] = $value; - } else { - unset($this->_params['min-col']); - } - return $this; - } - - /** - * Gets the min-col attribute for this query. - * - * @return string min-col - */ - public function getMinCol() - { - if (array_key_exists('min-col', $this->_params)) { - return $this->_params['min-col']; - } else { - return null; - } - } - - /** - * Sets the max-col attribute for this query. - * - * @param string $value - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setMaxCol($value) - { - if ($value != null) { - $this->_params['max-col'] = $value; - } else { - unset($this->_params['max-col']); - } - return $this; - } - - /** - * Gets the max-col attribute for this query. - * - * @return string max-col - */ - public function getMaxCol() - { - if (array_key_exists('max-col', $this->_params)) { - return $this->_params['max-col']; - } else { - return null; - } - } - - /** - * Sets the range attribute for this query. - * - * @param string $value - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setRange($value) - { - if ($value != null) { - $this->_params['range'] = $value; - } else { - unset($this->_params['range']); - } - return $this; - } - - /** - * Gets the range attribute for this query. - * - * @return string range - */ - public function getRange() - { - if (array_key_exists('range', $this->_params)) { - return $this->_params['range']; - } else { - return null; - } - } - - /** - * Sets the return-empty attribute for this query. - * - * @param mixed $value String or bool value for whether to return empty cells - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setReturnEmpty($value) - { - if (is_bool($value)) { - $this->_params['return-empty'] = ($value?'true':'false'); - } else if ($value != null) { - $this->_params['return-empty'] = $value; - } else { - unset($this->_params['return-empty']); - } - return $this; - } - - /** - * Gets the return-empty attribute for this query. - * - * @return string return-empty - */ - public function getReturnEmpty() - { - if (array_key_exists('return-empty', $this->_params)) { - return $this->_params['return-empty']; - } else { - return null; - } - } - - /** - * Gets the full query URL for this query. - * - * @return string url - */ - public function getQueryUrl() - { - if ($this->_url == null) { - $uri = $this->_defaultFeedUri; - - if ($this->_spreadsheetKey != null) { - $uri .= '/'.$this->_spreadsheetKey; - } else { - throw new Zend_Gdata_App_Exception('A spreadsheet key must be provided for cell queries.'); - } - - if ($this->_worksheetId != null) { - $uri .= '/'.$this->_worksheetId; - } else { - throw new Zend_Gdata_App_Exception('A worksheet id must be provided for cell queries.'); - } - - if ($this->_visibility != null) { - $uri .= '/'.$this->_visibility; - } else { - throw new Zend_Gdata_App_Exception('A visibility must be provided for cell queries.'); - } - - if ($this->_projection != null) { - $uri .= '/'.$this->_projection; - } else { - throw new Zend_Gdata_App_Exception('A projection must be provided for cell queries.'); - } - - if ($this->_cellId != null) { - $uri .= '/'.$this->_cellId; - } - } else { - $uri = $this->_url; - } - - $uri .= $this->getQueryString(); - return $uri; - } - - /** - * Gets the attribute query string for this query. - * - * @return string query string - */ - public function getQueryString() - { - return parent::getQueryString(); - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/DocumentQuery.php b/library/vendor/Zend/Gdata/Spreadsheets/DocumentQuery.php deleted file mode 100644 index 6ec9004d8..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/DocumentQuery.php +++ /dev/null @@ -1,282 +0,0 @@ -_spreadsheetKey = $value; - return $this; - } - - /** - * Gets the spreadsheet key for this query. - * @return string spreadsheet key - */ - public function getSpreadsheetKey() - { - return $this->_spreadsheetKey; - } - - /** - * Sets the worksheet id for this query. - * @param string $value - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setWorksheetId($value) - { - $this->_worksheetId = $value; - return $this; - } - - /** - * Gets the worksheet id for this query. - * @return string worksheet id - */ - public function getWorksheetId() - { - return $this->_worksheetId; - } - - /** - * Sets the document type for this query. - * @param string $value spreadsheets or worksheets - * @return Zend_Gdata_Spreadsheets_DocumentQuery Provides a fluent interface - */ - public function setDocumentType($value) - { - $this->_documentType = $value; - return $this; - } - - /** - * Gets the document type for this query. - * @return string document type - */ - public function getDocumentType() - { - return $this->_documentType; - } - - /** - * Sets the projection for this query. - * @param string $value - * @return Zend_Gdata_Spreadsheets_DocumentQuery Provides a fluent interface - */ - public function setProjection($value) - { - $this->_projection = $value; - return $this; - } - - /** - * Sets the visibility for this query. - * @return Zend_Gdata_Spreadsheets_DocumentQuery Provides a fluent interface - */ - public function setVisibility($value) - { - $this->_visibility = $value; - return $this; - } - - /** - * Gets the projection for this query. - * @return string projection - */ - public function getProjection() - { - return $this->_projection; - } - - /** - * Gets the visibility for this query. - * @return string visibility - */ - public function getVisibility() - { - return $this->_visibility; - } - - /** - * Sets the title attribute for this query. - * @param string $value - * @return Zend_Gdata_Spreadsheets_DocumentQuery Provides a fluent interface - */ - public function setTitle($value) - { - if ($value != null) { - $this->_params['title'] = $value; - } else { - unset($this->_params['title']); - } - return $this; - } - - /** - * Sets the title-exact attribute for this query. - * @param string $value - * @return Zend_Gdata_Spreadsheets_DocumentQuery Provides a fluent interface - */ - public function setTitleExact($value) - { - if ($value != null) { - $this->_params['title-exact'] = $value; - } else { - unset($this->_params['title-exact']); - } - return $this; - } - - /** - * Gets the title attribute for this query. - * @return string title - */ - public function getTitle() - { - if (array_key_exists('title', $this->_params)) { - return $this->_params['title']; - } else { - return null; - } - } - - /** - * Gets the title-exact attribute for this query. - * @return string title-exact - */ - public function getTitleExact() - { - if (array_key_exists('title-exact', $this->_params)) { - return $this->_params['title-exact']; - } else { - return null; - } - } - - private function appendVisibilityProjection() - { - $uri = ''; - - if ($this->_visibility != null) { - $uri .= '/'.$this->_visibility; - } else { - throw new Zend_Gdata_App_Exception('A visibility must be provided for document queries.'); - } - - if ($this->_projection != null) { - $uri .= '/'.$this->_projection; - } else { - throw new Zend_Gdata_App_Exception('A projection must be provided for document queries.'); - } - - return $uri; - } - - - /** - * Gets the full query URL for this query. - * @return string url - */ - public function getQueryUrl() - { - $uri = $this->_defaultFeedUri; - - if ($this->_documentType != null) { - $uri .= '/'.$this->_documentType; - } else { - throw new Zend_Gdata_App_Exception('A document type must be provided for document queries.'); - } - - if ($this->_documentType == 'spreadsheets') { - $uri .= $this->appendVisibilityProjection(); - if ($this->_spreadsheetKey != null) { - $uri .= '/'.$this->_spreadsheetKey; - } - } else if ($this->_documentType == 'worksheets') { - if ($this->_spreadsheetKey != null) { - $uri .= '/'.$this->_spreadsheetKey; - } else { - throw new Zend_Gdata_App_Exception('A spreadsheet key must be provided for worksheet document queries.'); - } - $uri .= $this->appendVisibilityProjection(); - if ($this->_worksheetId != null) { - $uri .= '/'.$this->_worksheetId; - } - } - - $uri .= $this->getQueryString(); - return $uri; - } - - /** - * Gets the attribute query string for this query. - * @return string query string - */ - public function getQueryString() - { - return parent::getQueryString(); - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/Extension/Cell.php b/library/vendor/Zend/Gdata/Spreadsheets/Extension/Cell.php deleted file mode 100644 index 8349ae1d7..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/Extension/Cell.php +++ /dev/null @@ -1,199 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct(); - $this->_text = $text; - $this->_row = $row; - $this->_col = $col; - $this->_inputValue = $inputValue; - $this->_numericValue = $numericValue; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - $element->setAttribute('row', $this->_row); - $element->setAttribute('col', $this->_col); - if ($this->_inputValue) $element->setAttribute('inputValue', $this->_inputValue); - if ($this->_numericValue) $element->setAttribute('numericValue', $this->_numericValue); - return $element; - } - - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'row': - $this->_row = $attribute->nodeValue; - break; - case 'col': - $this->_col = $attribute->nodeValue; - break; - case 'inputValue': - $this->_inputValue = $attribute->nodeValue; - break; - case 'numericValue': - $this->_numericValue = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Gets the row attribute of the Cell element. - * @return string Row of the Cell. - */ - public function getRow() - { - return $this->_row; - } - - /** - * Gets the column attribute of the Cell element. - * @return string Column of the Cell. - */ - public function getColumn() - { - return $this->_col; - } - - /** - * Gets the input value attribute of the Cell element. - * @return string Input value of the Cell. - */ - public function getInputValue() - { - return $this->_inputValue; - } - - /** - * Gets the numeric value attribute of the Cell element. - * @return string Numeric value of the Cell. - */ - public function getNumericValue() - { - return $this->_numericValue; - } - - /** - * Sets the row attribute of the Cell element. - * @param string $row New row of the Cell. - */ - public function setRow($row) - { - $this->_row = $row; - return $this; - } - - /** - * Sets the column attribute of the Cell element. - * @param string $col New column of the Cell. - */ - public function setColumn($col) - { - $this->_col = $col; - return $this; - } - - /** - * Sets the input value attribute of the Cell element. - * @param string $inputValue New input value of the Cell. - */ - public function setInputValue($inputValue) - { - $this->_inputValue = $inputValue; - return $this; - } - - /** - * Sets the numeric value attribute of the Cell element. - * @param string $numericValue New numeric value of the Cell. - */ - public function setNumericValue($numericValue) - { - $this->_numericValue = $numericValue; - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/Extension/ColCount.php b/library/vendor/Zend/Gdata/Spreadsheets/Extension/ColCount.php deleted file mode 100644 index fa4381ef3..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/Extension/ColCount.php +++ /dev/null @@ -1,57 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct(); - $this->_text = $text; - } -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/Extension/Custom.php b/library/vendor/Zend/Gdata/Spreadsheets/Extension/Custom.php deleted file mode 100644 index 6daf49cb4..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/Extension/Custom.php +++ /dev/null @@ -1,98 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct(); - $this->_text = $value; - $this->_rootElement = $column; - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - return $element; - } - - /** - * Transfers each child and attribute into member variables. - * This is called when XML is received over the wire and the data - * model needs to be built to represent this XML. - * - * @param DOMNode $node The DOMNode that represents this object's data - */ - public function transferFromDOM($node) - { - parent::transferFromDOM($node); - $this->_rootElement = $node->localName; - } - - /** - * Sets the column/tag name of the element. - * @param string $column The new column name. - */ - public function setColumnName($column) - { - $this->_rootElement = $column; - return $this; - } - - /** - * Gets the column name of the element - * @return string The column name. - */ - public function getColumnName() - { - return $this->_rootElement; - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/Extension/RowCount.php b/library/vendor/Zend/Gdata/Spreadsheets/Extension/RowCount.php deleted file mode 100644 index d66754bfc..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/Extension/RowCount.php +++ /dev/null @@ -1,58 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/ListEntry.php b/library/vendor/Zend/Gdata/Spreadsheets/ListEntry.php deleted file mode 100644 index e8b1829a9..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/ListEntry.php +++ /dev/null @@ -1,204 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if (!empty($this->_custom)) { - foreach ($this->_custom as $custom) { - $element->appendChild($custom->getDOM($element->ownerDocument)); - } - } - return $element; - } - - protected function takeChildFromDOM($child) - { - switch ($child->namespaceURI) { - case $this->lookupNamespace('gsx'); - $custom = new Zend_Gdata_Spreadsheets_Extension_Custom($child->localName); - $custom->transferFromDOM($child); - $this->addCustom($custom); - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Gets the row elements contained by this list entry. - * @return array The custom row elements in this list entry - */ - public function getCustom() - { - return $this->_custom; - } - - /** - * Gets a single row element contained by this list entry using its name. - * @param string $name The name of a custom element to return. If null - * or not defined, an array containing all custom elements - * indexed by name will be returned. - * @return mixed If a name is specified, the - * Zend_Gdata_Spreadsheets_Extension_Custom element requested, - * is returned or null if not found. Otherwise, an array of all - * Zend_Gdata_Spreadsheets_Extension_Custom elements is returned - * indexed by name. - */ - public function getCustomByName($name = null) - { - if ($name === null) { - return $this->_customByName; - } else { - if (array_key_exists($name, $this->customByName)) { - return $this->_customByName[$name]; - } else { - return null; - } - } - } - - /** - * Sets the row elements contained by this list entry. If any - * custom row elements were previously stored, they will be overwritten. - * @param array $custom The custom row elements to be contained in this - * list entry. - * @return Zend_Gdata_Spreadsheets_ListEntry Provides a fluent interface. - */ - public function setCustom($custom) - { - $this->_custom = array(); - foreach ($custom as $c) { - $this->addCustom($c); - } - return $this; - } - - /** - * Add an individual custom row element to this list entry. - * @param Zend_Gdata_Spreadsheets_Extension_Custom $custom The custom - * element to be added. - * @return Zend_Gdata_Spreadsheets_ListEntry Provides a fluent interface. - */ - public function addCustom($custom) - { - $this->_custom[] = $custom; - $this->_customByName[$custom->getColumnName()] = $custom; - return $this; - } - - /** - * Remove an individual row element from this list entry by index. This - * will cause the array to be re-indexed. - * @param int $index The index of the custom element to be deleted. - * @return Zend_Gdata_Spreadsheets_ListEntry Provides a fluent interface. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function removeCustom($index) - { - if (array_key_exists($index, $this->_custom)) { - $element = $this->_custom[$index]; - // Remove element - unset($this->_custom[$index]); - // Re-index the array - $this->_custom = array_values($this->_custom); - // Be sure to delete form both arrays! - $key = array_search($element, $this->_customByName); - unset($this->_customByName[$key]); - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Element does not exist.'); - } - return $this; - } - - /** - * Remove an individual row element from this list entry by name. - * @param string $name The name of the custom element to be deleted. - * @return Zend_Gdata_Spreadsheets_ListEntry Provides a fluent interface. - * @throws Zend_Gdata_App_InvalidArgumentException - */ - public function removeCustomByName($name) - { - if (array_key_exists($name, $this->_customByName)) { - $element = $this->_customByName[$name]; - // Remove element - unset($this->_customByName[$name]); - // Be sure to delete from both arrays! - $key = array_search($element, $this->_custom); - unset($this->_custom[$key]); - } else { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Element does not exist.'); - } - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/ListFeed.php b/library/vendor/Zend/Gdata/Spreadsheets/ListFeed.php deleted file mode 100644 index 478f1142f..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/ListFeed.php +++ /dev/null @@ -1,63 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/ListQuery.php b/library/vendor/Zend/Gdata/Spreadsheets/ListQuery.php deleted file mode 100644 index 476bc92f3..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/ListQuery.php +++ /dev/null @@ -1,299 +0,0 @@ -_spreadsheetKey = $value; - return $this; - } - - /** - * Gets the spreadsheet key for the query. - * @return string spreadsheet key - */ - public function getSpreadsheetKey() - { - return $this->_spreadsheetKey; - } - - /** - * Sets the worksheet id for the query. - * @param string $value - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setWorksheetId($value) - { - $this->_worksheetId = $value; - return $this; - } - - /** - * Gets the worksheet id for the query. - * @return string worksheet id - */ - public function getWorksheetId() - { - return $this->_worksheetId; - } - - /** - * Sets the row id for the query. - * @param string $value row id - * @return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface - */ - public function setRowId($value) - { - $this->_rowId = $value; - return $this; - } - - /** - * Gets the row id for the query. - * @return string row id - */ - public function getRowId() - { - return $this->_rowId; - } - - /** - * Sets the projection for the query. - * @param string $value Projection - * @return Zend_Gdata_Spreadsheets_ListQuery Provides a fluent interface - */ - public function setProjection($value) - { - $this->_projection = $value; - return $this; - } - - /** - * Sets the visibility for this query. - * @param string $value visibility - * @return Zend_Gdata_Spreadsheets_ListQuery Provides a fluent interface - */ - public function setVisibility($value) - { - $this->_visibility = $value; - return $this; - } - - /** - * Gets the projection for this query. - * @return string projection - */ - public function getProjection() - { - return $this->_projection; - } - - /** - * Gets the visibility for this query. - * @return string visibility - */ - public function getVisibility() - { - return $this->_visibility; - } - - /** - * Sets the spreadsheet key for this query. - * @param string $value - * @return Zend_Gdata_Spreadsheets_DocumentQuery Provides a fluent interface - */ - public function setSpreadsheetQuery($value) - { - if ($value != null) { - $this->_params['sq'] = $value; - } else { - unset($this->_params['sq']); - } - return $this; - } - - /** - * Gets the spreadsheet key for this query. - * @return string spreadsheet query - */ - public function getSpreadsheetQuery() - { - if (array_key_exists('sq', $this->_params)) { - return $this->_params['sq']; - } else { - return null; - } - } - - /** - * Sets the orderby attribute for this query. - * @param string $value - * @return Zend_Gdata_Spreadsheets_DocumentQuery Provides a fluent interface - */ - public function setOrderBy($value) - { - if ($value != null) { - $this->_params['orderby'] = $value; - } else { - unset($this->_params['orderby']); - } - return $this; - } - - /** - * Gets the orderby attribute for this query. - * @return string orderby - */ - public function getOrderBy() - { - if (array_key_exists('orderby', $this->_params)) { - return $this->_params['orderby']; - } else { - return null; - } - } - - /** - * Sets the reverse attribute for this query. - * @param string $value - * @return Zend_Gdata_Spreadsheets_DocumentQuery Provides a fluent interface - */ - public function setReverse($value) - { - if ($value != null) { - $this->_params['reverse'] = $value; - } else { - unset($this->_params['reverse']); - } - return $this; - } - - /** - * Gets the reverse attribute for this query. - * @return string reverse - */ - public function getReverse() - { - - - if (array_key_exists('reverse', $this->_params)) { - return $this->_params['reverse']; - } else { - return null; - } - } - - /** - * Gets the full query URL for this query. - * @return string url - */ - public function getQueryUrl() - { - - $uri = $this->_defaultFeedUri; - - if ($this->_spreadsheetKey != null) { - $uri .= '/'.$this->_spreadsheetKey; - } else { - throw new Zend_Gdata_App_Exception('A spreadsheet key must be provided for list queries.'); - } - - if ($this->_worksheetId != null) { - $uri .= '/'.$this->_worksheetId; - } else { - throw new Zend_Gdata_App_Exception('A worksheet id must be provided for list queries.'); - } - - if ($this->_visibility != null) { - $uri .= '/'.$this->_visibility; - } else { - throw new Zend_Gdata_App_Exception('A visibility must be provided for list queries.'); - } - - if ($this->_projection != null) { - $uri .= '/'.$this->_projection; - } else { - throw new Zend_Gdata_App_Exception('A projection must be provided for list queries.'); - } - - if ($this->_rowId != null) { - $uri .= '/'.$this->_rowId; - } - - $uri .= $this->getQueryString(); - return $uri; - } - - /** - * Gets the attribute query string for this query. - * @return string query string - */ - public function getQueryString() - { - return parent::getQueryString(); - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/SpreadsheetEntry.php b/library/vendor/Zend/Gdata/Spreadsheets/SpreadsheetEntry.php deleted file mode 100644 index 9205e394a..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/SpreadsheetEntry.php +++ /dev/null @@ -1,63 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct($element); - } - - /** - * Returns the worksheets in this spreadsheet - * - * @return Zend_Gdata_Spreadsheets_WorksheetFeed The worksheets - */ - public function getWorksheets() - { - $service = new Zend_Gdata_Spreadsheets($this->getHttpClient()); - return $service->getWorksheetFeed($this); - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/SpreadsheetFeed.php b/library/vendor/Zend/Gdata/Spreadsheets/SpreadsheetFeed.php deleted file mode 100644 index 58c6f40ff..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/SpreadsheetFeed.php +++ /dev/null @@ -1,63 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/WorksheetEntry.php b/library/vendor/Zend/Gdata/Spreadsheets/WorksheetEntry.php deleted file mode 100644 index 0070871d5..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/WorksheetEntry.php +++ /dev/null @@ -1,184 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_rowCount != null) { - $element->appendChild($this->_rowCount->getDOM($element->ownerDocument)); - } - if ($this->_colCount != null) { - $element->appendChild($this->_colCount->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gs') . ':' . 'rowCount'; - $rowCount = new Zend_Gdata_Spreadsheets_Extension_RowCount(); - $rowCount->transferFromDOM($child); - $this->_rowCount = $rowCount; - break; - case $this->lookupNamespace('gs') . ':' . 'colCount'; - $colCount = new Zend_Gdata_Spreadsheets_Extension_ColCount(); - $colCount->transferFromDOM($child); - $this->_colCount = $colCount; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - - /** - * Gets the row count for this entry. - * - * @return string The row count for the entry. - */ - public function getRowCount() - { - return $this->_rowCount; - } - - /** - * Gets the column count for this entry. - * - * @return string The column count for the entry. - */ - public function getColumnCount() - { - return $this->_colCount; - } - - /** - * Sets the row count for this entry. - * - * @param string $rowCount The new row count for the entry. - */ - public function setRowCount($rowCount) - { - $this->_rowCount = $rowCount; - return $this; - } - - /** - * Sets the column count for this entry. - * - * @param string $colCount The new column count for the entry. - */ - public function setColumnCount($colCount) - { - $this->_colCount = $colCount; - return $this; - } - - /** - * Returns the content of all rows as an associative array - * - * @return array An array of rows. Each element of the array is an associative array of data - */ - public function getContentsAsRows() - { - $service = new Zend_Gdata_Spreadsheets($this->getHttpClient()); - return $service->getSpreadsheetListFeedContents($this); - } - - /** - * Returns the content of all cells as an associative array, indexed - * off the cell location (ie 'A1', 'D4', etc). Each element of - * the array is an associative array with a 'value' and a 'function'. - * Only non-empty cells are returned by default. 'range' is the - * value of the 'range' query parameter specified at: - * http://code.google.com/apis/spreadsheets/reference.html#cells_Parameters - * - * @param string $range The range of cells to retrieve - * @param boolean $empty Whether to retrieve empty cells - * @return array An associative array of cells - */ - public function getContentsAsCells($range = null, $empty = false) - { - $service = new Zend_Gdata_Spreadsheets($this->getHttpClient()); - return $service->getSpreadsheetCellFeedContents($this, $range, $empty); - } - -} diff --git a/library/vendor/Zend/Gdata/Spreadsheets/WorksheetFeed.php b/library/vendor/Zend/Gdata/Spreadsheets/WorksheetFeed.php deleted file mode 100644 index 5892f95aa..000000000 --- a/library/vendor/Zend/Gdata/Spreadsheets/WorksheetFeed.php +++ /dev/null @@ -1,63 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Spreadsheets::$namespaces); - parent::__construct($element); - } - - /** - * The classname for individual feed elements. - * - * @var string - */ - protected $_entryClassName = 'Zend_Gdata_Spreadsheets_WorksheetEntry'; - - /** - * The classname for the feed. - * - * @var string - */ - protected $_feedClassName = 'Zend_Gdata_Spreadsheets_WorksheetFeed'; - -} diff --git a/library/vendor/Zend/Gdata/YouTube.php b/library/vendor/Zend/Gdata/YouTube.php deleted file mode 100644 index 5b4f12297..000000000 --- a/library/vendor/Zend/Gdata/YouTube.php +++ /dev/null @@ -1,856 +0,0 @@ -registerPackage('Zend_Gdata_YouTube'); - $this->registerPackage('Zend_Gdata_YouTube_Extension'); - $this->registerPackage('Zend_Gdata_Media'); - $this->registerPackage('Zend_Gdata_Media_Extension'); - - // NOTE This constructor no longer calls the parent constructor - $this->setHttpClient($client, $applicationId, $clientId, $developerKey); - } - - /** - * Set the Zend_Http_Client object used for communication - * - * @param Zend_Http_Client $client The client to use for communication - * @throws Zend_Gdata_App_HttpException - * @return Zend_Gdata_App Provides a fluent interface - */ - public function setHttpClient($client, - $applicationId = 'MyCompany-MyApp-1.0', $clientId = null, - $developerKey = null) - { - if ($client === null) { - $client = new Zend_Http_Client(); - } - if (!$client instanceof Zend_Http_Client) { - throw new Zend_Gdata_App_HttpException( - 'Argument is not an instance of Zend_Http_Client.'); - } - - if ($clientId != null) { - $client->setHeaders('X-GData-Client', $clientId); - } - - if ($developerKey != null) { - $client->setHeaders('X-GData-Key', 'key='. $developerKey); - } - - return parent::setHttpClient($client, $applicationId); - } - - /** - * Retrieves a feed of videos. - * - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_VideoFeed The feed of videos found at the - * specified URL. - */ - public function getVideoFeed($location = null) - { - if ($location == null) { - $uri = self::VIDEO_URI; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_VideoFeed'); - } - - /** - * Retrieves a specific video entry. - * - * @param mixed $videoId The ID of the video to retrieve. - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined. - * @param boolean $fullEntry (optional) Retrieve the full metadata for the - * entry. Only possible if entry belongs to currently authenticated - * user. An exception will be thrown otherwise. - * @throws Zend_Gdata_App_HttpException - * @return Zend_Gdata_YouTube_VideoEntry The video entry found at the - * specified URL. - */ - public function getVideoEntry($videoId = null, $location = null, - $fullEntry = false) - { - if ($videoId !== null) { - if ($fullEntry) { - return $this->getFullVideoEntry($videoId); - } else { - $uri = self::VIDEO_URI . "/" . $videoId; - } - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_YouTube_VideoEntry'); - } - - /** - * Retrieves a video entry from the user's upload feed. - * - * @param mixed $videoID The ID of the video to retrieve. - * @throws Zend_Gdata_App_HttpException - * @return Zend_Gdata_YouTube_VideoEntry|null The video entry to be - * retrieved, or null if it was not found or the user requesting it - * did not have the appropriate permissions. - */ - public function getFullVideoEntry($videoId) - { - $uri = self::USER_URI . "/default/" . - self::UPLOADS_URI_SUFFIX . "/$videoId"; - return parent::getEntry($uri, 'Zend_Gdata_YouTube_VideoEntry'); - } - - /** - * Retrieves a feed of videos related to the specified video ID. - * - * @param string $videoId The videoId of interest - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_VideoFeed The feed of videos found at the - * specified URL. - */ - public function getRelatedVideoFeed($videoId = null, $location = null) - { - if ($videoId !== null) { - $uri = self::VIDEO_URI . "/" . $videoId . "/" . - self::RELATED_URI_SUFFIX; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_VideoFeed'); - } - - /** - * Retrieves a feed of video responses related to the specified video ID. - * - * @param string $videoId The videoId of interest - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_VideoFeed The feed of videos found at the - * specified URL. - */ - public function getVideoResponseFeed($videoId = null, $location = null) - { - if ($videoId !== null) { - $uri = self::VIDEO_URI . "/" . $videoId . "/" . - self::RESPONSES_URI_SUFFIX; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_VideoFeed'); - } - - /** - * Retrieves a feed of comments related to the specified video ID. - * - * @param string $videoId The videoId of interest - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_CommentFeed The feed of videos found at the - * specified URL. - */ - public function getVideoCommentFeed($videoId = null, $location = null) - { - if ($videoId !== null) { - $uri = self::VIDEO_URI . "/" . $videoId . "/comments"; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_CommentFeed'); - } - - /** - * Retrieves a feed of comments related to the specified video ID. - * - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_CommentFeed The feed of videos found at the - * specified URL. - */ - public function getTopRatedVideoFeed($location = null) - { - $standardFeedUri = self::STANDARD_TOP_RATED_URI; - - if ($this->getMajorProtocolVersion() == 2) { - $standardFeedUri = self::STANDARD_TOP_RATED_URI_V2; - } - - if ($location == null) { - $uri = $standardFeedUri; - } else if ($location instanceof Zend_Gdata_Query) { - if ($location instanceof Zend_Gdata_YouTube_VideoQuery) { - if (!isset($location->url)) { - $location->setFeedType('top rated'); - } - } - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_VideoFeed'); - } - - - /** - * Retrieves a feed of the most viewed videos. - * - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_VideoFeed The feed of videos found at the - * specified URL. - */ - public function getMostViewedVideoFeed($location = null) - { - $standardFeedUri = self::STANDARD_MOST_VIEWED_URI; - - if ($this->getMajorProtocolVersion() == 2) { - $standardFeedUri = self::STANDARD_MOST_VIEWED_URI_V2; - } - - if ($location == null) { - $uri = $standardFeedUri; - } else if ($location instanceof Zend_Gdata_Query) { - if ($location instanceof Zend_Gdata_YouTube_VideoQuery) { - if (!isset($location->url)) { - $location->setFeedType('most viewed'); - } - } - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_VideoFeed'); - } - - /** - * Retrieves a feed of recently featured videos. - * - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_VideoFeed The feed of videos found at the - * specified URL. - */ - public function getRecentlyFeaturedVideoFeed($location = null) - { - $standardFeedUri = self::STANDARD_RECENTLY_FEATURED_URI; - - if ($this->getMajorProtocolVersion() == 2) { - $standardFeedUri = self::STANDARD_RECENTLY_FEATURED_URI_V2; - } - - if ($location == null) { - $uri = $standardFeedUri; - } else if ($location instanceof Zend_Gdata_Query) { - if ($location instanceof Zend_Gdata_YouTube_VideoQuery) { - if (!isset($location->url)) { - $location->setFeedType('recently featured'); - } - } - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_VideoFeed'); - } - - /** - * Retrieves a feed of videos recently featured for mobile devices. - * These videos will have RTSP links in the $entry->mediaGroup->content - * - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_VideoFeed The feed of videos found at the - * specified URL. - */ - public function getWatchOnMobileVideoFeed($location = null) - { - $standardFeedUri = self::STANDARD_WATCH_ON_MOBILE_URI; - - if ($this->getMajorProtocolVersion() == 2) { - $standardFeedUri = self::STANDARD_WATCH_ON_MOBILE_URI_V2; - } - - if ($location == null) { - $uri = $standardFeedUri; - } else if ($location instanceof Zend_Gdata_Query) { - if ($location instanceof Zend_Gdata_YouTube_VideoQuery) { - if (!isset($location->url)) { - $location->setFeedType('watch on mobile'); - } - } - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_VideoFeed'); - } - - /** - * Retrieves a feed which lists a user's playlist - * - * @param string $user (optional) The username of interest - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_PlaylistListFeed The feed of playlists - */ - public function getPlaylistListFeed($user = null, $location = null) - { - if ($user !== null) { - $uri = self::USER_URI . '/' . $user . '/playlists'; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_PlaylistListFeed'); - } - - /** - * Retrieves a feed of videos in a particular playlist - * - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_PlaylistVideoFeed The feed of videos found at - * the specified URL. - */ - public function getPlaylistVideoFeed($location) - { - if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_PlaylistVideoFeed'); - } - - /** - * Retrieves a feed of a user's subscriptions - * - * @param string $user (optional) The username of interest - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_SubscriptionListFeed The feed of subscriptions - */ - public function getSubscriptionFeed($user = null, $location = null) - { - if ($user !== null) { - $uri = self::USER_URI . '/' . $user . '/subscriptions'; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_SubscriptionFeed'); - } - - /** - * Retrieves a feed of a user's contacts - * - * @param string $user (optional) The username of interest - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_ContactFeed The feed of contacts - */ - public function getContactFeed($user = null, $location = null) - { - if ($user !== null) { - $uri = self::USER_URI . '/' . $user . '/contacts'; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_ContactFeed'); - } - - /** - * Retrieves a user's uploads - * - * @param string $user (optional) The username of interest - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_VideoFeed The videos uploaded by the user - */ - public function getUserUploads($user = null, $location = null) - { - if ($user !== null) { - $uri = self::USER_URI . '/' . $user . '/' . - self::UPLOADS_URI_SUFFIX; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_VideoFeed'); - } - - /** - * Retrieves a user's favorites - * - * @param string $user (optional) The username of interest - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_VideoFeed The videos favorited by the user - */ - public function getUserFavorites($user = null, $location = null) - { - if ($user !== null) { - $uri = self::USER_URI . '/' . $user . '/' . - self::FAVORITES_URI_SUFFIX; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getFeed($uri, 'Zend_Gdata_YouTube_VideoFeed'); - } - - /** - * Retrieves a user's profile as an entry - * - * @param string $user (optional) The username of interest - * @param mixed $location (optional) The URL to query or a - * Zend_Gdata_Query object from which a URL can be determined - * @return Zend_Gdata_YouTube_UserProfileEntry The user profile entry - */ - public function getUserProfile($user = null, $location = null) - { - if ($user !== null) { - $uri = self::USER_URI . '/' . $user; - } else if ($location instanceof Zend_Gdata_Query) { - $uri = $location->getQueryUrl($this->getMajorProtocolVersion()); - } else { - $uri = $location; - } - return parent::getEntry($uri, 'Zend_Gdata_YouTube_UserProfileEntry'); - } - - /** - * Helper function for parsing a YouTube token response - * - * @param string $response The service response - * @throws Zend_Gdata_App_Exception - * @return array An array containing the token and URL - */ - public static function parseFormUploadTokenResponse($response) - { - // Load the feed as an XML DOMDocument object - @ini_set('track_errors', 1); - $doc = new DOMDocument(); - $doc = @Zend_Xml_Security::scan($response, $doc); - @ini_restore('track_errors'); - - if (!$doc) { - throw new Zend_Gdata_App_Exception( - "Zend_Gdata_YouTube::parseFormUploadTokenResponse - " . - "DOMDocument cannot parse XML: $php_errormsg"); - } - $responseElement = $doc->getElementsByTagName('response')->item(0); - - $urlText = null; - $tokenText = null; - if ($responseElement != null) { - $urlElement = - $responseElement->getElementsByTagName('url')->item(0); - $tokenElement = - $responseElement->getElementsByTagName('token')->item(0); - - if ($urlElement && $urlElement->hasChildNodes() && - $tokenElement && $tokenElement->hasChildNodes()) { - - $urlText = $urlElement->firstChild->nodeValue; - $tokenText = $tokenElement->firstChild->nodeValue; - } - } - - if ($tokenText != null && $urlText != null) { - return array('token' => $tokenText, 'url' => $urlText); - } else { - throw new Zend_Gdata_App_Exception( - 'Form upload token not found in response'); - } - } - - /** - * Retrieves a YouTube token - * - * @param Zend_Gdata_YouTube_VideoEntry $videoEntry The video entry - * @param string $url The location as a string URL - * @throws Zend_Gdata_App_Exception - * @return array An array containing a token and URL - */ - public function getFormUploadToken($videoEntry, - $url='https://gdata.youtube.com/action/GetUploadToken') - { - if ($url != null && is_string($url)) { - // $response is a Zend_Http_response object - $response = $this->post($videoEntry, $url); - return self::parseFormUploadTokenResponse($response->getBody()); - } else { - throw new Zend_Gdata_App_Exception( - 'Url must be provided as a string URL'); - } - } - - /** - * Retrieves the activity feed for users - * - * @param mixed $usernames A string identifying the usernames for which to - * retrieve activity for. This can also be a Zend_Gdata_Query - * object from which a URL can be determined. - * @throws Zend_Gdata_App_VersionException if using version less than 2. - * @return Zend_Gdata_YouTube_ActivityFeed - */ - public function getActivityForUser($username) - { - if ($this->getMajorProtocolVersion() == 1) { - throw new Zend_Gdata_App_VersionException('User activity feeds ' . - 'are not available in API version 1.'); - } - - $uri = null; - if ($username instanceof Zend_Gdata_Query) { - $uri = $username->getQueryUrl($this->getMajorProtocolVersion()); - } else { - if (count(explode(',', $username)) > - self::ACTIVITY_FEED_MAX_USERS) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Activity feed can only retrieve for activity for up to ' . - self::ACTIVITY_FEED_MAX_USERS . ' users per request'); - } - $uri = self::ACTIVITY_FEED_URI . '?author=' . $username; - } - - return parent::getFeed($uri, 'Zend_Gdata_YouTube_ActivityFeed'); - } - - /** - * Retrieve the activity of the currently authenticated users friend. - * - * @throws Zend_Gdata_App_Exception if not logged in. - * @return Zend_Gdata_YouTube_ActivityFeed - */ - public function getFriendActivityForCurrentUser() - { - if (!$this->isAuthenticated()) { - throw new Zend_Gdata_App_Exception('You must be authenticated to ' . - 'use the getFriendActivityForCurrentUser function in Zend_' . - 'Gdata_YouTube.'); - } - return parent::getFeed(self::FRIEND_ACTIVITY_FEED_URI, - 'Zend_Gdata_YouTube_ActivityFeed'); - } - - /** - * 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 Zend_Gdata_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'); - } - - /** - * Send a video message. - * - * Note: Either a Zend_Gdata_YouTube_VideoEntry or a valid video ID must - * be provided. - * - * @param string $body The body of the message - * @param Zend_Gdata_YouTube_VideoEntry (optional) The video entry to send - * @param string $videoId The id of the video to send - * @param string $recipientUserName The username of the recipient - * @throws Zend_Gdata_App_InvalidArgumentException if no valid - * Zend_Gdata_YouTube_VideoEntry or videoId were provided - * @return Zend_Gdata_YouTube_InboxEntry|null The - * Zend_Gdata_YouTube_Inbox_Entry representing the sent message. - * - */ - public function sendVideoMessage($body, $videoEntry = null, - $videoId = null, $recipientUserName) - { - if (!$videoId && !$videoEntry) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Expecting either a valid videoID or a videoEntry object in ' . - 'Zend_Gdata_YouTube->sendVideoMessage().'); - } - - $messageEntry = new Zend_Gdata_YouTube_InboxEntry(); - - if ($this->getMajorProtocolVersion() == null || - $this->getMajorProtocolVersion() == 1) { - - if (!$videoId) { - $videoId = $videoEntry->getVideoId(); - } elseif (strlen($videoId) < 12) { - //Append the full URI - $videoId = self::VIDEO_URI . '/' . $videoId; - } - - $messageEntry->setId($this->newId($videoId)); - // TODO there seems to be a bug where v1 inbox entries dont - // retain their description... - $messageEntry->setDescription( - new Zend_Gdata_YouTube_Extension_Description($body)); - - } else { - if (!$videoId) { - $videoId = $videoEntry->getVideoId(); - $videoId = substr($videoId, strrpos($videoId, ':')); - } - $messageEntry->setId($this->newId($videoId)); - $messageEntry->setSummary($this->newSummary($body)); - } - - $insertUrl = 'https://gdata.youtube.com/feeds/api/users/' . - $recipientUserName . '/inbox'; - $response = $this->insertEntry($messageEntry, $insertUrl, - 'Zend_Gdata_YouTube_InboxEntry'); - return $response; - } - - /** - * Post a comment in reply to an existing comment - * - * @param Zend_Gdata_YouTube_CommentEntry $commentEntry The comment entry - * to reply to - * @param string $commentText The text of the - * comment to post - * @return Zend_Gdata_YouTube_CommentEntry the posted comment - */ - public function replyToCommentEntry($commentEntry, $commentText) - { - $newComment = $this->newCommentEntry(); - $newComment->content = $this->newContent()->setText($commentText); - $commentId = $commentEntry->getId(); - $commentIdArray = explode(':', $commentId); - - // create a new link element - $inReplyToLinkHref = self::VIDEO_URI . '/' . $commentIdArray[3] . - '/comments/' . $commentIdArray[5]; - $inReplyToLink = $this->newLink($inReplyToLinkHref, - self::IN_REPLY_TO_SCHEME, $type="application/atom+xml"); - $links = $newComment->getLink(); - $links[] = $inReplyToLink; - $newComment->setLink($links); - $commentFeedPostUrl = self::VIDEO_URI . '/' . $commentIdArray[3] . - '/comments'; - return $this->insertEntry($newComment, - $commentFeedPostUrl, 'Zend_Gdata_YouTube_CommentEntry'); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/ActivityEntry.php b/library/vendor/Zend/Gdata/YouTube/ActivityEntry.php deleted file mode 100644 index 099de242c..000000000 --- a/library/vendor/Zend/Gdata/YouTube/ActivityEntry.php +++ /dev/null @@ -1,228 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_videoId !== null) { - $element->appendChild($this->_videoId->getDOM( - $element->ownerDocument)); - } - if ($this->_username !== null) { - $element->appendChild($this->_username->getDOM( - $element->ownerDocument)); - } - if ($this->_rating !== null) { - $element->appendChild($this->_rating->getDOM( - $element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('yt') . ':' . 'videoid': - $videoId = new Zend_Gdata_YouTube_Extension_VideoId(); - $videoId->transferFromDOM($child); - $this->_videoId = $videoId; - break; - case $this->lookupNamespace('yt') . ':' . 'username': - $username = new Zend_Gdata_YouTube_Extension_Username(); - $username->transferFromDOM($child); - $this->_username = $username; - break; - case $this->lookupNamespace('gd') . ':' . 'rating': - $rating = new Zend_Gdata_Extension_Rating(); - $rating->transferFromDOM($child); - $this->_rating = $rating; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Returns the video ID for this activity entry. - * - * @return null|Zend_Gdata_YouTube_Extension_VideoId - */ - public function getVideoId() - { - return $this->_videoId; - } - - /** - * Returns the username for this activity entry. - * - * @return null|Zend_Gdata_YouTube_Extension_Username - */ - public function getUsername() - { - return $this->_username; - } - - /** - * Returns the rating for this activity entry. - * - * @return null|Zend_Gdata_YouTube_Extension_Rating - */ - public function getRating() - { - return $this->_rating; - } - - /** - * Return the value of the rating for this video entry. - * - * Convenience method to save needless typing. - * - * @return integer|null The value of the rating that was created, if found. - */ - public function getRatingValue() - { - $rating = $this->_rating; - if ($rating) { - return $rating->getValue(); - } - return null; - } - - /** - * Return the activity type that was performed. - * - * Convenience method that inspects category where scheme is - * http://gdata.youtube.com/schemas/2007/userevents.cat. - * - * @return string|null The activity category if found. - */ - public function getActivityType() - { - $categories = $this->getCategory(); - foreach($categories as $category) { - if ($category->getScheme() == self::ACTIVITY_CATEGORY_SCHEME) { - return $category->getTerm(); - } - } - return null; - } - - /** - * Convenience method to quickly get access to the author of the activity - * - * @return string The author of the activity - */ - public function getAuthorName() - { - $authors = $this->getAuthor(); - return $authors[0]->getName()->getText(); - } -} diff --git a/library/vendor/Zend/Gdata/YouTube/ActivityFeed.php b/library/vendor/Zend/Gdata/YouTube/ActivityFeed.php deleted file mode 100644 index 474a1081f..000000000 --- a/library/vendor/Zend/Gdata/YouTube/ActivityFeed.php +++ /dev/null @@ -1,64 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/CommentEntry.php b/library/vendor/Zend/Gdata/YouTube/CommentEntry.php deleted file mode 100644 index 491f7e535..000000000 --- a/library/vendor/Zend/Gdata/YouTube/CommentEntry.php +++ /dev/null @@ -1,58 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/CommentFeed.php b/library/vendor/Zend/Gdata/YouTube/CommentFeed.php deleted file mode 100644 index 81647bdcd..000000000 --- a/library/vendor/Zend/Gdata/YouTube/CommentFeed.php +++ /dev/null @@ -1,64 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/ContactEntry.php b/library/vendor/Zend/Gdata/YouTube/ContactEntry.php deleted file mode 100644 index 039bca63e..000000000 --- a/library/vendor/Zend/Gdata/YouTube/ContactEntry.php +++ /dev/null @@ -1,134 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_status != null) { - $element->appendChild($this->_status->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('yt') . ':' . 'status': - $status = new Zend_Gdata_YouTube_Extension_Status(); - $status->transferFromDOM($child); - $this->_status = $status; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Sets the status - * - * @param Zend_Gdata_YouTube_Extension_Status $status The status - * @return Zend_Gdata_YouTube_ContactEntry Provides a fluent interface - */ - public function setStatus($status = null) - { - $this->_status = $status; - return $this; - } - - /** - * Returns the status - * - * @return Zend_Gdata_YouTube_Extension_Status The status - */ - public function getStatus() - { - return $this->_status; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/ContactFeed.php b/library/vendor/Zend/Gdata/YouTube/ContactFeed.php deleted file mode 100644 index 3d93d941a..000000000 --- a/library/vendor/Zend/Gdata/YouTube/ContactFeed.php +++ /dev/null @@ -1,66 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/AboutMe.php b/library/vendor/Zend/Gdata/YouTube/Extension/AboutMe.php deleted file mode 100644 index ee8a7a668..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/AboutMe.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Age.php b/library/vendor/Zend/Gdata/YouTube/Extension/Age.php deleted file mode 100644 index 272042f95..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Age.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Books.php b/library/vendor/Zend/Gdata/YouTube/Extension/Books.php deleted file mode 100644 index 2a75c1806..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Books.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Company.php b/library/vendor/Zend/Gdata/YouTube/Extension/Company.php deleted file mode 100644 index 06b07d6a0..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Company.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Control.php b/library/vendor/Zend/Gdata/YouTube/Extension/Control.php deleted file mode 100755 index ce3dc0c78..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Control.php +++ /dev/null @@ -1,131 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($draft); - $this->_state = $state; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_state != null) { - $element->appendChild($this->_state->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('yt') . ':' . 'state': - $state = new Zend_Gdata_YouTube_Extension_State(); - $state->transferFromDOM($child); - $this->_state = $state; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value for this element's state attribute. - * - * @return Zend_Gdata_YouTube_Extension_State The state element. - */ - public function getState() - { - return $this->_state; - } - - /** - * Set the value for this element's state attribute. - * - * @param Zend_Gdata_YouTube_Extension_State $value The desired value for this attribute. - * @return Zend_YouTube_Extension_Control The element being modified. - */ - public function setState($value) - { - $this->_state = $value; - return $this; - } - - /** - * Get the value of this element's state attribute. - * - * @return string The state's text value - */ - public function getStateValue() - { - return $this->getState()->getText(); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/CountHint.php b/library/vendor/Zend/Gdata/YouTube/Extension/CountHint.php deleted file mode 100755 index 6b4764556..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/CountHint.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Description.php b/library/vendor/Zend/Gdata/YouTube/Extension/Description.php deleted file mode 100644 index 9508332e2..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Description.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Duration.php b/library/vendor/Zend/Gdata/YouTube/Extension/Duration.php deleted file mode 100644 index 117fc082c..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Duration.php +++ /dev/null @@ -1,125 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_seconds = $seconds; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_seconds !== null) { - $element->setAttribute('seconds', $this->_seconds); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and valueare - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'seconds': - $this->_seconds = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's seconds attribute. - * - * @return int The value associated with this attribute. - */ - public function getSeconds() - { - return $this->_seconds; - } - - /** - * Set the value for this element's seconds attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_YouTube_Extension_Duration The element being modified. - */ - public function setSeconds($value) - { - $this->_seconds = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - * - * @return string The duration in seconds - */ - public function __toString() - { - return $this->_seconds; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/FirstName.php b/library/vendor/Zend/Gdata/YouTube/Extension/FirstName.php deleted file mode 100644 index 258079a62..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/FirstName.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Gender.php b/library/vendor/Zend/Gdata/YouTube/Extension/Gender.php deleted file mode 100644 index ebfa2df52..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Gender.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Hobbies.php b/library/vendor/Zend/Gdata/YouTube/Extension/Hobbies.php deleted file mode 100644 index 027a452f4..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Hobbies.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Hometown.php b/library/vendor/Zend/Gdata/YouTube/Extension/Hometown.php deleted file mode 100644 index 05a9d8a6e..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Hometown.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/LastName.php b/library/vendor/Zend/Gdata/YouTube/Extension/LastName.php deleted file mode 100644 index b79390b25..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/LastName.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Link.php b/library/vendor/Zend/Gdata/YouTube/Extension/Link.php deleted file mode 100755 index fa5973f03..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Link.php +++ /dev/null @@ -1,131 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($href, $rel, $type, $hrefLang, $title, $length); - $this->_token = $token; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_token != null) { - $element->appendChild($this->_token->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them as members of this entry based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('yt') . ':' . 'token': - $token = new Zend_Gdata_YouTube_Extension_Token(); - $token->transferFromDOM($child); - $this->_token = $token; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the value for this element's token attribute. - * - * @return Zend_Gdata_YouTube_Extension_Token The token element. - */ - public function getToken() - { - return $this->_token; - } - - /** - * Set the value for this element's token attribute. - * - * @param Zend_Gdata_YouTube_Extension_Token $value The desired value for this attribute. - * @return Zend_YouTube_Extension_Link The element being modified. - */ - public function setToken($value) - { - $this->_token = $value; - return $this; - } - - /** - * Get the value of this element's token attribute. - * - * @return string The token's text value - */ - public function getTokenValue() - { - return $this->getToken()->getText(); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Location.php b/library/vendor/Zend/Gdata/YouTube/Extension/Location.php deleted file mode 100644 index ef3af9ce4..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Location.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/MediaContent.php b/library/vendor/Zend/Gdata/YouTube/Extension/MediaContent.php deleted file mode 100755 index f4addc4c0..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/MediaContent.php +++ /dev/null @@ -1,119 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_format!= null) { - $element->setAttributeNS($this->lookupNamespace('yt'), 'yt:format', $this->_format); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - $absoluteAttrName = $attribute->namespaceURI . ':' . $attribute->localName; - if ($absoluteAttrName == $this->lookupNamespace('yt') . ':' . 'format') { - $this->_format = $attribute->nodeValue; - } else { - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Returns the format of the media - * Optional. - * - * @return int The format of the media - */ - public function getFormat() - { - return $this->_format; - } - - /** - * Sets the format of the media - * - * @param int $value Format of the media - * @return Zend_Gdata_YouTube_Extension_MediaContent Provides a fluent interface - * - */ - public function setFormat($value) - { - $this->_format = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/MediaCredit.php b/library/vendor/Zend/Gdata/YouTube/Extension/MediaCredit.php deleted file mode 100644 index 20ad595ec..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/MediaCredit.php +++ /dev/null @@ -1,188 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_text = $text; - $this->_role = $role; - $this->_scheme = $scheme; - $this->_yttype = $yttype; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_role !== null) { - $element->setAttribute('role', $this->_role); - } - if ($this->_scheme !== null) { - $element->setAttribute('scheme', $this->_scheme); - } - if ($this->_yttype !== null) { - $element->setAttributeNS('http://gdata.youtube.com/schemas/2007', - 'yt:type', $this->_yttype); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'role': - $this->_role = $attribute->nodeValue; - break; - case 'scheme': - $this->_scheme = $attribute->nodeValue; - break; - case 'type': - $this->_yttype = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getRole() - { - return $this->_role; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaCredit Provides a fluent - * interface - */ - public function setRole($value) - { - $this->_role = $value; - return $this; - } - - /** - * @return string - */ - public function getScheme() - { - return $this->_scheme; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaCredit Provides a fluent - * interface - */ - public function setScheme($value) - { - $this->_scheme = $value; - return $this; - } - - /** - * @return string - */ - public function getYTtype() - { - return $this->_yttype; - } - - /** - * @param string $value - * @return Zend_Gdata_Media_Extension_MediaCredit Provides a fluent - * interface - */ - public function setYTtype($value) - { - $this->_yttype = $value; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/MediaGroup.php b/library/vendor/Zend/Gdata/YouTube/Extension/MediaGroup.php deleted file mode 100755 index bdbf2c40b..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/MediaGroup.php +++ /dev/null @@ -1,328 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_duration !== null) { - $element->appendChild( - $this->_duration->getDOM($element->ownerDocument)); - } - if ($this->_private !== null) { - $element->appendChild( - $this->_private->getDOM($element->ownerDocument)); - } - if ($this->_videoid != null) { - $element->appendChild( - $this->_videoid->getDOM($element->ownerDocument)); - } - if ($this->_uploaded != null) { - $element->appendChild( - $this->_uploaded->getDOM($element->ownerDocument)); - } - if ($this->_mediacredit != null) { - $element->appendChild( - $this->_mediacredit->getDOM($element->ownerDocument)); - } - if ($this->_mediarating != null) { - $element->appendChild( - $this->_mediarating->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('media') . ':' . 'content': - $content = new Zend_Gdata_YouTube_Extension_MediaContent(); - $content->transferFromDOM($child); - $this->_content[] = $content; - break; - case $this->lookupNamespace('media') . ':' . 'rating': - $mediarating = new Zend_Gdata_YouTube_Extension_MediaRating(); - $mediarating->transferFromDOM($child); - $this->_mediarating = $mediarating; - break; - case $this->lookupNamespace('media') . ':' . 'credit': - $mediacredit = new Zend_Gdata_YouTube_Extension_MediaCredit(); - $mediacredit->transferFromDOM($child); - $this->_mediacredit = $mediacredit; - break; - case $this->lookupNamespace('yt') . ':' . 'duration': - $duration = new Zend_Gdata_YouTube_Extension_Duration(); - $duration->transferFromDOM($child); - $this->_duration = $duration; - break; - case $this->lookupNamespace('yt') . ':' . 'private': - $private = new Zend_Gdata_YouTube_Extension_Private(); - $private->transferFromDOM($child); - $this->_private = $private; - break; - case $this->lookupNamespace('yt') . ':' . 'videoid': - $videoid = new Zend_Gdata_YouTube_Extension_VideoId(); - $videoid ->transferFromDOM($child); - $this->_videoid = $videoid; - break; - case $this->lookupNamespace('yt') . ':' . 'uploaded': - $uploaded = new Zend_Gdata_YouTube_Extension_Uploaded(); - $uploaded ->transferFromDOM($child); - $this->_uploaded = $uploaded; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Returns the duration value of this element - * - * @return Zend_Gdata_YouTube_Extension_Duration - */ - public function getDuration() - { - return $this->_duration; - } - - /** - * Sets the duration value of this element - * - * @param Zend_Gdata_YouTube_Extension_Duration $value The duration value - * @return Zend_Gdata_YouTube_Extension_MediaGroup Provides a fluent - * interface - */ - public function setDuration($value) - { - $this->_duration = $value; - return $this; - } - - /** - * Returns the videoid value of this element - * - * @return Zend_Gdata_YouTube_Extension_VideoId - */ - public function getVideoId() - { - return $this->_videoid; - } - - /** - * Sets the videoid value of this element - * - * @param Zend_Gdata_YouTube_Extension_VideoId $value The video id value - * @return Zend_Gdata_YouTube_Extension_MediaGroup Provides a fluent - * interface - */ - public function setVideoId($value) - { - $this->_videoid = $value; - return $this; - } - - /** - * Returns the yt:uploaded element - * - * @return Zend_Gdata_YouTube_Extension_Uploaded - */ - public function getUploaded() - { - return $this->_uploaded; - } - - /** - * Sets the yt:uploaded element - * - * @param Zend_Gdata_YouTube_Extension_Uploaded $value The uploaded value - * @return Zend_Gdata_YouTube_Extension_MediaGroup Provides a fluent - * interface - */ - public function setUploaded($value) - { - $this->_uploaded = $value; - return $this; - } - - /** - * Returns the private value of this element - * - * @return Zend_Gdata_YouTube_Extension_Private - */ - public function getPrivate() - { - return $this->_private; - } - - /** - * Sets the private value of this element - * - * @param Zend_Gdata_YouTube_Extension_Private $value The private value - * @return Zend_Gdata_YouTube_Extension_MediaGroup Provides a fluent - * interface - */ - public function setPrivate($value) - { - $this->_private = $value; - return $this; - } - - /** - * Returns the rating value of this element - * - * @return Zend_Gdata_YouTube_Extension_MediaRating - */ - public function getMediaRating() - { - return $this->_mediarating; - } - - /** - * Sets the media:rating value of this element - * - * @param Zend_Gdata_YouTube_Extension_MediaRating $value The rating element - * @return Zend_Gdata_YouTube_Extension_MediaGroup Provides a fluent - * interface - */ - public function setMediaRating($value) - { - $this->_mediarating = $value; - return $this; - } - - /** - * Returns the media:credit value of this element - * - * @return Zend_Gdata_YouTube_Extension_MediaCredit - */ - public function getMediaCredit() - { - return $this->_mediacredit; - } - - /** - * Sets the media:credit value of this element - * - * @param Zend_Gdata_YouTube_Extension_MediaCredit $value The credit element - * @return Zend_Gdata_YouTube_Extension_MediaGroup Provides a fluent - * interface - */ - public function setMediaCredit($value) - { - $this->_mediacredit = $value; - return $this; - } -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/MediaRating.php b/library/vendor/Zend/Gdata/YouTube/Extension/MediaRating.php deleted file mode 100755 index c31491485..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/MediaRating.php +++ /dev/null @@ -1,149 +0,0 @@ -registerAllNamespaces(Zend_Gdata_Media::$namespaces); - parent::__construct(); - $this->_scheme = $scheme; - $this->_country = $country; - $this->_text = $text; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_scheme !== null) { - $element->setAttribute('scheme', $this->_scheme); - } - if ($this->_country != null) { - $element->setAttribute('country', $this->_country); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'scheme': - $this->_scheme = $attribute->nodeValue; - break; - case 'country': - $this->_country = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * @return string - */ - public function getScheme() - { - return $this->_scheme; - } - - /** - * @param string $value - * @return Zend_Gdata_YouTube_Extension_MediaRating Provides a fluent interface - */ - public function setScheme($value) - { - $this->_scheme = $value; - return $this; - } - - /** - * @return string - */ - public function getCountry() - { - return $this->_country; - } - - /** - * @param string $value - * @return Zend_Gdata_YouTube_Extension_MediaRating Provides a fluent interface - */ - public function setCountry($value) - { - $this->_country = $value; - return $this; - } - - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Movies.php b/library/vendor/Zend/Gdata/YouTube/Extension/Movies.php deleted file mode 100644 index 9e052bd12..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Movies.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Music.php b/library/vendor/Zend/Gdata/YouTube/Extension/Music.php deleted file mode 100644 index 56c5f0d51..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Music.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/NoEmbed.php b/library/vendor/Zend/Gdata/YouTube/Extension/NoEmbed.php deleted file mode 100644 index 7c0f5bf22..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/NoEmbed.php +++ /dev/null @@ -1,53 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Occupation.php b/library/vendor/Zend/Gdata/YouTube/Extension/Occupation.php deleted file mode 100644 index 78b20595d..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Occupation.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/PlaylistId.php b/library/vendor/Zend/Gdata/YouTube/Extension/PlaylistId.php deleted file mode 100644 index 8a46138d0..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/PlaylistId.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/PlaylistTitle.php b/library/vendor/Zend/Gdata/YouTube/Extension/PlaylistTitle.php deleted file mode 100644 index 3c8244432..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/PlaylistTitle.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Position.php b/library/vendor/Zend/Gdata/YouTube/Extension/Position.php deleted file mode 100644 index bbf283ba7..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Position.php +++ /dev/null @@ -1,89 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $value; - } - - /** - * Get the value for the position in the playlist - * - * @return int The 1-based position in the playlist - */ - public function getValue() - { - return $this->_text; - } - - /** - * Set the value for the position in the playlist - * - * @param int $value The 1-based position in the playlist - * @return Zend_Gdata_Extension_Visibility The element being modified - */ - public function setValue($value) - { - $this->_text = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - * - * @return string - */ - public function __toString() - { - return $this->getValue(); - } - -} - diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Private.php b/library/vendor/Zend/Gdata/YouTube/Extension/Private.php deleted file mode 100755 index a10ca53ee..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Private.php +++ /dev/null @@ -1,80 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and valueare - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - parent::takeAttributeFromDOM($attribute); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/QueryString.php b/library/vendor/Zend/Gdata/YouTube/Extension/QueryString.php deleted file mode 100644 index c0a746da5..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/QueryString.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Racy.php b/library/vendor/Zend/Gdata/YouTube/Extension/Racy.php deleted file mode 100644 index f0040b083..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Racy.php +++ /dev/null @@ -1,123 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_state = $state; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_state !== null) { - $element->setAttribute('state', $this->_state); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and value are - * stored in an array. - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'state': - $this->_state = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's state attribute. - * - * @return bool The value associated with this attribute. - */ - public function getState() - { - return $this->_state; - } - - /** - * Set the value for this element's state attribute. - * - * @param bool $value The desired value for this attribute. - * @return Zend_Gdata_YouTube_Extension_Racy The element being modified. - */ - public function setState($value) - { - $this->_state = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - */ - public function __toString() - { - return $this->_state; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Recorded.php b/library/vendor/Zend/Gdata/YouTube/Extension/Recorded.php deleted file mode 100644 index 7f05f9ac7..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Recorded.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Relationship.php b/library/vendor/Zend/Gdata/YouTube/Extension/Relationship.php deleted file mode 100644 index e2ac64b63..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Relationship.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/ReleaseDate.php b/library/vendor/Zend/Gdata/YouTube/Extension/ReleaseDate.php deleted file mode 100644 index 6351fda36..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/ReleaseDate.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/School.php b/library/vendor/Zend/Gdata/YouTube/Extension/School.php deleted file mode 100644 index e9598e6f9..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/School.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/State.php b/library/vendor/Zend/Gdata/YouTube/Extension/State.php deleted file mode 100644 index a2acbddae..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/State.php +++ /dev/null @@ -1,192 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $explanation; - $this->_name = $name; - $this->_reasonCode = $reasonCode; - $this->_helpUrl = $reasonCode; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_name !== null) { - $element->setAttribute('name', $this->_name); - } - if ($this->_reasonCode !== null) { - $element->setAttribute('reasonCode', $this->_reasonCode); - } - if ($this->_helpUrl !== null) { - $element->setAttribute('helpUrl', $this->_helpUrl); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and valueare - * stored in an array. - * TODO: Convert attributes to proper types - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'name': - $this->_name = $attribute->nodeValue; - break; - case 'reasonCode': - $this->_reasonCode = $attribute->nodeValue; - break; - case 'helpUrl': - $this->_helpUrl = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's name attribute. - * - * @return int The value associated with this attribute. - */ - public function getName() - { - return $this->_name; - } - - /** - * Set the value for this element's name attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_YouTube_Extension_State The element being modified. - */ - public function setName($value) - { - $this->_name = $value; - return $this; - } - - /** - * Get the value for this element's reasonCode attribute. - * - * @return int The value associated with this attribute. - */ - public function getReasonCode() - { - return $this->_reasonCode; - } - - /** - * Set the value for this element's reasonCode attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_YouTube_Extension_State The element being modified. - */ - public function setReasonCode($value) - { - $this->_reasonCode = $value; - return $this; - } - - /** - * Get the value for this element's helpUrl attribute. - * - * @return int The value associated with this attribute. - */ - public function getHelpUrl() - { - return $this->_helpUrl; - } - - /** - * Set the value for this element's helpUrl attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_YouTube_Extension_State The element being modified. - */ - public function setHelpUrl($value) - { - $this->_helpUrl = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - * - * @return string - */ - public function __toString() - { - return $this->_text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Statistics.php b/library/vendor/Zend/Gdata/YouTube/Extension/Statistics.php deleted file mode 100644 index 4db16ca30..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Statistics.php +++ /dev/null @@ -1,308 +0,0 @@ - tag appears within a - * user profile entry. - * - * @var integer - */ - protected $_videoWatchCount = null; - - /** - * When the viewCount attribute refers to a video entry, the attribute - * specifies the number of times that the video has been viewed. - * When the viewCount attribute refers to a user profile, the attribute - * specifies the number of times that the user's profile has been - * viewed. - * - * @var integer - */ - protected $_viewCount = null; - - /** - * The subscriberCount attribute specifies the number of YouTube users - * who have subscribed to a particular user's YouTube channel. - * The subscriberCount attribute is only specified when the - * tag appears within a user profile entry. - * - * @var integer - */ - protected $_subscriberCount = null; - - /** - * The lastWebAccess attribute indicates the most recent time that - * a particular user used YouTube. - * - * @var string - */ - protected $_lastWebAccess = null; - - /** - * The favoriteCount attribute specifies the number of YouTube users - * who have added a video to their list of favorite videos. The - * favoriteCount attribute is only specified when the - * tag appears within a video entry. - * - * @var integer - */ - protected $_favoriteCount = null; - - /** - * Constructs a new Zend_Gdata_YouTube_Extension_Statistics object. - * @param string $viewCount(optional) The viewCount value - * @param string $videoWatchCount(optional) The videoWatchCount value - * @param string $subscriberCount(optional) The subscriberCount value - * @param string $lastWebAccess(optional) The lastWebAccess value - * @param string $favoriteCount(optional) The favoriteCount value - */ - public function __construct($viewCount = null, $videoWatchCount = null, - $subscriberCount = null, $lastWebAccess = null, - $favoriteCount = null) - { - $this->registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_viewCount = $viewCount; - $this->_videoWatchCount = $videoWatchCount; - $this->_subscriberCount = $subscriberCount; - $this->_lastWebAccess = $lastWebAccess; - $this->_favoriteCount = $favoriteCount; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_videoWatchCount !== null) { - $element->setAttribute('watchCount', $this->_videoWatchCount); - } - if ($this->_viewCount !== null) { - $element->setAttribute('viewCount', $this->_viewCount); - } - if ($this->_subscriberCount !== null) { - $element->setAttribute('subscriberCount', - $this->_subscriberCount); - } - if ($this->_lastWebAccess !== null) { - $element->setAttribute('lastWebAccess', - $this->_lastWebAccess); - } - if ($this->_favoriteCount !== null) { - $element->setAttribute('favoriteCount', - $this->_favoriteCount); - } - return $element; - } - - /** - * Given a DOMNode representing an attribute, tries to map the data into - * instance members. If no mapping is defined, the name and valueare - * stored in an array. - * TODO: Convert attributes to proper types - * - * @param DOMNode $attribute The DOMNode attribute needed to be handled - */ - protected function takeAttributeFromDOM($attribute) - { - switch ($attribute->localName) { - case 'videoWatchCount': - $this->_videoWatchCount = $attribute->nodeValue; - break; - case 'viewCount': - $this->_viewCount = $attribute->nodeValue; - break; - case 'subscriberCount': - $this->_subscriberCount = $attribute->nodeValue; - break; - case 'lastWebAccess': - $this->_lastWebAccess = $attribute->nodeValue; - break; - case 'favoriteCount': - $this->_favoriteCount = $attribute->nodeValue; - break; - default: - parent::takeAttributeFromDOM($attribute); - } - } - - /** - * Get the value for this element's viewCount attribute. - * - * @return int The value associated with this attribute. - */ - public function getViewCount() - { - return $this->_viewCount; - } - - /** - * Set the value for this element's viewCount attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_YouTube_Extension_Statistics The element being - * modified. - */ - public function setViewCount($value) - { - $this->_viewCount = $value; - return $this; - } - - /** - * Get the value for this element's videoWatchCount attribute. - * - * @return int The value associated with this attribute. - */ - public function getVideoWatchCount() - { - return $this->_videoWatchCount; - } - - /** - * Set the value for this element's videoWatchCount attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_YouTube_Extension_Statistics The element being - * modified. - */ - public function setVideoWatchCount($value) - { - $this->_videoWatchCount = $value; - return $this; - } - - /** - * Get the value for this element's subscriberCount attribute. - * - * @return int The value associated with this attribute. - */ - public function getSubscriberCount() - { - return $this->_subscriberCount; - } - - /** - * Set the value for this element's subscriberCount attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_YouTube_Extension_Statistics The element being - * modified. - */ - public function setSubscriberCount($value) - { - $this->_subscriberCount = $value; - return $this; - } - - /** - * Get the value for this element's lastWebAccess attribute. - * - * @return int The value associated with this attribute. - */ - public function getLastWebAccess() - { - return $this->_lastWebAccess; - } - - /** - * Set the value for this element's lastWebAccess attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_YouTube_Extension_Statistics The element being - * modified. - */ - public function setLastWebAccess($value) - { - $this->_lastWebAccess = $value; - return $this; - } - - /** - * Get the value for this element's favoriteCount attribute. - * - * @return int The value associated with this attribute. - */ - public function getFavoriteCount() - { - return $this->_favoriteCount; - } - - /** - * Set the value for this element's favoriteCount attribute. - * - * @param int $value The desired value for this attribute. - * @return Zend_Gdata_YouTube_Extension_Statistics The element being - * modified. - */ - public function setFavoriteCount($value) - { - $this->_favoriteCount = $value; - return $this; - } - - /** - * Magic toString method allows using this directly via echo - * Works best in PHP >= 4.2.0 - * - * @return string - */ - public function __toString() - { - return 'View Count=' . $this->_viewCount . - ' VideoWatchCount=' . $this->_videoWatchCount . - ' SubscriberCount=' . $this->_subscriberCount . - ' LastWebAccess=' . $this->_lastWebAccess . - ' FavoriteCount=' . $this->_favoriteCount; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Status.php b/library/vendor/Zend/Gdata/YouTube/Extension/Status.php deleted file mode 100644 index 16fd9e8bc..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Status.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Token.php b/library/vendor/Zend/Gdata/YouTube/Extension/Token.php deleted file mode 100755 index fc217bf7b..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Token.php +++ /dev/null @@ -1,69 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - return $element; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Uploaded.php b/library/vendor/Zend/Gdata/YouTube/Extension/Uploaded.php deleted file mode 100644 index 4a7f1cce0..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Uploaded.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/Username.php b/library/vendor/Zend/Gdata/YouTube/Extension/Username.php deleted file mode 100644 index 7ab5d0c77..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/Username.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/Extension/VideoId.php b/library/vendor/Zend/Gdata/YouTube/Extension/VideoId.php deleted file mode 100644 index 376f0e3b3..000000000 --- a/library/vendor/Zend/Gdata/YouTube/Extension/VideoId.php +++ /dev/null @@ -1,50 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct(); - $this->_text = $text; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/InboxEntry.php b/library/vendor/Zend/Gdata/YouTube/InboxEntry.php deleted file mode 100644 index 926dffbd7..000000000 --- a/library/vendor/Zend/Gdata/YouTube/InboxEntry.php +++ /dev/null @@ -1,274 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_description != null) { - $element->appendChild( - $this->_description->getDOM($element->ownerDocument)); - } - if ($this->_rating != null) { - $element->appendChild( - $this->_rating->getDOM($element->ownerDocument)); - } - if ($this->_statistics != null) { - $element->appendChild( - $this->_statistics->getDOM($element->ownerDocument)); - } - if ($this->_comments != null) { - $element->appendChild( - $this->_comments->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'comments': - $comments = new Zend_Gdata_Extension_Comments(); - $comments->transferFromDOM($child); - $this->_comments = $comments; - break; - case $this->lookupNamespace('gd') . ':' . 'rating': - $rating = new Zend_Gdata_Extension_Rating(); - $rating->transferFromDOM($child); - $this->_rating = $rating; - break; - case $this->lookupNamespace('yt') . ':' . 'description': - $description = new Zend_Gdata_YouTube_Extension_Description(); - $description->transferFromDOM($child); - $this->_description = $description; - break; - case $this->lookupNamespace('yt') . ':' . 'statistics': - $statistics = new Zend_Gdata_YouTube_Extension_Statistics(); - $statistics->transferFromDOM($child); - $this->_statistics = $statistics; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Get the yt:description - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_Description|null - */ - public function getDescription() - { - if ($this->getMajorProtocolVersion() == 2) { - throw new Zend_Gdata_App_VersionException('The getDescription ' . - ' method is only supported in version 1 of the YouTube ' . - 'API.'); - } else { - return $this->_description; - } - } - - /** - * Sets the yt:description element for a new inbox entry. - * - * @param Zend_Gdata_YouTube_Extension_Description $description The - * description. - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_InboxEntry Provides a fluent interface - */ - public function setDescription($description = null) - { - if ($this->getMajorProtocolVersion() == 2) { - throw new Zend_Gdata_App_VersionException('The setDescription ' . - ' method is only supported in version 1 of the YouTube ' . - 'API.'); - } else { - $this->_description = $description; - return $this; - } - } - - /** - * Get the gd:rating element for the inbox entry - * - * @return Zend_Gdata_Extension_Rating|null - */ - public function getRating() - { - return $this->_rating; - } - - /** - * Sets the gd:rating element for the inbox entry - * - * @param Zend_Gdata_Extension_Rating $rating The rating for the video in - * the message - * @return Zend_Gdata_YouTube_InboxEntry Provides a fluent interface - */ - public function setRating($rating = null) - { - $this->_rating = $rating; - return $this; - } - - /** - * Get the gd:comments element of the inbox entry. - * - * @return Zend_Gdata_Extension_Comments|null - */ - public function getComments() - { - return $this->_comments; - } - - /** - * Sets the gd:comments element for the inbox entry - * - * @param Zend_Gdata_Extension_Comments $comments The comments feed link - * @return Zend_Gdata_YouTube_InboxEntry Provides a fluent interface - */ - public function setComments($comments = null) - { - $this->_comments = $comments; - return $this; - } - - /** - * Get the yt:statistics element for the inbox entry - * - * @return Zend_Gdata_YouTube_Extension_Statistics|null - */ - public function getStatistics() - { - return $this->_statistics; - } - - /** - * Sets the yt:statistics element for the inbox entry - * - * @param Zend_Gdata_YouTube_Extension_Statistics $statistics The - * statistics element for the video in the message - * @return Zend_Gdata_YouTube_InboxEntry Provides a fluent interface - */ - public function setStatistics($statistics = null) - { - $this->_statistics = $statistics; - return $this; - } - - -} diff --git a/library/vendor/Zend/Gdata/YouTube/InboxFeed.php b/library/vendor/Zend/Gdata/YouTube/InboxFeed.php deleted file mode 100644 index 1f2b7d39b..000000000 --- a/library/vendor/Zend/Gdata/YouTube/InboxFeed.php +++ /dev/null @@ -1,66 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/MediaEntry.php b/library/vendor/Zend/Gdata/YouTube/MediaEntry.php deleted file mode 100755 index 59c8ed18e..000000000 --- a/library/vendor/Zend/Gdata/YouTube/MediaEntry.php +++ /dev/null @@ -1,78 +0,0 @@ -namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('media') . ':' . 'group': - $mediaGroup = new Zend_Gdata_YouTube_Extension_MediaGroup(); - $mediaGroup->transferFromDOM($child); - $this->_mediaGroup = $mediaGroup; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/PlaylistListEntry.php b/library/vendor/Zend/Gdata/YouTube/PlaylistListEntry.php deleted file mode 100644 index a3873cf5b..000000000 --- a/library/vendor/Zend/Gdata/YouTube/PlaylistListEntry.php +++ /dev/null @@ -1,292 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_description != null) { - $element->appendChild($this->_description->getDOM($element->ownerDocument)); - } - if ($this->_countHint != null) { - $element->appendChild($this->_countHint->getDOM($element->ownerDocument)); - } - if ($this->_playlistId != null) { - $element->appendChild($this->_playlistId->getDOM($element->ownerDocument)); - } - if ($this->_feedLink != null) { - foreach ($this->_feedLink as $feedLink) { - $element->appendChild($feedLink->getDOM($element->ownerDocument)); - } - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('yt') . ':' . 'description': - $description = new Zend_Gdata_YouTube_Extension_Description(); - $description->transferFromDOM($child); - $this->_description = $description; - break; - case $this->lookupNamespace('yt') . ':' . 'countHint': - $countHint = new Zend_Gdata_YouTube_Extension_CountHint(); - $countHint->transferFromDOM($child); - $this->_countHint = $countHint; - break; - case $this->lookupNamespace('yt') . ':' . 'playlistId': - $playlistId = new Zend_Gdata_YouTube_Extension_PlaylistId(); - $playlistId->transferFromDOM($child); - $this->_playlistId = $playlistId; - break; - case $this->lookupNamespace('gd') . ':' . 'feedLink': - $feedLink = new Zend_Gdata_Extension_FeedLink(); - $feedLink->transferFromDOM($child); - $this->_feedLink[] = $feedLink; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Sets the description relating to the playlist. - * - * @deprecated Deprecated as of version 2 of the YouTube API. - * @param Zend_Gdata_YouTube_Extension_Description $description The description relating to the video - * @return Zend_Gdata_YouTube_PlaylistListEntry Provides a fluent interface - */ - public function setDescription($description = null) - { - if ($this->getMajorProtocolVersion() >= 2) { - $this->setSummary($description); - } else { - $this->_description = $description; - } - return $this; - } - - /** - * Returns the description relating to the video. - * - * @return Zend_Gdata_YouTube_Extension_Description The description - * relating to the video - */ - public function getDescription() - { - if ($this->getMajorProtocolVersion() >= 2) { - return $this->getSummary(); - } else { - return $this->_description; - } - } - - /** - * Returns the countHint relating to the playlist. - * - * The countHint is the number of videos on a playlist. - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_CountHint The count of videos on - * a playlist. - */ - public function getCountHint() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The yt:countHint ' . - 'element is not supported in versions earlier than 2.'); - } else { - return $this->_countHint; - } - } - - /** - * Returns the Id relating to the playlist. - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_PlaylistId The id of this playlist. - */ - public function getPlaylistId() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The yt:playlistId ' . - 'element is not supported in versions earlier than 2.'); - } else { - return $this->_playlistId; - } - } - - /** - * Sets the array of embedded feeds related to the playlist - * - * @param array $feedLink The array of embedded feeds relating to the video - * @return Zend_Gdata_YouTube_PlaylistListEntry 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 of the playlist video feed - * - * @return string The URL of the playlist video feed - */ - public function getPlaylistVideoFeedUrl() - { - if ($this->getMajorProtocolVersion() >= 2) { - return $this->getContent()->getSrc(); - } else { - return $this->getFeedLink(Zend_Gdata_YouTube::PLAYLIST_REL)->href; - } - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/PlaylistListFeed.php b/library/vendor/Zend/Gdata/YouTube/PlaylistListFeed.php deleted file mode 100644 index 18e024edd..000000000 --- a/library/vendor/Zend/Gdata/YouTube/PlaylistListFeed.php +++ /dev/null @@ -1,66 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/PlaylistVideoEntry.php b/library/vendor/Zend/Gdata/YouTube/PlaylistVideoEntry.php deleted file mode 100644 index a2914bebf..000000000 --- a/library/vendor/Zend/Gdata/YouTube/PlaylistVideoEntry.php +++ /dev/null @@ -1,130 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_position !== null) { - $element->appendChild($this->_position->getDOM($element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('yt') . ':' . 'position': - $position = new Zend_Gdata_YouTube_Extension_Position(); - $position->transferFromDOM($child); - $this->_position = $position; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - - /** - * Sets the array of embedded feeds related to the video - * - * @param Zend_Gdata_YouTube_Extension_Position $position - * The position of the entry in the feed, as specified by the user. - * @return Zend_Gdata_YouTube_PlaylistVideoEntry Provides a fluent interface - */ - public function setPosition($position = null) - { - $this->_position = $position; - return $this; - } - - /** - * Returns the position of the entry in the feed, as specified by the user - * - * @return Zend_Gdata_YouTube_Extension_Position The position - */ - public function getPosition() - { - return $this->_position; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/PlaylistVideoFeed.php b/library/vendor/Zend/Gdata/YouTube/PlaylistVideoFeed.php deleted file mode 100644 index 2b3ec0de3..000000000 --- a/library/vendor/Zend/Gdata/YouTube/PlaylistVideoFeed.php +++ /dev/null @@ -1,66 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/SubscriptionEntry.php b/library/vendor/Zend/Gdata/YouTube/SubscriptionEntry.php deleted file mode 100644 index ffe3c06e4..000000000 --- a/library/vendor/Zend/Gdata/YouTube/SubscriptionEntry.php +++ /dev/null @@ -1,431 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_countHint != null) { - $element->appendChild($this->_countHint->getDOM($element->ownerDocument)); - } - if ($this->_playlistTitle != null) { - $element->appendChild($this->_playlistTitle->getDOM($element->ownerDocument)); - } - if ($this->_playlistId != null) { - $element->appendChild($this->_playlistId->getDOM($element->ownerDocument)); - } - if ($this->_mediaThumbnail != null) { - $element->appendChild($this->_mediaThumbnail->getDOM($element->ownerDocument)); - } - if ($this->_username != null) { - $element->appendChild($this->_username->getDOM($element->ownerDocument)); - } - if ($this->_queryString != null) { - $element->appendChild($this->_queryString->getDOM($element->ownerDocument)); - } - if ($this->_feedLink != null) { - foreach ($this->_feedLink as $feedLink) { - $element->appendChild($feedLink->getDOM($element->ownerDocument)); - } - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('gd') . ':' . 'feedLink': - $feedLink = new Zend_Gdata_Extension_FeedLink(); - $feedLink->transferFromDOM($child); - $this->_feedLink[] = $feedLink; - break; - case $this->lookupNamespace('media') . ':' . 'thumbnail': - $mediaThumbnail = new Zend_Gdata_Media_Extension_MediaThumbnail(); - $mediaThumbnail->transferFromDOM($child); - $this->_mediaThumbnail = $mediaThumbnail; - break; - case $this->lookupNamespace('yt') . ':' . 'countHint': - $countHint = new Zend_Gdata_YouTube_Extension_CountHint(); - $countHint->transferFromDOM($child); - $this->_countHint = $countHint; - break; - case $this->lookupNamespace('yt') . ':' . 'playlistTitle': - $playlistTitle = new Zend_Gdata_YouTube_Extension_PlaylistTitle(); - $playlistTitle->transferFromDOM($child); - $this->_playlistTitle = $playlistTitle; - break; - case $this->lookupNamespace('yt') . ':' . 'playlistId': - $playlistId = new Zend_Gdata_YouTube_Extension_PlaylistId(); - $playlistId->transferFromDOM($child); - $this->_playlistId = $playlistId; - break; - case $this->lookupNamespace('yt') . ':' . 'queryString': - $queryString = new Zend_Gdata_YouTube_Extension_QueryString(); - $queryString->transferFromDOM($child); - $this->_queryString = $queryString; - break; - case $this->lookupNamespace('yt') . ':' . 'username': - $username = new Zend_Gdata_YouTube_Extension_Username(); - $username->transferFromDOM($child); - $this->_username = $username; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * 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_SubscriptionEntry 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; - } - } - - /** - * Get the playlist title for a 'playlist' subscription. - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_PlaylistId - */ - public function getPlaylistId() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The getPlaylistId ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - return $this->_playlistId; - } - } - - /** - * Sets the yt:playlistId element for a new playlist subscription. - * - * @param Zend_Gdata_YouTube_Extension_PlaylistId $id The id of - * the playlist to which to subscribe to. - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_SubscriptionEntry Provides a fluent interface - */ - public function setPlaylistId($id = null) - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The setPlaylistTitle ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - $this->_playlistId = $id; - return $this; - } - } - - /** - * Get the queryString of the subscription - * - * @return Zend_Gdata_YouTube_Extension_QueryString - */ - public function getQueryString() - { - return $this->_queryString; - } - - /** - * Sets the yt:queryString element for a new keyword subscription. - * - * @param Zend_Gdata_YouTube_Extension_QueryString $queryString The query - * string to subscribe to - * @return Zend_Gdata_YouTube_SubscriptionEntry Provides a fluent interface - */ - public function setQueryString($queryString = null) - { - $this->_queryString = $queryString; - return $this; - } - - /** - * Get the playlist title for a 'playlist' subscription. - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_PlaylistTitle - */ - public function getPlaylistTitle() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The getPlaylistTitle ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - return $this->_playlistTitle; - } - } - - /** - * Sets the yt:playlistTitle element for a new playlist subscription. - * - * @param Zend_Gdata_YouTube_Extension_PlaylistTitle $title The title of - * the playlist to which to subscribe to. - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_SubscriptionEntry Provides a fluent interface - */ - public function setPlaylistTitle($title = null) - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The setPlaylistTitle ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - $this->_playlistTitle = $title; - return $this; - } - } - - /** - * Get the counthint for a subscription. - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_CountHint - */ - public function getCountHint() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The getCountHint ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - return $this->_countHint; - } - } - - /** - * Get the thumbnail for a subscription. - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_Media_Extension_MediaThumbnail - */ - public function getMediaThumbnail() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The getMediaThumbnail ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - return $this->_mediaThumbnail; - } - } - - /** - * Get the username for a channel subscription. - * - * @return Zend_Gdata_YouTube_Extension_Username - */ - public function getUsername() - { - return $this->_username; - } - - /** - * Sets the username for a new channel subscription. - * - * @param Zend_Gdata_YouTube_Extension_Username $username The username of - * the channel to which to subscribe to. - * @return Zend_Gdata_YouTube_SubscriptionEntry Provides a fluent interface - */ - public function setUsername($username = null) - { - $this->_username = $username; - return $this; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/SubscriptionFeed.php b/library/vendor/Zend/Gdata/YouTube/SubscriptionFeed.php deleted file mode 100644 index 238c3ba2c..000000000 --- a/library/vendor/Zend/Gdata/YouTube/SubscriptionFeed.php +++ /dev/null @@ -1,66 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/UserProfileEntry.php b/library/vendor/Zend/Gdata/YouTube/UserProfileEntry.php deleted file mode 100644 index bdf5216e5..000000000 --- a/library/vendor/Zend/Gdata/YouTube/UserProfileEntry.php +++ /dev/null @@ -1,1012 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_description != null) { - $element->appendChild($this->_description->getDOM($element->ownerDocument)); - } - if ($this->_aboutMe != null) { - $element->appendChild($this->_aboutMe->getDOM($element->ownerDocument)); - } - if ($this->_age != null) { - $element->appendChild($this->_age->getDOM($element->ownerDocument)); - } - if ($this->_username != null) { - $element->appendChild($this->_username->getDOM($element->ownerDocument)); - } - if ($this->_books != null) { - $element->appendChild($this->_books->getDOM($element->ownerDocument)); - } - if ($this->_company != null) { - $element->appendChild($this->_company->getDOM($element->ownerDocument)); - } - if ($this->_hobbies != null) { - $element->appendChild($this->_hobbies->getDOM($element->ownerDocument)); - } - if ($this->_hometown != null) { - $element->appendChild($this->_hometown->getDOM($element->ownerDocument)); - } - if ($this->_location != null) { - $element->appendChild($this->_location->getDOM($element->ownerDocument)); - } - if ($this->_movies != null) { - $element->appendChild($this->_movies->getDOM($element->ownerDocument)); - } - if ($this->_music != null) { - $element->appendChild($this->_music->getDOM($element->ownerDocument)); - } - if ($this->_occupation != null) { - $element->appendChild($this->_occupation->getDOM($element->ownerDocument)); - } - if ($this->_school != null) { - $element->appendChild($this->_school->getDOM($element->ownerDocument)); - } - if ($this->_gender != null) { - $element->appendChild($this->_gender->getDOM($element->ownerDocument)); - } - if ($this->_relationship != null) { - $element->appendChild($this->_relationship->getDOM($element->ownerDocument)); - } - if ($this->_firstName != null) { - $element->appendChild($this->_firstName->getDOM($element->ownerDocument)); - } - if ($this->_lastName != null) { - $element->appendChild($this->_lastName->getDOM($element->ownerDocument)); - } - if ($this->_statistics != null) { - $element->appendChild($this->_statistics->getDOM($element->ownerDocument)); - } - if ($this->_thumbnail != null) { - $element->appendChild($this->_thumbnail->getDOM($element->ownerDocument)); - } - if ($this->_feedLink != null) { - foreach ($this->_feedLink as $feedLink) { - $element->appendChild($feedLink->getDOM($element->ownerDocument)); - } - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - switch ($absoluteNodeName) { - case $this->lookupNamespace('yt') . ':' . 'description': - $description = new Zend_Gdata_YouTube_Extension_Description(); - $description->transferFromDOM($child); - $this->_description = $description; - break; - case $this->lookupNamespace('yt') . ':' . 'aboutMe': - $aboutMe = new Zend_Gdata_YouTube_Extension_AboutMe(); - $aboutMe->transferFromDOM($child); - $this->_aboutMe = $aboutMe; - break; - case $this->lookupNamespace('yt') . ':' . 'age': - $age = new Zend_Gdata_YouTube_Extension_Age(); - $age->transferFromDOM($child); - $this->_age = $age; - break; - case $this->lookupNamespace('yt') . ':' . 'username': - $username = new Zend_Gdata_YouTube_Extension_Username(); - $username->transferFromDOM($child); - $this->_username = $username; - break; - case $this->lookupNamespace('yt') . ':' . 'books': - $books = new Zend_Gdata_YouTube_Extension_Books(); - $books->transferFromDOM($child); - $this->_books = $books; - break; - case $this->lookupNamespace('yt') . ':' . 'company': - $company = new Zend_Gdata_YouTube_Extension_Company(); - $company->transferFromDOM($child); - $this->_company = $company; - break; - case $this->lookupNamespace('yt') . ':' . 'hobbies': - $hobbies = new Zend_Gdata_YouTube_Extension_Hobbies(); - $hobbies->transferFromDOM($child); - $this->_hobbies = $hobbies; - break; - case $this->lookupNamespace('yt') . ':' . 'hometown': - $hometown = new Zend_Gdata_YouTube_Extension_Hometown(); - $hometown->transferFromDOM($child); - $this->_hometown = $hometown; - break; - case $this->lookupNamespace('yt') . ':' . 'location': - $location = new Zend_Gdata_YouTube_Extension_Location(); - $location->transferFromDOM($child); - $this->_location = $location; - break; - case $this->lookupNamespace('yt') . ':' . 'movies': - $movies = new Zend_Gdata_YouTube_Extension_Movies(); - $movies->transferFromDOM($child); - $this->_movies = $movies; - break; - case $this->lookupNamespace('yt') . ':' . 'music': - $music = new Zend_Gdata_YouTube_Extension_Music(); - $music->transferFromDOM($child); - $this->_music = $music; - break; - case $this->lookupNamespace('yt') . ':' . 'occupation': - $occupation = new Zend_Gdata_YouTube_Extension_Occupation(); - $occupation->transferFromDOM($child); - $this->_occupation = $occupation; - break; - case $this->lookupNamespace('yt') . ':' . 'school': - $school = new Zend_Gdata_YouTube_Extension_School(); - $school->transferFromDOM($child); - $this->_school = $school; - break; - case $this->lookupNamespace('yt') . ':' . 'gender': - $gender = new Zend_Gdata_YouTube_Extension_Gender(); - $gender->transferFromDOM($child); - $this->_gender = $gender; - break; - case $this->lookupNamespace('yt') . ':' . 'relationship': - $relationship = new Zend_Gdata_YouTube_Extension_Relationship(); - $relationship->transferFromDOM($child); - $this->_relationship = $relationship; - break; - case $this->lookupNamespace('yt') . ':' . 'firstName': - $firstName = new Zend_Gdata_YouTube_Extension_FirstName(); - $firstName->transferFromDOM($child); - $this->_firstName = $firstName; - break; - case $this->lookupNamespace('yt') . ':' . 'lastName': - $lastName = new Zend_Gdata_YouTube_Extension_LastName(); - $lastName->transferFromDOM($child); - $this->_lastName = $lastName; - break; - case $this->lookupNamespace('yt') . ':' . 'statistics': - $statistics = new Zend_Gdata_YouTube_Extension_Statistics(); - $statistics->transferFromDOM($child); - $this->_statistics = $statistics; - break; - case $this->lookupNamespace('media') . ':' . 'thumbnail': - $thumbnail = new Zend_Gdata_Media_Extension_MediaThumbnail(); - $thumbnail->transferFromDOM($child); - $this->_thumbnail = $thumbnail; - break; - case $this->lookupNamespace('gd') . ':' . 'feedLink': - $feedLink = new Zend_Gdata_Extension_FeedLink(); - $feedLink->transferFromDOM($child); - $this->_feedLink[] = $feedLink; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Sets the content of the 'about me' field. - * - * @param Zend_Gdata_YouTube_Extension_AboutMe $aboutMe The 'about me' - * information. - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface - */ - public function setAboutMe($aboutMe = null) - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The setAboutMe ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - $this->_aboutMe = $aboutMe; - return $this; - } - } - - /** - * Returns the contents of the 'about me' field. - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_AboutMe The 'about me' information - */ - public function getAboutMe() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The getAboutMe ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - return $this->_aboutMe; - } - } - - /** - * Sets the content of the 'first name' field. - * - * @param Zend_Gdata_YouTube_Extension_FirstName $firstName The first name - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface - */ - public function setFirstName($firstName = null) - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The setFirstName ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - $this->_firstName = $firstName; - return $this; - } - } - - /** - * Returns the first name - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_FirstName The first name - */ - public function getFirstName() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The getFirstName ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - return $this->_firstName; - } - } - - /** - * Sets the content of the 'last name' field. - * - * @param Zend_Gdata_YouTube_Extension_LastName $lastName The last name - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_UserProfileEntry Provides a fluent interface - */ - public function setLastName($lastName = null) - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The setLastName ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - $this->_lastName = $lastName; - return $this; - } - } - - /** - * Returns the last name - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_LastName The last name - */ - public function getLastName() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The getLastName ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - return $this->_lastName; - } - } - - /** - * Returns the statistics - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_Statistics The profile statistics - */ - public function getStatistics() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The getStatistics ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - return $this->_statistics; - } - } - - /** - * Returns the thumbnail - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_Media_Extension_MediaThumbnail The profile thumbnail - */ - public function getThumbnail() - { - if (($this->getMajorProtocolVersion() == null) || - ($this->getMajorProtocolVersion() == 1)) { - throw new Zend_Gdata_App_VersionException('The getThumbnail ' . - ' method is only supported as of version 2 of the YouTube ' . - 'API.'); - } else { - return $this->_thumbnail; - } - } - - /** - * Sets the age - * - * @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 $this->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 $this->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 $this->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 $this->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 $this->getFeedLinkHref(Zend_Gdata_YouTube::USER_FAVORITES_REL); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/VideoEntry.php b/library/vendor/Zend/Gdata/YouTube/VideoEntry.php deleted file mode 100644 index 33560a112..000000000 --- a/library/vendor/Zend/Gdata/YouTube/VideoEntry.php +++ /dev/null @@ -1,1077 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - - /** - * Retrieves a DOMElement which corresponds to this element and all - * child properties. This is used to build an entry back into a DOM - * and eventually XML text for sending to the server upon updates, or - * for application storage/persistence. - * - * @param DOMDocument $doc The DOMDocument used to construct DOMElements - * @return DOMElement The DOMElement representing this element and all - * child properties. - */ - public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) - { - $element = parent::getDOM($doc, $majorVersion, $minorVersion); - if ($this->_noEmbed != null) { - $element->appendChild($this->_noEmbed->getDOM( - $element->ownerDocument)); - } - if ($this->_statistics != null) { - $element->appendChild($this->_statistics->getDOM( - $element->ownerDocument)); - } - if ($this->_racy != null) { - $element->appendChild($this->_racy->getDOM( - $element->ownerDocument)); - } - if ($this->_recorded != null) { - $element->appendChild($this->_recorded->getDOM( - $element->ownerDocument)); - } - if ($this->_location != null) { - $element->appendChild($this->_location->getDOM( - $element->ownerDocument)); - } - if ($this->_rating != null) { - $element->appendChild($this->_rating->getDOM( - $element->ownerDocument)); - } - if ($this->_comments != null) { - $element->appendChild($this->_comments->getDOM( - $element->ownerDocument)); - } - if ($this->_feedLink != null) { - foreach ($this->_feedLink as $feedLink) { - $element->appendChild($feedLink->getDOM( - $element->ownerDocument)); - } - } - if ($this->_where != null) { - $element->appendChild($this->_where->getDOM( - $element->ownerDocument)); - } - return $element; - } - - /** - * Creates individual Entry objects of the appropriate type and - * stores them in the $_entry array based upon DOM data. - * - * @param DOMNode $child The DOMNode to process - */ - protected function takeChildFromDOM($child) - { - $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; - - switch ($absoluteNodeName) { - case $this->lookupNamespace('yt') . ':' . 'statistics': - $statistics = new Zend_Gdata_YouTube_Extension_Statistics(); - $statistics->transferFromDOM($child); - $this->_statistics = $statistics; - break; - case $this->lookupNamespace('yt') . ':' . 'racy': - $racy = new Zend_Gdata_YouTube_Extension_Racy(); - $racy->transferFromDOM($child); - $this->_racy = $racy; - break; - case $this->lookupNamespace('yt') . ':' . 'recorded': - $recorded = new Zend_Gdata_YouTube_Extension_Recorded(); - $recorded->transferFromDOM($child); - $this->_recorded = $recorded; - break; - case $this->lookupNamespace('yt') . ':' . 'location': - $location = new Zend_Gdata_YouTube_Extension_Location(); - $location->transferFromDOM($child); - $this->_location = $location; - break; - case $this->lookupNamespace('gd') . ':' . 'rating': - $rating = new Zend_Gdata_Extension_Rating(); - $rating->transferFromDOM($child); - $this->_rating = $rating; - break; - case $this->lookupNamespace('gd') . ':' . 'comments': - $comments = new Zend_Gdata_Extension_Comments(); - $comments->transferFromDOM($child); - $this->_comments = $comments; - break; - case $this->lookupNamespace('yt') . ':' . 'noembed': - $noEmbed = new Zend_Gdata_YouTube_Extension_NoEmbed(); - $noEmbed->transferFromDOM($child); - $this->_noEmbed = $noEmbed; - break; - case $this->lookupNamespace('gd') . ':' . 'feedLink': - $feedLink = new Zend_Gdata_Extension_FeedLink(); - $feedLink->transferFromDOM($child); - $this->_feedLink[] = $feedLink; - break; - case $this->lookupNamespace('georss') . ':' . 'where': - $where = new Zend_Gdata_Geo_Extension_GeoRssWhere(); - $where->transferFromDOM($child); - $this->_where = $where; - break; - case $this->lookupNamespace('atom') . ':' . 'link'; - $link = new Zend_Gdata_YouTube_Extension_Link(); - $link->transferFromDOM($child); - $this->_link[] = $link; - break; - case $this->lookupNamespace('app') . ':' . 'control': - $control = new Zend_Gdata_YouTube_Extension_Control(); - $control->transferFromDOM($child); - $this->_control = $control; - break; - default: - parent::takeChildFromDOM($child); - break; - } - } - - /** - * Sets when the video was recorded. - * - * @param Zend_Gdata_YouTube_Extension_Recorded $recorded When the video was recorded - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setRecorded($recorded = null) - { - $this->_recorded = $recorded; - return $this; - } - - /** - * Gets the date that the video was recorded. - * - * @return Zend_Gdata_YouTube_Extension_Recorded|null - */ - public function getRecorded() - { - return $this->_recorded; - } - - /** - * Sets the location information. - * - * @param Zend_Gdata_YouTube_Extension_Location $location Where the video - * was recorded - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setLocation($location = null) - { - $this->_location = $location; - return $this; - } - - /** - * Gets the location where the video was recorded. - * - * @return Zend_Gdata_YouTube_Extension_Location|null - */ - public function getLocation() - { - return $this->_location; - } - - /** - * If an instance of Zend_Gdata_YouTube_Extension_NoEmbed is passed in, - * the video cannot be embedded. Otherwise, if null is passsed in, the - * video is able to be embedded. - * - * @param Zend_Gdata_YouTube_Extension_NoEmbed $noEmbed Whether or not the - * video can be embedded. - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setNoEmbed($noEmbed = null) - { - $this->_noEmbed = $noEmbed; - return $this; - } - - /** - * If the return value is an instance of - * Zend_Gdata_YouTube_Extension_NoEmbed, this video cannot be embedded. - * - * @return Zend_Gdata_YouTube_Extension_NoEmbed|null Whether or not the video can be embedded - */ - public function getNoEmbed() - { - return $this->_noEmbed; - } - - /** - * Checks whether the video is embeddable. - * - * @return bool Returns true if the video is embeddable. - */ - public function isVideoEmbeddable() - { - if ($this->getNoEmbed() == null) { - return true; - } else { - return false; - } - } - - /** - * Sets the statistics relating to the video. - * - * @param Zend_Gdata_YouTube_Extension_Statistics $statistics The statistics relating to the video - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setStatistics($statistics = null) - { - $this->_statistics = $statistics; - return $this; - } - - /** - * Returns the statistics relating to the video. - * - * @return Zend_Gdata_YouTube_Extension_Statistics The statistics relating to the video - */ - public function getStatistics() - { - return $this->_statistics; - } - - /** - * Specifies that the video has racy content. - * - * @param Zend_Gdata_YouTube_Extension_Racy $racy The racy flag object - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setRacy($racy = null) - { - if ($this->getMajorProtocolVersion() == 2) { - throw new Zend_Gdata_App_VersionException( - 'Calling getRacy() on a YouTube VideoEntry is deprecated ' . - 'as of version 2 of the API.'); - } - - $this->_racy = $racy; - return $this; - } - - /** - * Returns the racy flag object. - * - * @throws Zend_Gdata_App_VersionException - * @return Zend_Gdata_YouTube_Extension_Racy|null The racy flag object - */ - public function getRacy() - { - if ($this->getMajorProtocolVersion() == 2) { - throw new Zend_Gdata_App_VersionException( - 'Calling getRacy() on a YouTube VideoEntry is deprecated ' . - 'as of version 2 of the API.'); - } - return $this->_racy; - } - - /** - * Sets the rating relating to the video. - * - * @param Zend_Gdata_Extension_Rating $rating The rating relating to the video - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setRating($rating = null) - { - $this->_rating = $rating; - return $this; - } - - /** - * Returns the rating relating to the video. - * - * @return Zend_Gdata_Extension_Rating The rating relating to the video - */ - public function getRating() - { - return $this->_rating; - } - - /** - * Sets the comments relating to the video. - * - * @param Zend_Gdata_Extension_Comments $comments The comments relating to the video - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setComments($comments = null) - { - $this->_comments = $comments; - return $this; - } - - /** - * Returns the comments relating to the video. - * - * @return Zend_Gdata_Extension_Comments The comments relating to the video - */ - public function getComments() - { - return $this->_comments; - } - - /** - * 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_VideoEntry 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 link element relating to video responses. - * - * @return Zend_Gdata_App_Extension_Link - */ - public function getVideoResponsesLink() - { - return $this->getLink(Zend_Gdata_YouTube::VIDEO_RESPONSES_REL); - } - - /** - * Returns the link element relating to video ratings. - * - * @return Zend_Gdata_App_Extension_Link - */ - public function getVideoRatingsLink() - { - return $this->getLink(Zend_Gdata_YouTube::VIDEO_RATINGS_REL); - } - - /** - * Returns the link element relating to video complaints. - * - * @return Zend_Gdata_App_Extension_Link - */ - public function getVideoComplaintsLink() - { - return $this->getLink(Zend_Gdata_YouTube::VIDEO_COMPLAINTS_REL); - } - - /** - * Gets the YouTube video ID based upon the atom:id value - * - * @return string The video ID - */ - public function getVideoId() - { - if ($this->getMajorProtocolVersion() == 2) { - $videoId = $this->getMediaGroup()->getVideoId()->text; - } else { - $fullId = $this->getId()->getText(); - $position = strrpos($fullId, '/'); - if ($position === false) { - throw new Zend_Gdata_App_Exception( - 'Slash not found in atom:id of ' . $fullId); - } else { - $videoId = substr($fullId, $position + 1); - } - } - return $videoId; - } - - /** - * Gets the date that the video was recorded. - * - * @return string|null The date that the video was recorded - */ - public function getVideoRecorded() - { - $recorded = $this->getRecorded(); - if ($recorded != null) { - return $recorded->getText(); - } else { - return null; - } - } - - /** - * Sets the date that the video was recorded. - * - * @param string $recorded The date that the video was recorded, in the - * format of '2001-06-19' - */ - public function setVideoRecorded($recorded) - { - $this->setRecorded( - new Zend_Gdata_YouTube_Extension_Recorded($recorded)); - return $this; - } - - /** - * Gets the georss:where element - * - * @return Zend_Gdata_Geo_Extension_GeoRssWhere - */ - public function getWhere() - { - return $this->_where; - } - - /** - * Sets the georss:where element - * - * @param Zend_Gdata_Geo_Extension_GeoRssWhere $value The georss:where class value - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setWhere($value) - { - $this->_where = $value; - return $this; - } - - /** - * Gets the title of the video as a string. null is returned - * if the video title is not available. - * - * @return string|null The title of the video - */ - public function getVideoTitle() - { - $this->ensureMediaGroupIsNotNull(); - if ($this->getMediaGroup()->getTitle() != null) { - return $this->getMediaGroup()->getTitle()->getText(); - } else { - return null; - } - } - - /** - * Sets the title of the video as a string. - * - * @param string $title Title for the video - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setVideoTitle($title) - { - $this->ensureMediaGroupIsNotNull(); - $this->getMediaGroup()->setTitle( - new Zend_Gdata_Media_Extension_MediaTitle($title)); - return $this; - } - - /** - * Sets the description of the video as a string. - * - * @param string $description Description for the video - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setVideoDescription($description) - { - $this->ensureMediaGroupIsNotNull(); - $this->getMediaGroup()->setDescription( - new Zend_Gdata_Media_Extension_MediaDescription($description)); - return $this; - } - - - /** - * Gets the description of the video as a string. null is returned - * if the video description is not available. - * - * @return string|null The description of the video - */ - public function getVideoDescription() - { - $this->ensureMediaGroupIsNotNull(); - if ($this->getMediaGroup()->getDescription() != null) { - return $this->getMediaGroup()->getDescription()->getText(); - } else { - return null; - } - } - - /** - * Gets the URL of the YouTube video watch page. null is returned - * if the video watch page URL is not available. - * - * @return string|null The URL of the YouTube video watch page - */ - public function getVideoWatchPageUrl() - { - $this->ensureMediaGroupIsNotNull(); - if ($this->getMediaGroup()->getPlayer() != null && - array_key_exists(0, $this->getMediaGroup()->getPlayer())) { - $players = $this->getMediaGroup()->getPlayer(); - return $players[0]->getUrl(); - } else { - return null; - } - } - - /** - * Gets an array of the thumbnails representing the video. - * Each thumbnail is an element of the array, and is an - * array of the thumbnail properties - time, height, width, - * and url. For convient usage inside a foreach loop, an - * empty array is returned if there are no thumbnails. - * - * @return array An array of video thumbnails. - */ - public function getVideoThumbnails() - { - $this->ensureMediaGroupIsNotNull(); - if ($this->getMediaGroup()->getThumbnail() != null) { - - $thumbnailArray = array(); - - foreach ($this->getMediaGroup()->getThumbnail() as $thumbnailObj) { - $thumbnail = array(); - $thumbnail['time'] = $thumbnailObj->time; - $thumbnail['height'] = $thumbnailObj->height; - $thumbnail['width'] = $thumbnailObj->width; - $thumbnail['url'] = $thumbnailObj->url; - $thumbnailArray[] = $thumbnail; - } - return $thumbnailArray; - } else { - return array(); - } - } - - /** - * Gets the URL of the flash player SWF. null is returned if the - * duration value is not available. - * - * @return string|null The URL of the flash player SWF - */ - public function getFlashPlayerUrl() - { - $this->ensureMediaGroupIsNotNull(); - foreach ($this->getMediaGroup()->getContent() as $content) { - if ($content->getType() === 'application/x-shockwave-flash') { - return $content->getUrl(); - } - } - return null; - } - - /** - * Gets the duration of the video, in seconds. null is returned - * if the duration value is not available. - * - * @return string|null The duration of the video, in seconds. - */ - public function getVideoDuration() - { - $this->ensureMediaGroupIsNotNull(); - if ($this->getMediaGroup()->getDuration() != null) { - return $this->getMediaGroup()->getDuration()->getSeconds(); - } else { - return null; - } - } - - /** - * Checks whether the video is private. - * - * @return bool Return true if video is private - */ - public function isVideoPrivate() - { - $this->ensureMediaGroupIsNotNull(); - if ($this->getMediaGroup()->getPrivate() != null) { - return true; - } else { - return false; - } - } - - /** - * Sets video to private. - * - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setVideoPrivate() - { - $this->ensureMediaGroupIsNotNull(); - $this->getMediaGroup()->setPrivate(new Zend_Gdata_YouTube_Extension_Private()); - return $this; - } - - /** - * Sets a private video to be public. - * - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setVideoPublic() - { - $this->ensureMediaGroupIsNotNull(); - $this->getMediaGroup()->private = null; - return $this; - } - - /** - * Gets an array of the tags assigned to this video. For convient - * usage inside a foreach loop, an empty array is returned when there - * are no tags assigned. - * - * @return array An array of the tags assigned to this video - */ - public function getVideoTags() - { - $this->ensureMediaGroupIsNotNull(); - if ($this->getMediaGroup()->getKeywords() != null) { - - $keywords = $this->getMediaGroup()->getKeywords(); - $keywordsString = $keywords->getText(); - if (strlen(trim($keywordsString)) > 0) { - return preg_split('/(, *)|,/', $keywordsString); - } - } - return array(); - } - - /** - * Sets the keyword tags for a video. - * - * @param mixed $tags Either a comma-separated string or an array - * of tags for the video - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setVideoTags($tags) - { - $this->ensureMediaGroupIsNotNull(); - $keywords = new Zend_Gdata_Media_Extension_MediaKeywords(); - if (is_array($tags)) { - $tags = implode(', ', $tags); - } - $keywords->setText($tags); - $this->getMediaGroup()->setKeywords($keywords); - return $this; - } - - /** - * Gets the number of views for this video. null is returned if the - * number of views is not available. - * - * @return string|null The number of views for this video - */ - public function getVideoViewCount() - { - if ($this->getStatistics() != null) { - return $this->getStatistics()->getViewCount(); - } else { - return null; - } - } - - /** - * Gets the location specified for this video, if available. The location - * is returned as an array containing the keys 'longitude' and 'latitude'. - * null is returned if the location is not available. - * - * @return array|null The location specified for this video - */ - public function getVideoGeoLocation() - { - if ($this->getWhere() != null && - $this->getWhere()->getPoint() != null && - ($position = $this->getWhere()->getPoint()->getPos()) != null) { - - $positionString = $position->__toString(); - - if (strlen(trim($positionString)) > 0) { - $positionArray = explode(' ', trim($positionString)); - if (count($positionArray) == 2) { - $returnArray = array(); - $returnArray['latitude'] = $positionArray[0]; - $returnArray['longitude'] = $positionArray[1]; - return $returnArray; - } - } - } - return null; - } - - /** - * Gets the rating information for this video, if available. The rating - * is returned as an array containing the keys 'average' and 'numRaters'. - * null is returned if the rating information is not available. - * - * @return array|null The rating information for this video - */ - public function getVideoRatingInfo() - { - if ($this->getRating() != null) { - $returnArray = array(); - $returnArray['average'] = $this->getRating()->getAverage(); - $returnArray['numRaters'] = $this->getRating()->getNumRaters(); - return $returnArray; - } else { - return null; - } - } - - /** - * Gets the category of this video, if available. The category is returned - * as a string. Valid categories are found at: - * http://gdata.youtube.com/schemas/2007/categories.cat - * If the category is not set, null is returned. - * - * @return string|null The category of this video - */ - public function getVideoCategory() - { - $this->ensureMediaGroupIsNotNull(); - $categories = $this->getMediaGroup()->getCategory(); - if ($categories != null) { - foreach($categories as $category) { - if ($category->getScheme() == self::YOUTUBE_CATEGORY_SCHEMA) { - return $category->getText(); - } - } - } - return null; - } - - /** - * Sets the category of the video as a string. - * - * @param string $category Categories for the video - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setVideoCategory($category) - { - $this->ensureMediaGroupIsNotNull(); - $this->getMediaGroup()->setCategory(array(new Zend_Gdata_Media_Extension_MediaCategory($category, self::YOUTUBE_CATEGORY_SCHEMA))); - return $this; - } - - /** - * Gets the developer tags for the video, if available and if client is - * authenticated with a valid developerKey. The tags are returned - * as an array. - * If no tags are set, null is returned. - * - * @return array|null The developer tags for this video or null if none were set. - */ - public function getVideoDeveloperTags() - { - $developerTags = null; - $this->ensureMediaGroupIsNotNull(); - - $categoryArray = $this->getMediaGroup()->getCategory(); - if ($categoryArray != null) { - foreach ($categoryArray as $category) { - if ($category instanceof Zend_Gdata_Media_Extension_MediaCategory) { - if ($category->getScheme() == self::YOUTUBE_DEVELOPER_TAGS_SCHEMA) { - $developerTags[] = $category->getText(); - } - } - } - return $developerTags; - } - return null; - } - - /** - * Adds a developer tag to array of tags for the video. - * - * @param string $developerTag DeveloperTag for the video - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function addVideoDeveloperTag($developerTag) - { - $this->ensureMediaGroupIsNotNull(); - $newCategory = new Zend_Gdata_Media_Extension_MediaCategory($developerTag, self::YOUTUBE_DEVELOPER_TAGS_SCHEMA); - - if ($this->getMediaGroup()->getCategory() == null) { - $this->getMediaGroup()->setCategory($newCategory); - } else { - $categories = $this->getMediaGroup()->getCategory(); - $categories[] = $newCategory; - $this->getMediaGroup()->setCategory($categories); - } - return $this; - } - - /** - * Set multiple developer tags for the video as strings. - * - * @param array $developerTags Array of developerTag for the video - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface - */ - public function setVideoDeveloperTags($developerTags) - { - foreach($developerTags as $developerTag) { - $this->addVideoDeveloperTag($developerTag); - } - return $this; - } - - - /** - * Get the current publishing state of the video. - * - * @return Zend_Gdata_YouTube_Extension_State|null The publishing state of this video - */ - public function getVideoState() - { - $control = $this->getControl(); - if ($control != null && - $control->getDraft() != null && - $control->getDraft()->getText() == 'yes') { - - return $control->getState(); - } - return null; - } - - /** - * Get the VideoEntry's Zend_Gdata_YouTube_Extension_MediaGroup object. - * If the mediaGroup does not exist, then set it. - * - * @return void - */ - public function ensureMediaGroupIsNotNull() - { - if ($this->getMediagroup() == null) { - $this->setMediagroup(new Zend_Gdata_YouTube_Extension_MediaGroup()); - } - } - - /** - * Helper function to conveniently set a video's rating. - * - * @param integer $ratingValue A number representing the rating. Must - * be between 1 and 5 inclusive. - * @throws Zend_Gdata_Exception - * @return Zend_Gdata_YouTube_VideoEntry Provides a fluent interface. - */ - public function setVideoRating($ratingValue) - { - if ($ratingValue < 1 || $ratingValue > 5) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Rating for video entry must be between 1 and 5 inclusive.'); - } - - $rating = new Zend_Gdata_Extension_Rating(null, 1, 5, null, - $ratingValue); - $this->setRating($rating); - return $this; - } - - /** - * Retrieve the URL for a video's comment feed. - * - * @return string|null The URL if found, or null if not found. - */ - public function getVideoCommentFeedUrl() - { - $commentsExtension = $this->getComments(); - $commentsFeedUrl = null; - if ($commentsExtension) { - $commentsFeedLink = $commentsExtension->getFeedLink(); - if ($commentsFeedLink) { - $commentsFeedUrl = $commentsFeedLink->getHref(); - } - } - return $commentsFeedUrl; - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/VideoFeed.php b/library/vendor/Zend/Gdata/YouTube/VideoFeed.php deleted file mode 100644 index e8a572c4c..000000000 --- a/library/vendor/Zend/Gdata/YouTube/VideoFeed.php +++ /dev/null @@ -1,63 +0,0 @@ -registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); - parent::__construct($element); - } - -} diff --git a/library/vendor/Zend/Gdata/YouTube/VideoQuery.php b/library/vendor/Zend/Gdata/YouTube/VideoQuery.php deleted file mode 100644 index 3b8f4b8c1..000000000 --- a/library/vendor/Zend/Gdata/YouTube/VideoQuery.php +++ /dev/null @@ -1,525 +0,0 @@ -_url = Zend_Gdata_YouTube::STANDARD_TOP_RATED_URI; - break; - case 'most viewed': - $this->_url = Zend_Gdata_YouTube::STANDARD_MOST_VIEWED_URI; - break; - case 'recently featured': - $this->_url = Zend_Gdata_YouTube::STANDARD_RECENTLY_FEATURED_URI; - break; - case 'mobile': - $this->_url = Zend_Gdata_YouTube::STANDARD_WATCH_ON_MOBILE_URI; - break; - case 'related': - if ($videoId === null) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Video ID must be set for feed of type: ' . $feedType); - } else { - $this->_url = Zend_Gdata_YouTube::VIDEO_URI . '/' . $videoId . - '/related'; - } - break; - case 'responses': - if ($videoId === null) { - throw new Zend_Gdata_App_Exception( - 'Video ID must be set for feed of type: ' . $feedType); - } else { - $this->_url = Zend_Gdata_YouTube::VIDEO_URI . '/' . $videoId . - '/responses'; - } - break; - case 'comments': - if ($videoId === null) { - throw new Zend_Gdata_App_Exception( - 'Video ID must be set for feed of type: ' . $feedType); - } else { - $this->_url = Zend_Gdata_YouTube::VIDEO_URI . '/' . - $videoId . '/comments'; - if ($entry !== null) { - $this->_url .= '/' . $entry; - } - } - break; - default: - throw new Zend_Gdata_App_Exception('Unknown feed type'); - break; - } - } - - /** - * Sets the location parameter for the query - * - * @param string $value - * @throws Zend_Gdata_App_InvalidArgumentException - * @return Zend_Gdata_YouTube_VideoQuery Provides a fluent interface - */ - public function setLocation($value) - { - switch($value) { - case null: - unset($this->_params['location']); - default: - $parameters = explode(',', $value); - if (count($parameters) != 2) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'You must provide 2 coordinates to the location ' . - 'URL parameter'); - } - - foreach($parameters as $param) { - $temp = trim($param); - // strip off the optional exclamation mark for numeric check - if (substr($temp, -1) == '!') { - $temp = substr($temp, 0, -1); - } - if (!is_numeric($temp)) { - throw new Zend_Gdata_App_InvalidArgumentException( - 'Value provided to location parameter must' . - ' be in the form of two coordinates'); - } - } - $this->_params['location'] = $value; - } - } - - /** - * Get the value of the location parameter - * - * @return string|null Return the location if it exists, null otherwise. - */ - public function getLocation() - { - if (array_key_exists('location', $this->_params)) { - return $this->_params['location']; - } else { - return null; - } - } - - - /** - * Sets the location-radius parameter for the query - * - * @param string $value - * @return Zend_Gdata_YouTube_VideoQuery Provides a fluent interface - */ - public function setLocationRadius($value) - { - switch($value) { - case null: - unset($this->_params['location-radius']); - default: - $this->_params['location-radius'] = $value; - } - } - - /** - * Get the value of the location-radius parameter - * - * @return string|null Return the location-radius if it exists, - * null otherwise. - */ - public function getLocationRadius() - { - if (array_key_exists('location-radius', $this->_params)) { - return $this->_params['location-radius']; - } else { - return null; - } - } - - /** - * Sets the time period over which this query should apply - * - * @param string $value - * @throws Zend_Gdata_App_InvalidArgumentException - * @return Zend_Gdata_YouTube_VideoQuery Provides a fluent interface - */ - public function setTime($value = null) - { - switch ($value) { - case 'today': - $this->_params['time'] = 'today'; - break; - case 'this_week': - $this->_params['time'] = 'this_week'; - break; - case 'this_month': - $this->_params['time'] = 'this_month'; - break; - case 'all_time': - $this->_params['time'] = 'all_time'; - break; - case null: - unset($this->_params['time']); - default: - throw new Zend_Gdata_App_InvalidArgumentException( - 'Unknown time value'); - break; - } - return $this; - } - - /** - * Sets the value of the uploader parameter - * - * @param string $value The value of the uploader parameter. Currently this - * can only be set to the value of 'partner'. - * @throws Zend_Gdata_App_InvalidArgumentException - * @return Zend_Gdata_YouTube_VideoQuery Provides a fluent interface - */ - public function setUploader($value = null) - { - switch ($value) { - case 'partner': - $this->_params['uploader'] = 'partner'; - break; - case null: - unset($this->_params['uploader']); - break; - default: - throw new Zend_Gdata_App_InvalidArgumentException( - 'Unknown value for uploader'); - } - return $this; - } - - /** - * Sets the formatted video query (vq) URL param value - * - * @param string $value - * @return Zend_Gdata_YouTube_VideoQuery Provides a fluent interface - */ - public function setVideoQuery($value = null) - { - if ($value != null) { - $this->_params['vq'] = $value; - } else { - unset($this->_params['vq']); - } - return $this; - } - - /** - * Sets the param to return videos of a specific format - * - * @param string $value - * @return Zend_Gdata_YouTube_VideoQuery Provides a fluent interface - */ - public function setFormat($value = null) - { - if ($value != null) { - $this->_params['format'] = $value; - } else { - unset($this->_params['format']); - } - return $this; - } - - /** - * Sets whether or not to include racy videos in the search results - * - * @param string $value - * @return Zend_Gdata_YouTube_VideoQuery Provides a fluent interface - */ - public function setRacy($value = null) - { - switch ($value) { - case 'include': - $this->_params['racy'] = $value; - break; - case 'exclude': - $this->_params['racy'] = $value; - break; - case null: - unset($this->_params['racy']); - break; - } - return $this; - } - - /** - * Whether or not to include racy videos in the search results - * - * @return string|null The value of racy if it exists, null otherwise. - */ - public function getRacy() - { - if (array_key_exists('racy', $this->_params)) { - return $this->_params['racy']; - } else { - return null; - } - } - - /** - * Set the safeSearch parameter - * - * @param string $value The value of the parameter, currently only 'none', - * 'moderate' or 'strict' are allowed values. - * @throws Zend_Gdata_App_InvalidArgumentException - * @return Zend_Gdata_YouTube_VideoQuery Provides a fluent interface - */ - public function setSafeSearch($value) - { - switch ($value) { - case 'none': - $this->_params['safeSearch'] = 'none'; - break; - case 'moderate': - $this->_params['safeSearch'] = 'moderate'; - break; - case 'strict': - $this->_params['safeSearch'] = 'strict'; - break; - case null: - unset($this->_params['safeSearch']); - default: - throw new Zend_Gdata_App_InvalidArgumentException( - 'The safeSearch parameter only supports the values '. - '\'none\', \'moderate\' or \'strict\'.'); - } - } - - /** - * Return the value of the safeSearch parameter - * - * @return string|null The value of the safeSearch parameter if it has been - * set, null otherwise. - */ - public function getSafeSearch() - { - if (array_key_exists('safeSearch', $this->_params)) { - return $this->_params['safeSearch']; - } - return $this; - } - - /** - * Set the value of the orderby parameter - * - * @param string $value - * @return Zend_Gdata_YouTube_Query Provides a fluent interface - */ - public function setOrderBy($value) - { - if ($value != null) { - $this->_params['orderby'] = $value; - } else { - unset($this->_params['orderby']); - } - return $this; - } - - /** - * Return the value of the format parameter - * - * @return string|null The value of format if it exists, null otherwise. - */ - public function getFormat() - { - if (array_key_exists('format', $this->_params)) { - return $this->_params['format']; - } else { - return null; - } - } - - /** - * Return the value of the video query that has been set - * - * @return string|null The value of the video query if it exists, - * null otherwise. - */ - public function getVideoQuery() - { - if (array_key_exists('vq', $this->_params)) { - return $this->_params['vq']; - } else { - return null; - } - } - - /** - * Return the value of the time parameter - * - * @return string|null The time parameter if it exists, null otherwise. - */ - public function getTime() - { - if (array_key_exists('time', $this->_params)) { - return $this->_params['time']; - } else { - return null; - } - } - - /** - * Return the value of the orderby parameter if it exists - * - * @return string|null The value of orderby if it exists, null otherwise. - */ - public function getOrderBy() - { - if (array_key_exists('orderby', $this->_params)) { - return $this->_params['orderby']; - } else { - return null; - } - } - - /** - * Generate the query string from the URL parameters, optionally modifying - * them based on protocol version. - * - * @param integer $majorProtocolVersion The major protocol version - * @param integer $minorProtocolVersion The minor protocol version - * @throws Zend_Gdata_App_VersionException - * @return string querystring - */ - public function getQueryString($majorProtocolVersion = null, - $minorProtocolVersion = null) - { - $queryArray = array(); - - foreach ($this->_params as $name => $value) { - if (substr($name, 0, 1) == '_') { - continue; - } - - switch($name) { - case 'location-radius': - if ($majorProtocolVersion == 1) { - throw new Zend_Gdata_App_VersionException("The $name " . - "parameter is only supported in version 2."); - } - break; - - case 'racy': - if ($majorProtocolVersion == 2) { - throw new Zend_Gdata_App_VersionException("The $name " . - "parameter is not supported in version 2. " . - "Please use 'safeSearch'."); - } - break; - - case 'safeSearch': - if ($majorProtocolVersion == 1) { - throw new Zend_Gdata_App_VersionException("The $name " . - "parameter is only supported in version 2. " . - "Please use 'racy'."); - } - break; - - case 'uploader': - if ($majorProtocolVersion == 1) { - throw new Zend_Gdata_App_VersionException("The $name " . - "parameter is only supported in version 2."); - } - break; - - case 'vq': - if ($majorProtocolVersion == 2) { - $name = 'q'; - } - break; - } - - $queryArray[] = urlencode($name) . '=' . urlencode($value); - - } - if (count($queryArray) > 0) { - return '?' . implode('&', $queryArray); - } else { - return ''; - } - } - - /** - * Returns the generated full query URL, optionally modifying it based on - * the protocol version. - * - * @param integer $majorProtocolVersion The major protocol version - * @param integer $minorProtocolVersion The minor protocol version - * @return string The URL - */ - public function getQueryUrl($majorProtocolVersion = null, - $minorProtocolVersion = null) - { - if (isset($this->_url)) { - $url = $this->_url; - } else { - $url = Zend_Gdata_YouTube::VIDEO_URI; - } - if ($this->getCategory() !== null) { - $url .= '/-/' . $this->getCategory(); - } - $url = $url . $this->getQueryString($majorProtocolVersion, - $minorProtocolVersion); - return $url; - } - -}