| 1 |
<?php |
| 2 |
/* |
| 3 |
* Copyright (c) 2010 Google Inc. |
| 4 |
* |
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 6 |
* use this file except in compliance with the License. You may obtain a copy of |
| 7 |
* the License at |
| 8 |
* |
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
* |
| 11 |
* Unless required by applicable law or agreed to in writing, software |
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 |
* License for the specific language governing permissions and limitations under |
| 15 |
* the License. |
| 16 |
*/ |
| 17 |
|
| 18 |
require_once 'service/apiModel.php'; |
| 19 |
require_once 'service/apiService.php'; |
| 20 |
require_once 'service/apiServiceRequest.php'; |
| 21 |
|
| 22 |
|
| 23 |
/** |
| 24 |
* The "blogs" collection of methods. |
| 25 |
* Typical usage is: |
| 26 |
* <code> |
| 27 |
* $bloggerService = new apiBloggerService(...); |
| 28 |
* $blogs = $bloggerService->blogs; |
| 29 |
* </code> |
| 30 |
*/ |
| 31 |
class BlogsServiceResource extends apiServiceResource { |
| 32 |
|
| 33 |
|
| 34 |
/** |
| 35 |
* Gets one blog by id. (blogs.get) |
| 36 |
* |
| 37 |
* @param string $blogId The ID of the blog to get. |
| 38 |
* @return Blog |
| 39 |
*/ |
| 40 |
public function get($blogId, $optParams = array()) { |
| 41 |
$params = array('blogId' => $blogId); |
| 42 |
$params = array_merge($params, $optParams); |
| 43 |
$data = $this->__call('get', array($params)); |
| 44 |
if ($this->useObjects()) { |
| 45 |
return new Blog($data); |
| 46 |
} else { |
| 47 |
return $data; |
| 48 |
} |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
/** |
| 53 |
* The "posts" collection of methods. |
| 54 |
* Typical usage is: |
| 55 |
* <code> |
| 56 |
* $bloggerService = new apiBloggerService(...); |
| 57 |
* $posts = $bloggerService->posts; |
| 58 |
* </code> |
| 59 |
*/ |
| 60 |
class PostsServiceResource extends apiServiceResource { |
| 61 |
|
| 62 |
|
| 63 |
/** |
| 64 |
* Retrieves a list of posts, possibly filtered. (posts.list) |
| 65 |
* |
| 66 |
* @param string $blogId ID of the blog to fetch posts from. |
| 67 |
* @param array $optParams Optional parameters. Valid optional parameters are listed below. |
| 68 |
* |
| 69 |
* @opt_param string pageToken Continuation token if the request is paged. |
| 70 |
* @opt_param bool fetchBodies Whether the body content of posts is included. |
| 71 |
* @opt_param string maxResults Maximum number of posts to fetch. |
| 72 |
* @opt_param string startDate Earliest post date to fetch. |
| 73 |
* @return PostList |
| 74 |
*/ |
| 75 |
public function listPosts($blogId, $optParams = array()) { |
| 76 |
$params = array('blogId' => $blogId); |
| 77 |
$params = array_merge($params, $optParams); |
| 78 |
$data = $this->__call('list', array($params)); |
| 79 |
if ($this->useObjects()) { |
| 80 |
return new PostList($data); |
| 81 |
} else { |
| 82 |
return $data; |
| 83 |
} |
| 84 |
} |
| 85 |
/** |
| 86 |
* Get a post by id. (posts.get) |
| 87 |
* |
| 88 |
* @param string $blogId ID of the blog to fetch the post from. |
| 89 |
* @param string $postId The ID of the post |
| 90 |
* @return Post |
| 91 |
*/ |
| 92 |
public function get($blogId, $postId, $optParams = array()) { |
| 93 |
$params = array('blogId' => $blogId, 'postId' => $postId); |
| 94 |
$params = array_merge($params, $optParams); |
| 95 |
$data = $this->__call('get', array($params)); |
| 96 |
if ($this->useObjects()) { |
| 97 |
return new Post($data); |
| 98 |
} else { |
| 99 |
return $data; |
| 100 |
} |
| 101 |
} |
| 102 |
} |
| 103 |
|
| 104 |
/** |
| 105 |
* The "pages" collection of methods. |
| 106 |
* Typical usage is: |
| 107 |
* <code> |
| 108 |
* $bloggerService = new apiBloggerService(...); |
| 109 |
* $pages = $bloggerService->pages; |
| 110 |
* </code> |
| 111 |
*/ |
| 112 |
class PagesServiceResource extends apiServiceResource { |
| 113 |
|
| 114 |
|
| 115 |
/** |
| 116 |
* Retrieves pages for a blog, possibly filtered. (pages.list) |
| 117 |
* |
| 118 |
* @param string $blogId ID of the blog to fetch pages from. |
| 119 |
* @param array $optParams Optional parameters. Valid optional parameters are listed below. |
| 120 |
* |
| 121 |
* @opt_param bool fetchBodies Whether to retrieve the Page bodies. |
| 122 |
* @return PageList |
| 123 |
*/ |
| 124 |
public function listPages($blogId, $optParams = array()) { |
| 125 |
$params = array('blogId' => $blogId); |
| 126 |
$params = array_merge($params, $optParams); |
| 127 |
$data = $this->__call('list', array($params)); |
| 128 |
if ($this->useObjects()) { |
| 129 |
return new PageList($data); |
| 130 |
} else { |
| 131 |
return $data; |
| 132 |
} |
| 133 |
} |
| 134 |
/** |
| 135 |
* Gets one blog page by id. (pages.get) |
| 136 |
* |
| 137 |
* @param string $blogId ID of the blog containing the page. |
| 138 |
* @param string $pageId The ID of the page to get. |
| 139 |
* @return Page |
| 140 |
*/ |
| 141 |
public function get($blogId, $pageId, $optParams = array()) { |
| 142 |
$params = array('blogId' => $blogId, 'pageId' => $pageId); |
| 143 |
$params = array_merge($params, $optParams); |
| 144 |
$data = $this->__call('get', array($params)); |
| 145 |
if ($this->useObjects()) { |
| 146 |
return new Page($data); |
| 147 |
} else { |
| 148 |
return $data; |
| 149 |
} |
| 150 |
} |
| 151 |
} |
| 152 |
|
| 153 |
/** |
| 154 |
* The "comments" collection of methods. |
| 155 |
* Typical usage is: |
| 156 |
* <code> |
| 157 |
* $bloggerService = new apiBloggerService(...); |
| 158 |
* $comments = $bloggerService->comments; |
| 159 |
* </code> |
| 160 |
*/ |
| 161 |
class CommentsServiceResource extends apiServiceResource { |
| 162 |
|
| 163 |
|
| 164 |
/** |
| 165 |
* Retrieves the comments for a blog, possibly filtered. (comments.list) |
| 166 |
* |
| 167 |
* @param string $blogId ID of the blog to fetch comments from. |
| 168 |
* @param string $postId ID of the post to fetch posts from. |
| 169 |
* @param array $optParams Optional parameters. Valid optional parameters are listed below. |
| 170 |
* |
| 171 |
* @opt_param string startDate Earliest date of comment to fetch. |
| 172 |
* @opt_param string maxResults Maximum number of comments to include in the result. |
| 173 |
* @opt_param string pageToken Continuation token if request is paged. |
| 174 |
* @opt_param bool fetchBodies Whether the body content of the comments is included. |
| 175 |
* @return CommentList |
| 176 |
*/ |
| 177 |
public function listComments($blogId, $postId, $optParams = array()) { |
| 178 |
$params = array('blogId' => $blogId, 'postId' => $postId); |
| 179 |
$params = array_merge($params, $optParams); |
| 180 |
$data = $this->__call('list', array($params)); |
| 181 |
if ($this->useObjects()) { |
| 182 |
return new CommentList($data); |
| 183 |
} else { |
| 184 |
return $data; |
| 185 |
} |
| 186 |
} |
| 187 |
/** |
| 188 |
* Gets one comment by id. (comments.get) |
| 189 |
* |
| 190 |
* @param string $blogId ID of the blog to containing the comment. |
| 191 |
* @param string $postId ID of the post to fetch posts from. |
| 192 |
* @param string $commentId The ID of the comment to get. |
| 193 |
* @return Comment |
| 194 |
*/ |
| 195 |
public function get($blogId, $postId, $commentId, $optParams = array()) { |
| 196 |
$params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); |
| 197 |
$params = array_merge($params, $optParams); |
| 198 |
$data = $this->__call('get', array($params)); |
| 199 |
if ($this->useObjects()) { |
| 200 |
return new Comment($data); |
| 201 |
} else { |
| 202 |
return $data; |
| 203 |
} |
| 204 |
} |
| 205 |
} |
| 206 |
|
| 207 |
/** |
| 208 |
* The "users" collection of methods. |
| 209 |
* Typical usage is: |
| 210 |
* <code> |
| 211 |
* $bloggerService = new apiBloggerService(...); |
| 212 |
* $users = $bloggerService->users; |
| 213 |
* </code> |
| 214 |
*/ |
| 215 |
class UsersServiceResource extends apiServiceResource { |
| 216 |
|
| 217 |
|
| 218 |
/** |
| 219 |
* Gets one user by id. (users.get) |
| 220 |
* |
| 221 |
* @param string $userId The ID of the user to get. |
| 222 |
* @return User |
| 223 |
*/ |
| 224 |
public function get($userId, $optParams = array()) { |
| 225 |
$params = array('userId' => $userId); |
| 226 |
$params = array_merge($params, $optParams); |
| 227 |
$data = $this->__call('get', array($params)); |
| 228 |
if ($this->useObjects()) { |
| 229 |
return new User($data); |
| 230 |
} else { |
| 231 |
return $data; |
| 232 |
} |
| 233 |
} |
| 234 |
} |
| 235 |
|
| 236 |
|
| 237 |
/** |
| 238 |
* The "blogs" collection of methods. |
| 239 |
* Typical usage is: |
| 240 |
* <code> |
| 241 |
* $bloggerService = new apiBloggerService(...); |
| 242 |
* $blogs = $bloggerService->blogs; |
| 243 |
* </code> |
| 244 |
*/ |
| 245 |
class UsersBlogsServiceResource extends apiServiceResource { |
| 246 |
|
| 247 |
|
| 248 |
/** |
| 249 |
* Retrieves a list of blogs, possibly filtered. (blogs.list) |
| 250 |
* |
| 251 |
* @param string $userId ID of the user whose blogs are to be fetched. |
| 252 |
* @return BlogList |
| 253 |
*/ |
| 254 |
public function listUsersBlogs($userId, $optParams = array()) { |
| 255 |
$params = array('userId' => $userId); |
| 256 |
$params = array_merge($params, $optParams); |
| 257 |
$data = $this->__call('list', array($params)); |
| 258 |
if ($this->useObjects()) { |
| 259 |
return new BlogList($data); |
| 260 |
} else { |
| 261 |
return $data; |
| 262 |
} |
| 263 |
} |
| 264 |
} |
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
/** |
| 269 |
* Service definition for Blogger (v2). |
| 270 |
* |
| 271 |
* <p> |
| 272 |
* API for access to the data within Blogger. |
| 273 |
* </p> |
| 274 |
* |
| 275 |
* <p> |
| 276 |
* For more information about this service, see the |
| 277 |
* <a href="https://code.google.com/apis/blogger/docs/2.0/json/getting_started.html" target="_blank">API Documentation</a> |
| 278 |
* </p> |
| 279 |
* |
| 280 |
* @author Google, Inc. |
| 281 |
*/ |
| 282 |
class apiBloggerService extends apiService { |
| 283 |
public $blogs; |
| 284 |
public $posts; |
| 285 |
public $pages; |
| 286 |
public $comments; |
| 287 |
public $users; |
| 288 |
public $users_blogs; |
| 289 |
/** |
| 290 |
* Constructs the internal representation of the Blogger service. |
| 291 |
* |
| 292 |
* @param apiClient apiClient |
| 293 |
*/ |
| 294 |
public function __construct(apiClient $apiClient) { |
| 295 |
$this->rpcPath = '/rpc'; |
| 296 |
$this->restBasePath = '/blogger/v2/'; |
| 297 |
$this->version = 'v2'; |
| 298 |
$this->serviceName = 'blogger'; |
| 299 |
|
| 300 |
$apiClient->addService($this->serviceName, $this->version); |
| 301 |
$this->blogs = new BlogsServiceResource($this, $this->serviceName, 'blogs', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.blogs.get", "httpMethod": "GET", "path": "blogs/{blogId}", "response": {"$ref": "Blog"}}}}', true)); |
| 302 |
$this->posts = new PostsServiceResource($this, $this->serviceName, 'posts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"format": "uint32", "type": "integer", "location": "query"}, "startDate": {"type": "string", "location": "query"}}, "id": "blogger.posts.list", "httpMethod": "GET", "path": "blogs/{blogId}/posts", "response": {"$ref": "PostList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.posts.get", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}", "response": {"$ref": "Post"}}}}', true)); |
| 303 |
$this->pages = new PagesServiceResource($this, $this->serviceName, 'pages', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.pages.list", "httpMethod": "GET", "path": "blogs/{blogId}/pages", "response": {"$ref": "PageList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"pageId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.pages.get", "httpMethod": "GET", "path": "blogs/{blogId}/pages/{pageId}", "response": {"$ref": "Page"}}}}', true)); |
| 304 |
$this->comments = new CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"startDate": {"type": "string", "location": "query"}, "postId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"format": "uint32", "type": "integer", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.comments.list", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}/comments", "response": {"$ref": "CommentList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.comments.get", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}/comments/{commentId}", "response": {"$ref": "Comment"}}}}', true)); |
| 305 |
$this->users = new UsersServiceResource($this, $this->serviceName, 'users', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.users.get", "httpMethod": "GET", "path": "users/{userId}", "response": {"$ref": "User"}}}}', true)); |
| 306 |
$this->users_blogs = new UsersBlogsServiceResource($this, $this->serviceName, 'blogs', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.users.blogs.list", "httpMethod": "GET", "path": "users/{userId}/blogs", "response": {"$ref": "BlogList"}}}}', true)); |
| 307 |
} |
| 308 |
} |
| 309 |
|
| 310 |
class Blog extends apiModel { |
| 311 |
public $kind; |
| 312 |
public $description; |
| 313 |
protected $__localeType = 'BlogLocale'; |
| 314 |
protected $__localeDataType = ''; |
| 315 |
public $locale; |
| 316 |
protected $__postsType = 'BlogPosts'; |
| 317 |
protected $__postsDataType = ''; |
| 318 |
public $posts; |
| 319 |
public $updated; |
| 320 |
public $id; |
| 321 |
public $url; |
| 322 |
public $published; |
| 323 |
protected $__pagesType = 'BlogPages'; |
| 324 |
protected $__pagesDataType = ''; |
| 325 |
public $pages; |
| 326 |
public $selfLink; |
| 327 |
public $name; |
| 328 |
public function setKind($kind) { |
| 329 |
$this->kind = $kind; |
| 330 |
} |
| 331 |
public function getKind() { |
| 332 |
return $this->kind; |
| 333 |
} |
| 334 |
public function setDescription($description) { |
| 335 |
$this->description = $description; |
| 336 |
} |
| 337 |
public function getDescription() { |
| 338 |
return $this->description; |
| 339 |
} |
| 340 |
public function setLocale(BlogLocale $locale) { |
| 341 |
$this->locale = $locale; |
| 342 |
} |
| 343 |
public function getLocale() { |
| 344 |
return $this->locale; |
| 345 |
} |
| 346 |
public function setPosts(BlogPosts $posts) { |
| 347 |
$this->posts = $posts; |
| 348 |
} |
| 349 |
public function getPosts() { |
| 350 |
return $this->posts; |
| 351 |
} |
| 352 |
public function setUpdated($updated) { |
| 353 |
$this->updated = $updated; |
| 354 |
} |
| 355 |
public function getUpdated() { |
| 356 |
return $this->updated; |
| 357 |
} |
| 358 |
public function setId($id) { |
| 359 |
$this->id = $id; |
| 360 |
} |
| 361 |
public function getId() { |
| 362 |
return $this->id; |
| 363 |
} |
| 364 |
public function setUrl($url) { |
| 365 |
$this->url = $url; |
| 366 |
} |
| 367 |
public function getUrl() { |
| 368 |
return $this->url; |
| 369 |
} |
| 370 |
public function setPublished($published) { |
| 371 |
$this->published = $published; |
| 372 |
} |
| 373 |
public function getPublished() { |
| 374 |
return $this->published; |
| 375 |
} |
| 376 |
public function setPages(BlogPages $pages) { |
| 377 |
$this->pages = $pages; |
| 378 |
} |
| 379 |
public function getPages() { |
| 380 |
return $this->pages; |
| 381 |
} |
| 382 |
public function setSelfLink($selfLink) { |
| 383 |
$this->selfLink = $selfLink; |
| 384 |
} |
| 385 |
public function getSelfLink() { |
| 386 |
return $this->selfLink; |
| 387 |
} |
| 388 |
public function setName($name) { |
| 389 |
$this->name = $name; |
| 390 |
} |
| 391 |
public function getName() { |
| 392 |
return $this->name; |
| 393 |
} |
| 394 |
} |
| 395 |
|
| 396 |
class BlogList extends apiModel { |
| 397 |
protected $__itemsType = 'Blog'; |
| 398 |
protected $__itemsDataType = 'array'; |
| 399 |
public $items; |
| 400 |
public $kind; |
| 401 |
public function setItems(/* array(Blog) */ $items) { |
| 402 |
$this->assertIsArray($items, 'Blog', __METHOD__); |
| 403 |
$this->items = $items; |
| 404 |
} |
| 405 |
public function getItems() { |
| 406 |
return $this->items; |
| 407 |
} |
| 408 |
public function setKind($kind) { |
| 409 |
$this->kind = $kind; |
| 410 |
} |
| 411 |
public function getKind() { |
| 412 |
return $this->kind; |
| 413 |
} |
| 414 |
} |
| 415 |
|
| 416 |
class BlogLocale extends apiModel { |
| 417 |
public $country; |
| 418 |
public $variant; |
| 419 |
public $language; |
| 420 |
public function setCountry($country) { |
| 421 |
$this->country = $country; |
| 422 |
} |
| 423 |
public function getCountry() { |
| 424 |
return $this->country; |
| 425 |
} |
| 426 |
public function setVariant($variant) { |
| 427 |
$this->variant = $variant; |
| 428 |
} |
| 429 |
public function getVariant() { |
| 430 |
return $this->variant; |
| 431 |
} |
| 432 |
public function setLanguage($language) { |
| 433 |
$this->language = $language; |
| 434 |
} |
| 435 |
public function getLanguage() { |
| 436 |
return $this->language; |
| 437 |
} |
| 438 |
} |
| 439 |
|
| 440 |
class BlogPages extends apiModel { |
| 441 |
public $totalItems; |
| 442 |
public $selfLink; |
| 443 |
public function setTotalItems($totalItems) { |
| 444 |
$this->totalItems = $totalItems; |
| 445 |
} |
| 446 |
public function getTotalItems() { |
| 447 |
return $this->totalItems; |
| 448 |
} |
| 449 |
public function setSelfLink($selfLink) { |
| 450 |
$this->selfLink = $selfLink; |
| 451 |
} |
| 452 |
public function getSelfLink() { |
| 453 |
return $this->selfLink; |
| 454 |
} |
| 455 |
} |
| 456 |
|
| 457 |
class BlogPosts extends apiModel { |
| 458 |
public $totalItems; |
| 459 |
public $selfLink; |
| 460 |
public function setTotalItems($totalItems) { |
| 461 |
$this->totalItems = $totalItems; |
| 462 |
} |
| 463 |
public function getTotalItems() { |
| 464 |
return $this->totalItems; |
| 465 |
} |
| 466 |
public function setSelfLink($selfLink) { |
| 467 |
$this->selfLink = $selfLink; |
| 468 |
} |
| 469 |
public function getSelfLink() { |
| 470 |
return $this->selfLink; |
| 471 |
} |
| 472 |
} |
| 473 |
|
| 474 |
class Comment extends apiModel { |
| 475 |
public $content; |
| 476 |
public $kind; |
| 477 |
protected $__authorType = 'CommentAuthor'; |
| 478 |
protected $__authorDataType = ''; |
| 479 |
public $author; |
| 480 |
public $updated; |
| 481 |
protected $__blogType = 'CommentBlog'; |
| 482 |
protected $__blogDataType = ''; |
| 483 |
public $blog; |
| 484 |
public $published; |
| 485 |
protected $__postType = 'CommentPost'; |
| 486 |
protected $__postDataType = ''; |
| 487 |
public $post; |
| 488 |
public $id; |
| 489 |
public $selfLink; |
| 490 |
public function setContent($content) { |
| 491 |
$this->content = $content; |
| 492 |
} |
| 493 |
public function getContent() { |
| 494 |
return $this->content; |
| 495 |
} |
| 496 |
public function setKind($kind) { |
| 497 |
$this->kind = $kind; |
| 498 |
} |
| 499 |
public function getKind() { |
| 500 |
return $this->kind; |
| 501 |
} |
| 502 |
public function setAuthor(CommentAuthor $author) { |
| 503 |
$this->author = $author; |
| 504 |
} |
| 505 |
public function getAuthor() { |
| 506 |
return $this->author; |
| 507 |
} |
| 508 |
public function setUpdated($updated) { |
| 509 |
$this->updated = $updated; |
| 510 |
} |
| 511 |
public function getUpdated() { |
| 512 |
return $this->updated; |
| 513 |
} |
| 514 |
public function setBlog(CommentBlog $blog) { |
| 515 |
$this->blog = $blog; |
| 516 |
} |
| 517 |
public function getBlog() { |
| 518 |
return $this->blog; |
| 519 |
} |
| 520 |
public function setPublished($published) { |
| 521 |
$this->published = $published; |
| 522 |
} |
| 523 |
public function getPublished() { |
| 524 |
return $this->published; |
| 525 |
} |
| 526 |
public function setPost(CommentPost $post) { |
| 527 |
$this->post = $post; |
| 528 |
} |
| 529 |
public function getPost() { |
| 530 |
return $this->post; |
| 531 |
} |
| 532 |
public function setId($id) { |
| 533 |
$this->id = $id; |
| 534 |
} |
| 535 |
public function getId() { |
| 536 |
return $this->id; |
| 537 |
} |
| 538 |
public function setSelfLink($selfLink) { |
| 539 |
$this->selfLink = $selfLink; |
| 540 |
} |
| 541 |
public function getSelfLink() { |
| 542 |
return $this->selfLink; |
| 543 |
} |
| 544 |
} |
| 545 |
|
| 546 |
class CommentAuthor extends apiModel { |
| 547 |
public $url; |
| 548 |
protected $__imageType = 'CommentAuthorImage'; |
| 549 |
protected $__imageDataType = ''; |
| 550 |
public $image; |
| 551 |
public $displayName; |
| 552 |
public $id; |
| 553 |
public function setUrl($url) { |
| 554 |
$this->url = $url; |
| 555 |
} |
| 556 |
public function getUrl() { |
| 557 |
return $this->url; |
| 558 |
} |
| 559 |
public function setImage(CommentAuthorImage $image) { |
| 560 |
$this->image = $image; |
| 561 |
} |
| 562 |
public function getImage() { |
| 563 |
return $this->image; |
| 564 |
} |
| 565 |
public function setDisplayName($displayName) { |
| 566 |
$this->displayName = $displayName; |
| 567 |
} |
| 568 |
public function getDisplayName() { |
| 569 |
return $this->displayName; |
| 570 |
} |
| 571 |
public function setId($id) { |
| 572 |
$this->id = $id; |
| 573 |
} |
| 574 |
public function getId() { |
| 575 |
return $this->id; |
| 576 |
} |
| 577 |
} |
| 578 |
|
| 579 |
class CommentAuthorImage extends apiModel { |
| 580 |
public $url; |
| 581 |
public function setUrl($url) { |
| 582 |
$this->url = $url; |
| 583 |
} |
| 584 |
public function getUrl() { |
| 585 |
return $this->url; |
| 586 |
} |
| 587 |
} |
| 588 |
|
| 589 |
class CommentBlog extends apiModel { |
| 590 |
public $id; |
| 591 |
public function setId($id) { |
| 592 |
$this->id = $id; |
| 593 |
} |
| 594 |
public function getId() { |
| 595 |
return $this->id; |
| 596 |
} |
| 597 |
} |
| 598 |
|
| 599 |
class CommentList extends apiModel { |
| 600 |
public $nextPageToken; |
| 601 |
protected $__itemsType = 'Comment'; |
| 602 |
protected $__itemsDataType = 'array'; |
| 603 |
public $items; |
| 604 |
public $kind; |
| 605 |
public $prevPageToken; |
| 606 |
public function setNextPageToken($nextPageToken) { |
| 607 |
$this->nextPageToken = $nextPageToken; |
| 608 |
} |
| 609 |
public function getNextPageToken() { |
| 610 |
return $this->nextPageToken; |
| 611 |
} |
| 612 |
public function setItems(/* array(Comment) */ $items) { |
| 613 |
$this->assertIsArray($items, 'Comment', __METHOD__); |
| 614 |
$this->items = $items; |
| 615 |
} |
| 616 |
public function getItems() { |
| 617 |
return $this->items; |
| 618 |
} |
| 619 |
public function setKind($kind) { |
| 620 |
$this->kind = $kind; |
| 621 |
} |
| 622 |
public function getKind() { |
| 623 |
return $this->kind; |
| 624 |
} |
| 625 |
public function setPrevPageToken($prevPageToken) { |
| 626 |
$this->prevPageToken = $prevPageToken; |
| 627 |
} |
| 628 |
public function getPrevPageToken() { |
| 629 |
return $this->prevPageToken; |
| 630 |
} |
| 631 |
} |
| 632 |
|
| 633 |
class CommentPost extends apiModel { |
| 634 |
public $id; |
| 635 |
public function setId($id) { |
| 636 |
$this->id = $id; |
| 637 |
} |
| 638 |
public function getId() { |
| 639 |
return $this->id; |
| 640 |
} |
| 641 |
} |
| 642 |
|
| 643 |
class Page extends apiModel { |
| 644 |
public $content; |
| 645 |
public $kind; |
| 646 |
protected $__authorType = 'PageAuthor'; |
| 647 |
protected $__authorDataType = ''; |
| 648 |
public $author; |
| 649 |
public $url; |
| 650 |
public $title; |
| 651 |
public $updated; |
| 652 |
protected $__blogType = 'PageBlog'; |
| 653 |
protected $__blogDataType = ''; |
| 654 |
public $blog; |
| 655 |
public $published; |
| 656 |
public $id; |
| 657 |
public $selfLink; |
| 658 |
public function setContent($content) { |
| 659 |
$this->content = $content; |
| 660 |
} |
| 661 |
public function getContent() { |
| 662 |
return $this->content; |
| 663 |
} |
| 664 |
public function setKind($kind) { |
| 665 |
$this->kind = $kind; |
| 666 |
} |
| 667 |
public function getKind() { |
| 668 |
return $this->kind; |
| 669 |
} |
| 670 |
public function setAuthor(PageAuthor $author) { |
| 671 |
$this->author = $author; |
| 672 |
} |
| 673 |
public function getAuthor() { |
| 674 |
return $this->author; |
| 675 |
} |
| 676 |
public function setUrl($url) { |
| 677 |
$this->url = $url; |
| 678 |
} |
| 679 |
public function getUrl() { |
| 680 |
return $this->url; |
| 681 |
} |
| 682 |
public function setTitle($title) { |
| 683 |
$this->title = $title; |
| 684 |
} |
| 685 |
public function getTitle() { |
| 686 |
return $this->title; |
| 687 |
} |
| 688 |
public function setUpdated($updated) { |
| 689 |
$this->updated = $updated; |
| 690 |
} |
| 691 |
public function getUpdated() { |
| 692 |
return $this->updated; |
| 693 |
} |
| 694 |
public function setBlog(PageBlog $blog) { |
| 695 |
$this->blog = $blog; |
| 696 |
} |
| 697 |
public function getBlog() { |
| 698 |
return $this->blog; |
| 699 |
} |
| 700 |
public function setPublished($published) { |
| 701 |
$this->published = $published; |
| 702 |
} |
| 703 |
public function getPublished() { |
| 704 |
return $this->published; |
| 705 |
} |
| 706 |
public function setId($id) { |
| 707 |
$this->id = $id; |
| 708 |
} |
| 709 |
public function getId() { |
| 710 |
return $this->id; |
| 711 |
} |
| 712 |
public function setSelfLink($selfLink) { |
| 713 |
$this->selfLink = $selfLink; |
| 714 |
} |
| 715 |
public function getSelfLink() { |
| 716 |
return $this->selfLink; |
| 717 |
} |
| 718 |
} |
| 719 |
|
| 720 |
class PageAuthor extends apiModel { |
| 721 |
public $url; |
| 722 |
protected $__imageType = 'PageAuthorImage'; |
| 723 |
protected $__imageDataType = ''; |
| 724 |
public $image; |
| 725 |
public $displayName; |
| 726 |
public $id; |
| 727 |
public function setUrl($url) { |
| 728 |
$this->url = $url; |
| 729 |
} |
| 730 |
public function getUrl() { |
| 731 |
return $this->url; |
| 732 |
} |
| 733 |
public function setImage(PageAuthorImage $image) { |
| 734 |
$this->image = $image; |
| 735 |
} |
| 736 |
public function getImage() { |
| 737 |
return $this->image; |
| 738 |
} |
| 739 |
public function setDisplayName($displayName) { |
| 740 |
$this->displayName = $displayName; |
| 741 |
} |
| 742 |
public function getDisplayName() { |
| 743 |
return $this->displayName; |
| 744 |
} |
| 745 |
public function setId($id) { |
| 746 |
$this->id = $id; |
| 747 |
} |
| 748 |
public function getId() { |
| 749 |
return $this->id; |
| 750 |
} |
| 751 |
} |
| 752 |
|
| 753 |
class PageAuthorImage extends apiModel { |
| 754 |
public $url; |
| 755 |
public function setUrl($url) { |
| 756 |
$this->url = $url; |
| 757 |
} |
| 758 |
public function getUrl() { |
| 759 |
return $this->url; |
| 760 |
} |
| 761 |
} |
| 762 |
|
| 763 |
class PageBlog extends apiModel { |
| 764 |
public $id; |
| 765 |
public function setId($id) { |
| 766 |
$this->id = $id; |
| 767 |
} |
| 768 |
public function getId() { |
| 769 |
return $this->id; |
| 770 |
} |
| 771 |
} |
| 772 |
|
| 773 |
class PageList extends apiModel { |
| 774 |
protected $__itemsType = 'Page'; |
| 775 |
protected $__itemsDataType = 'array'; |
| 776 |
public $items; |
| 777 |
public $kind; |
| 778 |
public function setItems(/* array(Page) */ $items) { |
| 779 |
$this->assertIsArray($items, 'Page', __METHOD__); |
| 780 |
$this->items = $items; |
| 781 |
} |
| 782 |
public function getItems() { |
| 783 |
return $this->items; |
| 784 |
} |
| 785 |
public function setKind($kind) { |
| 786 |
$this->kind = $kind; |
| 787 |
} |
| 788 |
public function getKind() { |
| 789 |
return $this->kind; |
| 790 |
} |
| 791 |
} |
| 792 |
|
| 793 |
class Post extends apiModel { |
| 794 |
public $content; |
| 795 |
public $kind; |
| 796 |
protected $__authorType = 'PostAuthor'; |
| 797 |
protected $__authorDataType = ''; |
| 798 |
public $author; |
| 799 |
protected $__repliesType = 'PostReplies'; |
| 800 |
protected $__repliesDataType = ''; |
| 801 |
public $replies; |
| 802 |
public $labels; |
| 803 |
public $updated; |
| 804 |
protected $__blogType = 'PostBlog'; |
| 805 |
protected $__blogDataType = ''; |
| 806 |
public $blog; |
| 807 |
public $url; |
| 808 |
public $published; |
| 809 |
public $title; |
| 810 |
public $id; |
| 811 |
public $selfLink; |
| 812 |
public function setContent($content) { |
| 813 |
$this->content = $content; |
| 814 |
} |
| 815 |
public function getContent() { |
| 816 |
return $this->content; |
| 817 |
} |
| 818 |
public function setKind($kind) { |
| 819 |
$this->kind = $kind; |
| 820 |
} |
| 821 |
public function getKind() { |
| 822 |
return $this->kind; |
| 823 |
} |
| 824 |
public function setAuthor(PostAuthor $author) { |
| 825 |
$this->author = $author; |
| 826 |
} |
| 827 |
public function getAuthor() { |
| 828 |
return $this->author; |
| 829 |
} |
| 830 |
public function setReplies(PostReplies $replies) { |
| 831 |
$this->replies = $replies; |
| 832 |
} |
| 833 |
public function getReplies() { |
| 834 |
return $this->replies; |
| 835 |
} |
| 836 |
public function setLabels(/* array(string) */ $labels) { |
| 837 |
$this->assertIsArray($labels, 'string', __METHOD__); |
| 838 |
$this->labels = $labels; |
| 839 |
} |
| 840 |
public function getLabels() { |
| 841 |
return $this->labels; |
| 842 |
} |
| 843 |
public function setUpdated($updated) { |
| 844 |
$this->updated = $updated; |
| 845 |
} |
| 846 |
public function getUpdated() { |
| 847 |
return $this->updated; |
| 848 |
} |
| 849 |
public function setBlog(PostBlog $blog) { |
| 850 |
$this->blog = $blog; |
| 851 |
} |
| 852 |
public function getBlog() { |
| 853 |
return $this->blog; |
| 854 |
} |
| 855 |
public function setUrl($url) { |
| 856 |
$this->url = $url; |
| 857 |
} |
| 858 |
public function getUrl() { |
| 859 |
return $this->url; |
| 860 |
} |
| 861 |
public function setPublished($published) { |
| 862 |
$this->published = $published; |
| 863 |
} |
| 864 |
public function getPublished() { |
| 865 |
return $this->published; |
| 866 |
} |
| 867 |
public function setTitle($title) { |
| 868 |
$this->title = $title; |
| 869 |
} |
| 870 |
public function getTitle() { |
| 871 |
return $this->title; |
| 872 |
} |
| 873 |
public function setId($id) { |
| 874 |
$this->id = $id; |
| 875 |
} |
| 876 |
public function getId() { |
| 877 |
return $this->id; |
| 878 |
} |
| 879 |
public function setSelfLink($selfLink) { |
| 880 |
$this->selfLink = $selfLink; |
| 881 |
} |
| 882 |
public function getSelfLink() { |
| 883 |
return $this->selfLink; |
| 884 |
} |
| 885 |
} |
| 886 |
|
| 887 |
class PostAuthor extends apiModel { |
| 888 |
public $url; |
| 889 |
protected $__imageType = 'PostAuthorImage'; |
| 890 |
protected $__imageDataType = ''; |
| 891 |
public $image; |
| 892 |
public $displayName; |
| 893 |
public $id; |
| 894 |
public function setUrl($url) { |
| 895 |
$this->url = $url; |
| 896 |
} |
| 897 |
public function getUrl() { |
| 898 |
return $this->url; |
| 899 |
} |
| 900 |
public function setImage(PostAuthorImage $image) { |
| 901 |
$this->image = $image; |
| 902 |
} |
| 903 |
public function getImage() { |
| 904 |
return $this->image; |
| 905 |
} |
| 906 |
public function setDisplayName($displayName) { |
| 907 |
$this->displayName = $displayName; |
| 908 |
} |
| 909 |
public function getDisplayName() { |
| 910 |
return $this->displayName; |
| 911 |
} |
| 912 |
public function setId($id) { |
| 913 |
$this->id = $id; |
| 914 |
} |
| 915 |
public function getId() { |
| 916 |
return $this->id; |
| 917 |
} |
| 918 |
} |
| 919 |
|
| 920 |
class PostAuthorImage extends apiModel { |
| 921 |
public $url; |
| 922 |
public function setUrl($url) { |
| 923 |
$this->url = $url; |
| 924 |
} |
| 925 |
public function getUrl() { |
| 926 |
return $this->url; |
| 927 |
} |
| 928 |
} |
| 929 |
|
| 930 |
class PostBlog extends apiModel { |
| 931 |
public $id; |
| 932 |
public function setId($id) { |
| 933 |
$this->id = $id; |
| 934 |
} |
| 935 |
public function getId() { |
| 936 |
return $this->id; |
| 937 |
} |
| 938 |
} |
| 939 |
|
| 940 |
class PostList extends apiModel { |
| 941 |
public $nextPageToken; |
| 942 |
protected $__itemsType = 'Post'; |
| 943 |
protected $__itemsDataType = 'array'; |
| 944 |
public $items; |
| 945 |
public $kind; |
| 946 |
public $prevPageToken; |
| 947 |
public function setNextPageToken($nextPageToken) { |
| 948 |
$this->nextPageToken = $nextPageToken; |
| 949 |
} |
| 950 |
public function getNextPageToken() { |
| 951 |
return $this->nextPageToken; |
| 952 |
} |
| 953 |
public function setItems(/* array(Post) */ $items) { |
| 954 |
$this->assertIsArray($items, 'Post', __METHOD__); |
| 955 |
$this->items = $items; |
| 956 |
} |
| 957 |
public function getItems() { |
| 958 |
return $this->items; |
| 959 |
} |
| 960 |
public function setKind($kind) { |
| 961 |
$this->kind = $kind; |
| 962 |
} |
| 963 |
public function getKind() { |
| 964 |
return $this->kind; |
| 965 |
} |
| 966 |
public function setPrevPageToken($prevPageToken) { |
| 967 |
$this->prevPageToken = $prevPageToken; |
| 968 |
} |
| 969 |
public function getPrevPageToken() { |
| 970 |
return $this->prevPageToken; |
| 971 |
} |
| 972 |
} |
| 973 |
|
| 974 |
class PostReplies extends apiModel { |
| 975 |
public $totalItems; |
| 976 |
public $selfLink; |
| 977 |
public function setTotalItems($totalItems) { |
| 978 |
$this->totalItems = $totalItems; |
| 979 |
} |
| 980 |
public function getTotalItems() { |
| 981 |
return $this->totalItems; |
| 982 |
} |
| 983 |
public function setSelfLink($selfLink) { |
| 984 |
$this->selfLink = $selfLink; |
| 985 |
} |
| 986 |
public function getSelfLink() { |
| 987 |
return $this->selfLink; |
| 988 |
} |
| 989 |
} |
| 990 |
|
| 991 |
class User extends apiModel { |
| 992 |
public $about; |
| 993 |
public $displayName; |
| 994 |
public $created; |
| 995 |
protected $__localeType = 'UserLocale'; |
| 996 |
protected $__localeDataType = ''; |
| 997 |
public $locale; |
| 998 |
protected $__blogsType = 'UserBlogs'; |
| 999 |
protected $__blogsDataType = ''; |
| 1000 |
public $blogs; |
| 1001 |
public $kind; |
| 1002 |
public $url; |
| 1003 |
public $id; |
| 1004 |
public $selfLink; |
| 1005 |
public function setAbout($about) { |
| 1006 |
$this->about = $about; |
| 1007 |
} |
| 1008 |
public function getAbout() { |
| 1009 |
return $this->about; |
| 1010 |
} |
| 1011 |
public function setDisplayName($displayName) { |
| 1012 |
$this->displayName = $displayName; |
| 1013 |
} |
| 1014 |
public function getDisplayName() { |
| 1015 |
return $this->displayName; |
| 1016 |
} |
| 1017 |
public function setCreated($created) { |
| 1018 |
$this->created = $created; |
| 1019 |
} |
| 1020 |
public function getCreated() { |
| 1021 |
return $this->created; |
| 1022 |
} |
| 1023 |
public function setLocale(UserLocale $locale) { |
| 1024 |
$this->locale = $locale; |
| 1025 |
} |
| 1026 |
public function getLocale() { |
| 1027 |
return $this->locale; |
| 1028 |
} |
| 1029 |
public function setBlogs(UserBlogs $blogs) { |
| 1030 |
$this->blogs = $blogs; |
| 1031 |
} |
| 1032 |
public function getBlogs() { |
| 1033 |
return $this->blogs; |
| 1034 |
} |
| 1035 |
public function setKind($kind) { |
| 1036 |
$this->kind = $kind; |
| 1037 |
} |
| 1038 |
public function getKind() { |
| 1039 |
return $this->kind; |
| 1040 |
} |
| 1041 |
public function setUrl($url) { |
| 1042 |
$this->url = $url; |
| 1043 |
} |
| 1044 |
public function getUrl() { |
| 1045 |
return $this->url; |
| 1046 |
} |
| 1047 |
public function setId($id) { |
| 1048 |
$this->id = $id; |
| 1049 |
} |
| 1050 |
public function getId() { |
| 1051 |
return $this->id; |
| 1052 |
} |
| 1053 |
public function setSelfLink($selfLink) { |
| 1054 |
$this->selfLink = $selfLink; |
| 1055 |
} |
| 1056 |
public function getSelfLink() { |
| 1057 |
return $this->selfLink; |
| 1058 |
} |
| 1059 |
} |
| 1060 |
|
| 1061 |
class UserBlogs extends apiModel { |
| 1062 |
public $selfLink; |
| 1063 |
public function setSelfLink($selfLink) { |
| 1064 |
$this->selfLink = $selfLink; |
| 1065 |
} |
| 1066 |
public function getSelfLink() { |
| 1067 |
return $this->selfLink; |
| 1068 |
} |
| 1069 |
} |
| 1070 |
|
| 1071 |
class UserLocale extends apiModel { |
| 1072 |
public $country; |
| 1073 |
public $variant; |
| 1074 |
public $language; |
| 1075 |
public function setCountry($country) { |
| 1076 |
$this->country = $country; |
| 1077 |
} |
| 1078 |
public function getCountry() { |
| 1079 |
return $this->country; |
| 1080 |
} |
| 1081 |
public function setVariant($variant) { |
| 1082 |
$this->variant = $variant; |
| 1083 |
} |
| 1084 |
public function getVariant() { |
| 1085 |
return $this->variant; |
| 1086 |
} |
| 1087 |
public function setLanguage($language) { |
| 1088 |
$this->language = $language; |
| 1089 |
} |
| 1090 |
public function getLanguage() { |
| 1091 |
return $this->language; |
| 1092 |
} |
| 1093 |
} |
| 1094 |
|