gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
+307
View File
@@ -0,0 +1,307 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class Blog extends \Google\Model
{
public const STATUS_LIVE = 'LIVE';
public const STATUS_DELETED = 'DELETED';
/**
* The JSON custom meta-data for the Blog.
*
* @deprecated
* @var string
*/
public $customMetaData;
/**
* The description of this blog. This is displayed underneath the title.
*
* @var string
*/
public $description;
/**
* The identifier for this resource.
*
* @var string
*/
public $id;
/**
* The kind of this entry. Always blogger#blog.
*
* @var string
*/
public $kind;
protected $localeType = BlogLocale::class;
protected $localeDataType = '';
/**
* The name of this blog. This is displayed as the title.
*
* @var string
*/
public $name;
protected $pagesType = BlogPages::class;
protected $pagesDataType = '';
protected $postsType = BlogPosts::class;
protected $postsDataType = '';
/**
* RFC 3339 date-time when this blog was published.
*
* @var string
*/
public $published;
/**
* The API REST URL to fetch this resource from.
*
* @var string
*/
public $selfLink;
/**
* The status of the blog.
*
* @var string
*/
public $status;
/**
* RFC 3339 date-time when this blog was last updated.
*
* @var string
*/
public $updated;
/**
* The URL where this blog is published.
*
* @var string
*/
public $url;
/**
* The JSON custom meta-data for the Blog.
*
* @deprecated
* @param string $customMetaData
*/
public function setCustomMetaData($customMetaData)
{
$this->customMetaData = $customMetaData;
}
/**
* @deprecated
* @return string
*/
public function getCustomMetaData()
{
return $this->customMetaData;
}
/**
* The description of this blog. This is displayed underneath the title.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The identifier for this resource.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The kind of this entry. Always blogger#blog.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The locale this Blog is set to.
*
* @param BlogLocale $locale
*/
public function setLocale(BlogLocale $locale)
{
$this->locale = $locale;
}
/**
* @return BlogLocale
*/
public function getLocale()
{
return $this->locale;
}
/**
* The name of this blog. This is displayed as the title.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The container of pages in this blog.
*
* @param BlogPages $pages
*/
public function setPages(BlogPages $pages)
{
$this->pages = $pages;
}
/**
* @return BlogPages
*/
public function getPages()
{
return $this->pages;
}
/**
* The container of posts in this blog.
*
* @param BlogPosts $posts
*/
public function setPosts(BlogPosts $posts)
{
$this->posts = $posts;
}
/**
* @return BlogPosts
*/
public function getPosts()
{
return $this->posts;
}
/**
* RFC 3339 date-time when this blog was published.
*
* @param string $published
*/
public function setPublished($published)
{
$this->published = $published;
}
/**
* @return string
*/
public function getPublished()
{
return $this->published;
}
/**
* The API REST URL to fetch this resource from.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The status of the blog.
*
* Accepted values: LIVE, DELETED
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* RFC 3339 date-time when this blog was last updated.
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* The URL where this blog is published.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Blog::class, 'Google_Service_Blogger_Blog');
@@ -0,0 +1,85 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class BlogList extends \Google\Collection
{
protected $collection_key = 'items';
protected $blogUserInfosType = BlogUserInfo::class;
protected $blogUserInfosDataType = 'array';
protected $itemsType = Blog::class;
protected $itemsDataType = 'array';
/**
* The kind of this entity. Always blogger#blogList.
*
* @var string
*/
public $kind;
/**
* Admin level list of blog per-user information.
*
* @param BlogUserInfo[] $blogUserInfos
*/
public function setBlogUserInfos($blogUserInfos)
{
$this->blogUserInfos = $blogUserInfos;
}
/**
* @return BlogUserInfo[]
*/
public function getBlogUserInfos()
{
return $this->blogUserInfos;
}
/**
* The list of Blogs this user has Authorship or Admin rights over.
*
* @param Blog[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Blog[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of this entity. Always blogger#blogList.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogList::class, 'Google_Service_Blogger_BlogList');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class BlogLocale extends \Google\Model
{
/**
* The country this blog's locale is set to.
*
* @var string
*/
public $country;
/**
* The language this blog is authored in.
*
* @var string
*/
public $language;
/**
* The language variant this blog is authored in.
*
* @var string
*/
public $variant;
/**
* The country this blog's locale is set to.
*
* @param string $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* The language this blog is authored in.
*
* @param string $language
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* The language variant this blog is authored in.
*
* @param string $variant
*/
public function setVariant($variant)
{
$this->variant = $variant;
}
/**
* @return string
*/
public function getVariant()
{
return $this->variant;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogLocale::class, 'Google_Service_Blogger_BlogLocale');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class BlogPages extends \Google\Model
{
/**
* The URL of the container for pages in this blog.
*
* @var string
*/
public $selfLink;
/**
* The count of pages in this blog.
*
* @var int
*/
public $totalItems;
/**
* The URL of the container for pages in this blog.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The count of pages in this blog.
*
* @param int $totalItems
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return int
*/
public function getTotalItems()
{
return $this->totalItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogPages::class, 'Google_Service_Blogger_BlogPages');
@@ -0,0 +1,166 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class BlogPerUserInfo extends \Google\Model
{
public const ROLE_VIEW_TYPE_UNSPECIFIED = 'VIEW_TYPE_UNSPECIFIED';
public const ROLE_READER = 'READER';
public const ROLE_AUTHOR = 'AUTHOR';
public const ROLE_ADMIN = 'ADMIN';
/**
* ID of the Blog resource.
*
* @var string
*/
public $blogId;
/**
* True if the user has Admin level access to the blog.
*
* @var bool
*/
public $hasAdminAccess;
/**
* The kind of this entity. Always blogger#blogPerUserInfo.
*
* @var string
*/
public $kind;
/**
* The Photo Album Key for the user when adding photos to the blog.
*
* @var string
*/
public $photosAlbumKey;
/**
* Access permissions that the user has for the blog (ADMIN, AUTHOR, or
* READER).
*
* @var string
*/
public $role;
/**
* ID of the User.
*
* @var string
*/
public $userId;
/**
* ID of the Blog resource.
*
* @param string $blogId
*/
public function setBlogId($blogId)
{
$this->blogId = $blogId;
}
/**
* @return string
*/
public function getBlogId()
{
return $this->blogId;
}
/**
* True if the user has Admin level access to the blog.
*
* @param bool $hasAdminAccess
*/
public function setHasAdminAccess($hasAdminAccess)
{
$this->hasAdminAccess = $hasAdminAccess;
}
/**
* @return bool
*/
public function getHasAdminAccess()
{
return $this->hasAdminAccess;
}
/**
* The kind of this entity. Always blogger#blogPerUserInfo.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The Photo Album Key for the user when adding photos to the blog.
*
* @param string $photosAlbumKey
*/
public function setPhotosAlbumKey($photosAlbumKey)
{
$this->photosAlbumKey = $photosAlbumKey;
}
/**
* @return string
*/
public function getPhotosAlbumKey()
{
return $this->photosAlbumKey;
}
/**
* Access permissions that the user has for the blog (ADMIN, AUTHOR, or
* READER).
*
* Accepted values: VIEW_TYPE_UNSPECIFIED, READER, AUTHOR, ADMIN
*
* @param self::ROLE_* $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return self::ROLE_*
*/
public function getRole()
{
return $this->role;
}
/**
* ID of the User.
*
* @param string $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogPerUserInfo::class, 'Google_Service_Blogger_BlogPerUserInfo');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class BlogPosts extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Post::class;
protected $itemsDataType = 'array';
/**
* The URL of the container for posts in this blog.
*
* @var string
*/
public $selfLink;
/**
* The count of posts in this blog.
*
* @var int
*/
public $totalItems;
/**
* The List of Posts for this Blog.
*
* @param Post[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Post[]
*/
public function getItems()
{
return $this->items;
}
/**
* The URL of the container for posts in this blog.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The count of posts in this blog.
*
* @param int $totalItems
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return int
*/
public function getTotalItems()
{
return $this->totalItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogPosts::class, 'Google_Service_Blogger_BlogPosts');
@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class BlogUserInfo extends \Google\Model
{
protected $internal_gapi_mappings = [
"blogUserInfo" => "blog_user_info",
];
protected $blogType = Blog::class;
protected $blogDataType = '';
protected $blogUserInfoType = BlogPerUserInfo::class;
protected $blogUserInfoDataType = '';
/**
* The kind of this entity. Always blogger#blogUserInfo.
*
* @var string
*/
public $kind;
/**
* The Blog resource.
*
* @param Blog $blog
*/
public function setBlog(Blog $blog)
{
$this->blog = $blog;
}
/**
* @return Blog
*/
public function getBlog()
{
return $this->blog;
}
/**
* Information about a User for the Blog.
*
* @param BlogPerUserInfo $blogUserInfo
*/
public function setBlogUserInfo(BlogPerUserInfo $blogUserInfo)
{
$this->blogUserInfo = $blogUserInfo;
}
/**
* @return BlogPerUserInfo
*/
public function getBlogUserInfo()
{
return $this->blogUserInfo;
}
/**
* The kind of this entity. Always blogger#blogUserInfo.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogUserInfo::class, 'Google_Service_Blogger_BlogUserInfo');
+258
View File
@@ -0,0 +1,258 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class Comment extends \Google\Model
{
public const STATUS_LIVE = 'LIVE';
public const STATUS_EMPTIED = 'EMPTIED';
public const STATUS_PENDING = 'PENDING';
public const STATUS_SPAM = 'SPAM';
protected $authorType = CommentAuthor::class;
protected $authorDataType = '';
protected $blogType = CommentBlog::class;
protected $blogDataType = '';
/**
* The actual content of the comment. May include HTML markup.
*
* @var string
*/
public $content;
/**
* The identifier for this resource.
*
* @var string
*/
public $id;
protected $inReplyToType = CommentInReplyTo::class;
protected $inReplyToDataType = '';
/**
* The kind of this entry. Always blogger#comment.
*
* @var string
*/
public $kind;
protected $postType = CommentPost::class;
protected $postDataType = '';
/**
* RFC 3339 date-time when this comment was published.
*
* @var string
*/
public $published;
/**
* The API REST URL to fetch this resource from.
*
* @var string
*/
public $selfLink;
/**
* The status of the comment (only populated for admin users).
*
* @var string
*/
public $status;
/**
* RFC 3339 date-time when this comment was last updated.
*
* @var string
*/
public $updated;
/**
* The author of this Comment.
*
* @param CommentAuthor $author
*/
public function setAuthor(CommentAuthor $author)
{
$this->author = $author;
}
/**
* @return CommentAuthor
*/
public function getAuthor()
{
return $this->author;
}
/**
* Data about the blog containing this comment.
*
* @param CommentBlog $blog
*/
public function setBlog(CommentBlog $blog)
{
$this->blog = $blog;
}
/**
* @return CommentBlog
*/
public function getBlog()
{
return $this->blog;
}
/**
* The actual content of the comment. May include HTML markup.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* The identifier for this resource.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Data about the comment this is in reply to.
*
* @param CommentInReplyTo $inReplyTo
*/
public function setInReplyTo(CommentInReplyTo $inReplyTo)
{
$this->inReplyTo = $inReplyTo;
}
/**
* @return CommentInReplyTo
*/
public function getInReplyTo()
{
return $this->inReplyTo;
}
/**
* The kind of this entry. Always blogger#comment.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Data about the post containing this comment.
*
* @param CommentPost $post
*/
public function setPost(CommentPost $post)
{
$this->post = $post;
}
/**
* @return CommentPost
*/
public function getPost()
{
return $this->post;
}
/**
* RFC 3339 date-time when this comment was published.
*
* @param string $published
*/
public function setPublished($published)
{
$this->published = $published;
}
/**
* @return string
*/
public function getPublished()
{
return $this->published;
}
/**
* The API REST URL to fetch this resource from.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The status of the comment (only populated for admin users).
*
* Accepted values: LIVE, EMPTIED, PENDING, SPAM
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* RFC 3339 date-time when this comment was last updated.
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Comment::class, 'Google_Service_Blogger_Comment');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class CommentAuthor extends \Google\Model
{
/**
* The display name.
*
* @var string
*/
public $displayName;
/**
* The identifier of the creator.
*
* @var string
*/
public $id;
protected $imageType = CommentAuthorImage::class;
protected $imageDataType = '';
/**
* The URL of the creator's Profile page.
*
* @var string
*/
public $url;
/**
* The display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The identifier of the creator.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The creator's avatar.
*
* @param CommentAuthorImage $image
*/
public function setImage(CommentAuthorImage $image)
{
$this->image = $image;
}
/**
* @return CommentAuthorImage
*/
public function getImage()
{
return $this->image;
}
/**
* The URL of the creator's Profile page.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentAuthor::class, 'Google_Service_Blogger_CommentAuthor');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class CommentAuthorImage extends \Google\Model
{
/**
* The creator's avatar URL.
*
* @var string
*/
public $url;
/**
* The creator's avatar URL.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentAuthorImage::class, 'Google_Service_Blogger_CommentAuthorImage');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class CommentBlog extends \Google\Model
{
/**
* The identifier of the blog containing this comment.
*
* @var string
*/
public $id;
/**
* The identifier of the blog containing this comment.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentBlog::class, 'Google_Service_Blogger_CommentBlog');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class CommentInReplyTo extends \Google\Model
{
/**
* The identified of the parent of this comment.
*
* @var string
*/
public $id;
/**
* The identified of the parent of this comment.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentInReplyTo::class, 'Google_Service_Blogger_CommentInReplyTo');
@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class CommentList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* Etag of the response.
*
* @var string
*/
public $etag;
protected $itemsType = Comment::class;
protected $itemsDataType = 'array';
/**
* The kind of this entry. Always blogger#commentList.
*
* @var string
*/
public $kind;
/**
* Pagination token to fetch the next page, if one exists.
*
* @var string
*/
public $nextPageToken;
/**
* Pagination token to fetch the previous page, if one exists.
*
* @var string
*/
public $prevPageToken;
/**
* Etag of the response.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The List of Comments for a Post.
*
* @param Comment[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Comment[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of this entry. Always blogger#commentList.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Pagination token to fetch the next page, if one exists.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Pagination token to fetch the previous page, if one exists.
*
* @param string $prevPageToken
*/
public function setPrevPageToken($prevPageToken)
{
$this->prevPageToken = $prevPageToken;
}
/**
* @return string
*/
public function getPrevPageToken()
{
return $this->prevPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentList::class, 'Google_Service_Blogger_CommentList');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class CommentPost extends \Google\Model
{
/**
* The identifier of the post containing this comment.
*
* @var string
*/
public $id;
/**
* The identifier of the post containing this comment.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentPost::class, 'Google_Service_Blogger_CommentPost');
+311
View File
@@ -0,0 +1,311 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class Page extends \Google\Model
{
public const STATUS_LIVE = 'LIVE';
public const STATUS_DRAFT = 'DRAFT';
public const STATUS_SOFT_TRASHED = 'SOFT_TRASHED';
protected $authorType = PageAuthor::class;
protected $authorDataType = '';
protected $blogType = PageBlog::class;
protected $blogDataType = '';
/**
* The body content of this Page, in HTML.
*
* @var string
*/
public $content;
/**
* Etag of the resource.
*
* @var string
*/
public $etag;
/**
* The identifier for this resource.
*
* @var string
*/
public $id;
/**
* The kind of this entity. Always blogger#page.
*
* @var string
*/
public $kind;
/**
* RFC 3339 date-time when this Page was published.
*
* @var string
*/
public $published;
/**
* The API REST URL to fetch this resource from.
*
* @var string
*/
public $selfLink;
/**
* The status of the page for admin resources (either LIVE or DRAFT).
*
* @var string
*/
public $status;
/**
* The title of this entity. This is the name displayed in the Admin user
* interface.
*
* @var string
*/
public $title;
/**
* RFC 3339 date-time when this Page was trashed.
*
* @var string
*/
public $trashed;
/**
* RFC 3339 date-time when this Page was last updated.
*
* @var string
*/
public $updated;
/**
* The URL that this Page is displayed at.
*
* @var string
*/
public $url;
/**
* The author of this Page.
*
* @param PageAuthor $author
*/
public function setAuthor(PageAuthor $author)
{
$this->author = $author;
}
/**
* @return PageAuthor
*/
public function getAuthor()
{
return $this->author;
}
/**
* Data about the blog containing this Page.
*
* @param PageBlog $blog
*/
public function setBlog(PageBlog $blog)
{
$this->blog = $blog;
}
/**
* @return PageBlog
*/
public function getBlog()
{
return $this->blog;
}
/**
* The body content of this Page, in HTML.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Etag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The identifier for this resource.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The kind of this entity. Always blogger#page.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* RFC 3339 date-time when this Page was published.
*
* @param string $published
*/
public function setPublished($published)
{
$this->published = $published;
}
/**
* @return string
*/
public function getPublished()
{
return $this->published;
}
/**
* The API REST URL to fetch this resource from.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The status of the page for admin resources (either LIVE or DRAFT).
*
* Accepted values: LIVE, DRAFT, SOFT_TRASHED
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* The title of this entity. This is the name displayed in the Admin user
* interface.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* RFC 3339 date-time when this Page was trashed.
*
* @param string $trashed
*/
public function setTrashed($trashed)
{
$this->trashed = $trashed;
}
/**
* @return string
*/
public function getTrashed()
{
return $this->trashed;
}
/**
* RFC 3339 date-time when this Page was last updated.
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* The URL that this Page is displayed at.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Page::class, 'Google_Service_Blogger_Page');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PageAuthor extends \Google\Model
{
/**
* The display name.
*
* @var string
*/
public $displayName;
/**
* The identifier of the creator.
*
* @var string
*/
public $id;
protected $imageType = PageAuthorImage::class;
protected $imageDataType = '';
/**
* The URL of the creator's Profile page.
*
* @var string
*/
public $url;
/**
* The display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The identifier of the creator.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The creator's avatar.
*
* @param PageAuthorImage $image
*/
public function setImage(PageAuthorImage $image)
{
$this->image = $image;
}
/**
* @return PageAuthorImage
*/
public function getImage()
{
return $this->image;
}
/**
* The URL of the creator's Profile page.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageAuthor::class, 'Google_Service_Blogger_PageAuthor');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PageAuthorImage extends \Google\Model
{
/**
* The creator's avatar URL.
*
* @var string
*/
public $url;
/**
* The creator's avatar URL.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageAuthorImage::class, 'Google_Service_Blogger_PageAuthorImage');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PageBlog extends \Google\Model
{
/**
* The identifier of the blog containing this page.
*
* @var string
*/
public $id;
/**
* The identifier of the blog containing this page.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageBlog::class, 'Google_Service_Blogger_PageBlog');
@@ -0,0 +1,111 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PageList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* Etag of the response.
*
* @var string
*/
public $etag;
protected $itemsType = Page::class;
protected $itemsDataType = 'array';
/**
* The kind of this entity. Always blogger#pageList.
*
* @var string
*/
public $kind;
/**
* Pagination token to fetch the next page, if one exists.
*
* @var string
*/
public $nextPageToken;
/**
* Etag of the response.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The list of Pages for a Blog.
*
* @param Page[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Page[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of this entity. Always blogger#pageList.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Pagination token to fetch the next page, if one exists.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageList::class, 'Google_Service_Blogger_PageList');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class Pageviews extends \Google\Collection
{
protected $collection_key = 'counts';
/**
* Blog Id.
*
* @var string
*/
public $blogId;
protected $countsType = PageviewsCounts::class;
protected $countsDataType = 'array';
/**
* The kind of this entry. Always blogger#page_views.
*
* @var string
*/
public $kind;
/**
* Blog Id.
*
* @param string $blogId
*/
public function setBlogId($blogId)
{
$this->blogId = $blogId;
}
/**
* @return string
*/
public function getBlogId()
{
return $this->blogId;
}
/**
* The container of posts in this blog.
*
* @param PageviewsCounts[] $counts
*/
public function setCounts($counts)
{
$this->counts = $counts;
}
/**
* @return PageviewsCounts[]
*/
public function getCounts()
{
return $this->counts;
}
/**
* The kind of this entry. Always blogger#page_views.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Pageviews::class, 'Google_Service_Blogger_Pageviews');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PageviewsCounts extends \Google\Model
{
public const TIME_RANGE_ALL_TIME = 'ALL_TIME';
public const TIME_RANGE_THIRTY_DAYS = 'THIRTY_DAYS';
public const TIME_RANGE_SEVEN_DAYS = 'SEVEN_DAYS';
/**
* Count of page views for the given time range.
*
* @var string
*/
public $count;
/**
* Time range the given count applies to.
*
* @var string
*/
public $timeRange;
/**
* Count of page views for the given time range.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* Time range the given count applies to.
*
* Accepted values: ALL_TIME, THIRTY_DAYS, SEVEN_DAYS
*
* @param self::TIME_RANGE_* $timeRange
*/
public function setTimeRange($timeRange)
{
$this->timeRange = $timeRange;
}
/**
* @return self::TIME_RANGE_*
*/
public function getTimeRange()
{
return $this->timeRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageviewsCounts::class, 'Google_Service_Blogger_PageviewsCounts');
+461
View File
@@ -0,0 +1,461 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class Post extends \Google\Collection
{
public const READER_COMMENTS_ALLOW = 'ALLOW';
public const READER_COMMENTS_DONT_ALLOW_SHOW_EXISTING = 'DONT_ALLOW_SHOW_EXISTING';
public const READER_COMMENTS_DONT_ALLOW_HIDE_EXISTING = 'DONT_ALLOW_HIDE_EXISTING';
public const STATUS_LIVE = 'LIVE';
public const STATUS_DRAFT = 'DRAFT';
public const STATUS_SCHEDULED = 'SCHEDULED';
public const STATUS_SOFT_TRASHED = 'SOFT_TRASHED';
protected $collection_key = 'labels';
protected $authorType = PostAuthor::class;
protected $authorDataType = '';
protected $blogType = PostBlog::class;
protected $blogDataType = '';
/**
* The content of the Post. May contain HTML markup.
*
* @var string
*/
public $content;
/**
* The JSON meta-data for the Post.
*
* @deprecated
* @var string
*/
public $customMetaData;
/**
* Etag of the resource.
*
* @var string
*/
public $etag;
/**
* The identifier of this Post.
*
* @var string
*/
public $id;
protected $imagesType = PostImages::class;
protected $imagesDataType = 'array';
/**
* The kind of this entity. Always blogger#post.
*
* @var string
*/
public $kind;
/**
* The list of labels this Post was tagged with.
*
* @var string[]
*/
public $labels;
protected $locationType = PostLocation::class;
protected $locationDataType = '';
/**
* RFC 3339 date-time when this Post was published.
*
* @var string
*/
public $published;
/**
* Comment control and display setting for readers of this post.
*
* @var string
*/
public $readerComments;
protected $repliesType = PostReplies::class;
protected $repliesDataType = '';
/**
* The API REST URL to fetch this resource from.
*
* @var string
*/
public $selfLink;
/**
* Status of the post. Only set for admin-level requests.
*
* @var string
*/
public $status;
/**
* The title of the Post.
*
* @var string
*/
public $title;
/**
* The title link URL, similar to atom's related link.
*
* @var string
*/
public $titleLink;
/**
* RFC 3339 date-time when this Post was last trashed.
*
* @var string
*/
public $trashed;
/**
* RFC 3339 date-time when this Post was last updated.
*
* @var string
*/
public $updated;
/**
* The URL where this Post is displayed.
*
* @var string
*/
public $url;
/**
* The author of this Post.
*
* @param PostAuthor $author
*/
public function setAuthor(PostAuthor $author)
{
$this->author = $author;
}
/**
* @return PostAuthor
*/
public function getAuthor()
{
return $this->author;
}
/**
* Data about the blog containing this Post.
*
* @param PostBlog $blog
*/
public function setBlog(PostBlog $blog)
{
$this->blog = $blog;
}
/**
* @return PostBlog
*/
public function getBlog()
{
return $this->blog;
}
/**
* The content of the Post. May contain HTML markup.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* The JSON meta-data for the Post.
*
* @deprecated
* @param string $customMetaData
*/
public function setCustomMetaData($customMetaData)
{
$this->customMetaData = $customMetaData;
}
/**
* @deprecated
* @return string
*/
public function getCustomMetaData()
{
return $this->customMetaData;
}
/**
* Etag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The identifier of this Post.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Display image for the Post.
*
* @param PostImages[] $images
*/
public function setImages($images)
{
$this->images = $images;
}
/**
* @return PostImages[]
*/
public function getImages()
{
return $this->images;
}
/**
* The kind of this entity. Always blogger#post.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The list of labels this Post was tagged with.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The location for geotagged posts.
*
* @param PostLocation $location
*/
public function setLocation(PostLocation $location)
{
$this->location = $location;
}
/**
* @return PostLocation
*/
public function getLocation()
{
return $this->location;
}
/**
* RFC 3339 date-time when this Post was published.
*
* @param string $published
*/
public function setPublished($published)
{
$this->published = $published;
}
/**
* @return string
*/
public function getPublished()
{
return $this->published;
}
/**
* Comment control and display setting for readers of this post.
*
* Accepted values: ALLOW, DONT_ALLOW_SHOW_EXISTING, DONT_ALLOW_HIDE_EXISTING
*
* @param self::READER_COMMENTS_* $readerComments
*/
public function setReaderComments($readerComments)
{
$this->readerComments = $readerComments;
}
/**
* @return self::READER_COMMENTS_*
*/
public function getReaderComments()
{
return $this->readerComments;
}
/**
* The container of comments on this Post.
*
* @param PostReplies $replies
*/
public function setReplies(PostReplies $replies)
{
$this->replies = $replies;
}
/**
* @return PostReplies
*/
public function getReplies()
{
return $this->replies;
}
/**
* The API REST URL to fetch this resource from.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Status of the post. Only set for admin-level requests.
*
* Accepted values: LIVE, DRAFT, SCHEDULED, SOFT_TRASHED
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* The title of the Post.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* The title link URL, similar to atom's related link.
*
* @param string $titleLink
*/
public function setTitleLink($titleLink)
{
$this->titleLink = $titleLink;
}
/**
* @return string
*/
public function getTitleLink()
{
return $this->titleLink;
}
/**
* RFC 3339 date-time when this Post was last trashed.
*
* @param string $trashed
*/
public function setTrashed($trashed)
{
$this->trashed = $trashed;
}
/**
* @return string
*/
public function getTrashed()
{
return $this->trashed;
}
/**
* RFC 3339 date-time when this Post was last updated.
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* The URL where this Post is displayed.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Post::class, 'Google_Service_Blogger_Post');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PostAuthor extends \Google\Model
{
/**
* The display name.
*
* @var string
*/
public $displayName;
/**
* The identifier of the creator.
*
* @var string
*/
public $id;
protected $imageType = PostAuthorImage::class;
protected $imageDataType = '';
/**
* The URL of the creator's Profile page.
*
* @var string
*/
public $url;
/**
* The display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The identifier of the creator.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The creator's avatar.
*
* @param PostAuthorImage $image
*/
public function setImage(PostAuthorImage $image)
{
$this->image = $image;
}
/**
* @return PostAuthorImage
*/
public function getImage()
{
return $this->image;
}
/**
* The URL of the creator's Profile page.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostAuthor::class, 'Google_Service_Blogger_PostAuthor');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PostAuthorImage extends \Google\Model
{
/**
* The creator's avatar URL.
*
* @var string
*/
public $url;
/**
* The creator's avatar URL.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostAuthorImage::class, 'Google_Service_Blogger_PostAuthorImage');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PostBlog extends \Google\Model
{
/**
* The identifier of the Blog that contains this Post.
*
* @var string
*/
public $id;
/**
* The identifier of the Blog that contains this Post.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostBlog::class, 'Google_Service_Blogger_PostBlog');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PostImages extends \Google\Model
{
/**
* @var string
*/
public $url;
/**
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostImages::class, 'Google_Service_Blogger_PostImages');
@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PostList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* Etag of the response.
*
* @var string
*/
public $etag;
protected $itemsType = Post::class;
protected $itemsDataType = 'array';
/**
* The kind of this entity. Always blogger#postList.
*
* @var string
*/
public $kind;
/**
* Pagination token to fetch the next page, if one exists.
*
* @var string
*/
public $nextPageToken;
/**
* Pagination token to fetch the previous page, if one exists.
*
* @var string
*/
public $prevPageToken;
/**
* Etag of the response.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The list of Posts for this Blog.
*
* @param Post[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Post[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of this entity. Always blogger#postList.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Pagination token to fetch the next page, if one exists.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Pagination token to fetch the previous page, if one exists.
*
* @param string $prevPageToken
*/
public function setPrevPageToken($prevPageToken)
{
$this->prevPageToken = $prevPageToken;
}
/**
* @return string
*/
public function getPrevPageToken()
{
return $this->prevPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostList::class, 'Google_Service_Blogger_PostList');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PostLocation extends \Google\Model
{
/**
* Location's latitude.
*
* @var
*/
public $lat;
/**
* Location's longitude.
*
* @var
*/
public $lng;
/**
* Location name.
*
* @var string
*/
public $name;
/**
* Location's viewport span. Can be used when rendering a map preview.
*
* @var string
*/
public $span;
public function setLat($lat)
{
$this->lat = $lat;
}
public function getLat()
{
return $this->lat;
}
public function setLng($lng)
{
$this->lng = $lng;
}
public function getLng()
{
return $this->lng;
}
/**
* Location name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Location's viewport span. Can be used when rendering a map preview.
*
* @param string $span
*/
public function setSpan($span)
{
$this->span = $span;
}
/**
* @return string
*/
public function getSpan()
{
return $this->span;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostLocation::class, 'Google_Service_Blogger_PostLocation');
@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PostPerUserInfo extends \Google\Model
{
/**
* ID of the Blog that the post resource belongs to.
*
* @var string
*/
public $blogId;
/**
* True if the user has Author level access to the post.
*
* @var bool
*/
public $hasEditAccess;
/**
* The kind of this entity. Always blogger#postPerUserInfo.
*
* @var string
*/
public $kind;
/**
* ID of the Post resource.
*
* @var string
*/
public $postId;
/**
* ID of the User.
*
* @var string
*/
public $userId;
/**
* ID of the Blog that the post resource belongs to.
*
* @param string $blogId
*/
public function setBlogId($blogId)
{
$this->blogId = $blogId;
}
/**
* @return string
*/
public function getBlogId()
{
return $this->blogId;
}
/**
* True if the user has Author level access to the post.
*
* @param bool $hasEditAccess
*/
public function setHasEditAccess($hasEditAccess)
{
$this->hasEditAccess = $hasEditAccess;
}
/**
* @return bool
*/
public function getHasEditAccess()
{
return $this->hasEditAccess;
}
/**
* The kind of this entity. Always blogger#postPerUserInfo.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* ID of the Post resource.
*
* @param string $postId
*/
public function setPostId($postId)
{
$this->postId = $postId;
}
/**
* @return string
*/
public function getPostId()
{
return $this->postId;
}
/**
* ID of the User.
*
* @param string $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostPerUserInfo::class, 'Google_Service_Blogger_PostPerUserInfo');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PostReplies extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Comment::class;
protected $itemsDataType = 'array';
/**
* The URL of the comments on this post.
*
* @var string
*/
public $selfLink;
/**
* The count of comments on this post.
*
* @var string
*/
public $totalItems;
/**
* The List of Comments for this Post.
*
* @param Comment[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Comment[]
*/
public function getItems()
{
return $this->items;
}
/**
* The URL of the comments on this post.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The count of comments on this post.
*
* @param string $totalItems
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return string
*/
public function getTotalItems()
{
return $this->totalItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostReplies::class, 'Google_Service_Blogger_PostReplies');
@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PostUserInfo extends \Google\Model
{
protected $internal_gapi_mappings = [
"postUserInfo" => "post_user_info",
];
/**
* The kind of this entity. Always blogger#postUserInfo.
*
* @var string
*/
public $kind;
protected $postType = Post::class;
protected $postDataType = '';
protected $postUserInfoType = PostPerUserInfo::class;
protected $postUserInfoDataType = '';
/**
* The kind of this entity. Always blogger#postUserInfo.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The Post resource.
*
* @param Post $post
*/
public function setPost(Post $post)
{
$this->post = $post;
}
/**
* @return Post
*/
public function getPost()
{
return $this->post;
}
/**
* Information about a User for the Post.
*
* @param PostPerUserInfo $postUserInfo
*/
public function setPostUserInfo(PostPerUserInfo $postUserInfo)
{
$this->postUserInfo = $postUserInfo;
}
/**
* @return PostPerUserInfo
*/
public function getPostUserInfo()
{
return $this->postUserInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostUserInfo::class, 'Google_Service_Blogger_PostUserInfo');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class PostUserInfosList extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = PostUserInfo::class;
protected $itemsDataType = 'array';
/**
* The kind of this entity. Always blogger#postList.
*
* @var string
*/
public $kind;
/**
* Pagination token to fetch the next page, if one exists.
*
* @var string
*/
public $nextPageToken;
/**
* The list of Posts with User information for the post, for this Blog.
*
* @param PostUserInfo[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return PostUserInfo[]
*/
public function getItems()
{
return $this->items;
}
/**
* The kind of this entity. Always blogger#postList.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Pagination token to fetch the next page, if one exists.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostUserInfosList::class, 'Google_Service_Blogger_PostUserInfosList');
@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger\Resource;
use Google\Service\Blogger\BlogUserInfo;
/**
* The "blogUserInfos" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $blogUserInfos = $bloggerService->blogUserInfos;
* </code>
*/
class BlogUserInfos extends \Google\Service\Resource
{
/**
* Gets one blog and user info pair by blog id and user id. (blogUserInfos.get)
*
* @param string $userId
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string maxPosts
* @return BlogUserInfo
* @throws \Google\Service\Exception
*/
public function get($userId, $blogId, $optParams = [])
{
$params = ['userId' => $userId, 'blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BlogUserInfo::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogUserInfos::class, 'Google_Service_Blogger_Resource_BlogUserInfos');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger\Resource;
use Google\Service\Blogger\Blog;
use Google\Service\Blogger\BlogList;
/**
* The "blogs" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $blogs = $bloggerService->blogs;
* </code>
*/
class Blogs extends \Google\Service\Resource
{
/**
* Gets a blog by id. (blogs.get)
*
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string maxPosts
* @opt_param string view Unspecified is interpreted as READER.
* @return Blog
* @throws \Google\Service\Exception
*/
public function get($blogId, $optParams = [])
{
$params = ['blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Blog::class);
}
/**
* Gets a blog by url. (blogs.getByUrl)
*
* @param string $url
* @param array $optParams Optional parameters.
*
* @opt_param string view Unspecified is interpreted as READER.
* @return Blog
* @throws \Google\Service\Exception
*/
public function getByUrl($url, $optParams = [])
{
$params = ['url' => $url];
$params = array_merge($params, $optParams);
return $this->call('getByUrl', [$params], Blog::class);
}
/**
* Lists blogs by user. (blogs.listByUser)
*
* @param string $userId
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchUserInfo
* @opt_param string role
* @opt_param string status Default value of status is LIVE.
* @opt_param string view Unspecified is interpreted as the user's role on the
* blog.
* @return BlogList
* @throws \Google\Service\Exception
*/
public function listByUser($userId, $optParams = [])
{
$params = ['userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('listByUser', [$params], BlogList::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Blogs::class, 'Google_Service_Blogger_Resource_Blogs');
@@ -0,0 +1,164 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger\Resource;
use Google\Service\Blogger\Comment;
use Google\Service\Blogger\CommentList;
/**
* The "comments" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $comments = $bloggerService->comments;
* </code>
*/
class Comments extends \Google\Service\Resource
{
/**
* Marks a comment as not spam by blog id, post id and comment id.
* (comments.approve)
*
* @param string $blogId
* @param string $postId
* @param string $commentId
* @param array $optParams Optional parameters.
* @return Comment
* @throws \Google\Service\Exception
*/
public function approve($blogId, $postId, $commentId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('approve', [$params], Comment::class);
}
/**
* Deletes a comment by blog id, post id and comment id. (comments.delete)
*
* @param string $blogId
* @param string $postId
* @param string $commentId
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($blogId, $postId, $commentId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a comment by id. (comments.get)
*
* @param string $blogId
* @param string $postId
* @param string $commentId
* @param array $optParams Optional parameters.
*
* @opt_param string view
* @return Comment
* @throws \Google\Service\Exception
*/
public function get($blogId, $postId, $commentId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Comment::class);
}
/**
* Lists comments. (comments.listComments)
*
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
*
* @opt_param string endDate
* @opt_param bool fetchBodies
* @opt_param string maxResults
* @opt_param string pageToken
* @opt_param string startDate
* @opt_param string status
* @opt_param string view
* @return CommentList
* @throws \Google\Service\Exception
*/
public function listComments($blogId, $postId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], CommentList::class);
}
/**
* Lists comments by blog. (comments.listByBlog)
*
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string endDate
* @opt_param bool fetchBodies
* @opt_param string maxResults
* @opt_param string pageToken
* @opt_param string startDate
* @opt_param string status
* @return CommentList
* @throws \Google\Service\Exception
*/
public function listByBlog($blogId, $optParams = [])
{
$params = ['blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('listByBlog', [$params], CommentList::class);
}
/**
* Marks a comment as spam by blog id, post id and comment id.
* (comments.markAsSpam)
*
* @param string $blogId
* @param string $postId
* @param string $commentId
* @param array $optParams Optional parameters.
* @return Comment
* @throws \Google\Service\Exception
*/
public function markAsSpam($blogId, $postId, $commentId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('markAsSpam', [$params], Comment::class);
}
/**
* Removes the content of a comment by blog id, post id and comment id.
* (comments.removeContent)
*
* @param string $blogId
* @param string $postId
* @param string $commentId
* @param array $optParams Optional parameters.
* @return Comment
* @throws \Google\Service\Exception
*/
public function removeContent($blogId, $postId, $commentId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('removeContent', [$params], Comment::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Comments::class, 'Google_Service_Blogger_Resource_Comments');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger\Resource;
use Google\Service\Blogger\Pageviews as PageviewsModel;
/**
* The "pageViews" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $pageViews = $bloggerService->pageViews;
* </code>
*/
class PageViews extends \Google\Service\Resource
{
/**
* Gets page views by blog id. (pageViews.get)
*
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string range
* @return PageviewsModel
* @throws \Google\Service\Exception
*/
public function get($blogId, $optParams = [])
{
$params = ['blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PageviewsModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageViews::class, 'Google_Service_Blogger_Resource_PageViews');
@@ -0,0 +1,174 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger\Resource;
use Google\Service\Blogger\Page;
use Google\Service\Blogger\PageList;
/**
* The "pages" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $pages = $bloggerService->pages;
* </code>
*/
class Pages extends \Google\Service\Resource
{
/**
* Deletes a page by blog id and page id. (pages.delete)
*
* @param string $blogId
* @param string $pageId
* @param array $optParams Optional parameters.
*
* @opt_param bool useTrash Move to Trash if possible
* @throws \Google\Service\Exception
*/
public function delete($blogId, $pageId, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a page by blog id and page id. (pages.get)
*
* @param string $blogId
* @param string $pageId
* @param array $optParams Optional parameters.
*
* @opt_param string view
* @return Page
* @throws \Google\Service\Exception
*/
public function get($blogId, $pageId, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Page::class);
}
/**
* Inserts a page. (pages.insert)
*
* @param string $blogId
* @param Page $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool isDraft
* @return Page
* @throws \Google\Service\Exception
*/
public function insert($blogId, Page $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Page::class);
}
/**
* Lists pages. (pages.listPages)
*
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBodies
* @opt_param string maxResults
* @opt_param string pageToken
* @opt_param string status
* @opt_param string view
* @return PageList
* @throws \Google\Service\Exception
*/
public function listPages($blogId, $optParams = [])
{
$params = ['blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], PageList::class);
}
/**
* Patches a page. (pages.patch)
*
* @param string $blogId
* @param string $pageId
* @param Page $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool publish
* @opt_param bool revert
* @return Page
* @throws \Google\Service\Exception
*/
public function patch($blogId, $pageId, Page $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Page::class);
}
/**
* Publishes a page. (pages.publish)
*
* @param string $blogId
* @param string $pageId
* @param array $optParams Optional parameters.
* @return Page
* @throws \Google\Service\Exception
*/
public function publish($blogId, $pageId, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], Page::class);
}
/**
* Reverts a published or scheduled page to draft state. (pages.revert)
*
* @param string $blogId
* @param string $pageId
* @param array $optParams Optional parameters.
* @return Page
* @throws \Google\Service\Exception
*/
public function revert($blogId, $pageId, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('revert', [$params], Page::class);
}
/**
* Updates a page by blog id and page id. (pages.update)
*
* @param string $blogId
* @param string $pageId
* @param Page $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool publish
* @opt_param bool revert
* @return Page
* @throws \Google\Service\Exception
*/
public function update($blogId, $pageId, Page $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Page::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Pages::class, 'Google_Service_Blogger_Resource_Pages');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger\Resource;
use Google\Service\Blogger\PostUserInfo;
use Google\Service\Blogger\PostUserInfosList;
/**
* The "postUserInfos" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $postUserInfos = $bloggerService->postUserInfos;
* </code>
*/
class PostUserInfos extends \Google\Service\Resource
{
/**
* Gets one post and user info pair, by post_id and user_id. (postUserInfos.get)
*
* @param string $userId
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
*
* @opt_param string maxComments
* @return PostUserInfo
* @throws \Google\Service\Exception
*/
public function get($userId, $blogId, $postId, $optParams = [])
{
$params = ['userId' => $userId, 'blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PostUserInfo::class);
}
/**
* Lists post and user info pairs. (postUserInfos.listPostUserInfos)
*
* @param string $userId
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string endDate
* @opt_param bool fetchBodies
* @opt_param string labels
* @opt_param string maxResults
* @opt_param string orderBy
* @opt_param string pageToken
* @opt_param string startDate
* @opt_param string status
* @opt_param string view
* @return PostUserInfosList
* @throws \Google\Service\Exception
*/
public function listPostUserInfos($userId, $blogId, $optParams = [])
{
$params = ['userId' => $userId, 'blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], PostUserInfosList::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostUserInfos::class, 'Google_Service_Blogger_Resource_PostUserInfos');
@@ -0,0 +1,230 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger\Resource;
use Google\Service\Blogger\Post;
use Google\Service\Blogger\PostList;
/**
* The "posts" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $posts = $bloggerService->posts;
* </code>
*/
class Posts extends \Google\Service\Resource
{
/**
* Deletes a post by blog id and post id. (posts.delete)
*
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
*
* @opt_param bool useTrash Move to Trash if possible
* @throws \Google\Service\Exception
*/
public function delete($blogId, $postId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a post by blog id and post id (posts.get)
*
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBody
* @opt_param bool fetchImages
* @opt_param string maxComments
* @opt_param string view
* @return Post
* @throws \Google\Service\Exception
*/
public function get($blogId, $postId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Post::class);
}
/**
* Gets a post by path. (posts.getByPath)
*
* @param string $blogId
* @param string $path
* @param array $optParams Optional parameters.
*
* @opt_param string maxComments
* @opt_param string view
* @return Post
* @throws \Google\Service\Exception
*/
public function getByPath($blogId, $path, $optParams = [])
{
$params = ['blogId' => $blogId, 'path' => $path];
$params = array_merge($params, $optParams);
return $this->call('getByPath', [$params], Post::class);
}
/**
* Inserts a post. (posts.insert)
*
* @param string $blogId
* @param Post $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBody
* @opt_param bool fetchImages
* @opt_param bool isDraft
* @return Post
* @throws \Google\Service\Exception
*/
public function insert($blogId, Post $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Post::class);
}
/**
* Lists posts. (posts.listPosts)
*
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string endDate
* @opt_param bool fetchBodies
* @opt_param bool fetchImages
* @opt_param string labels
* @opt_param string maxResults
* @opt_param string orderBy
* @opt_param string pageToken
* @opt_param string sortOption Sort direction applied to post list.
* @opt_param string startDate
* @opt_param string status
* @opt_param string view
* @return PostList
* @throws \Google\Service\Exception
*/
public function listPosts($blogId, $optParams = [])
{
$params = ['blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], PostList::class);
}
/**
* Patches a post. (posts.patch)
*
* @param string $blogId
* @param string $postId
* @param Post $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBody
* @opt_param bool fetchImages
* @opt_param string maxComments
* @opt_param bool publish
* @opt_param bool revert
* @return Post
* @throws \Google\Service\Exception
*/
public function patch($blogId, $postId, Post $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Post::class);
}
/**
* Publishes a post. (posts.publish)
*
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
*
* @opt_param string publishDate
* @return Post
* @throws \Google\Service\Exception
*/
public function publish($blogId, $postId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], Post::class);
}
/**
* Reverts a published or scheduled post to draft state. (posts.revert)
*
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
* @return Post
* @throws \Google\Service\Exception
*/
public function revert($blogId, $postId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('revert', [$params], Post::class);
}
/**
* Searches for posts matching given query terms in the specified blog.
* (posts.search)
*
* @param string $blogId
* @param string $q
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBodies
* @opt_param string orderBy
* @return PostList
* @throws \Google\Service\Exception
*/
public function search($blogId, $q, $optParams = [])
{
$params = ['blogId' => $blogId, 'q' => $q];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], PostList::class);
}
/**
* Updates a post by blog id and post id. (posts.update)
*
* @param string $blogId
* @param string $postId
* @param Post $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBody
* @opt_param bool fetchImages
* @opt_param string maxComments
* @opt_param bool publish
* @opt_param bool revert
* @return Post
* @throws \Google\Service\Exception
*/
public function update($blogId, $postId, Post $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Post::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Posts::class, 'Google_Service_Blogger_Resource_Posts');
@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger\Resource;
use Google\Service\Blogger\User;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $users = $bloggerService->users;
* </code>
*/
class Users extends \Google\Service\Resource
{
/**
* Gets one user by user_id. (users.get)
*
* @param string $userId
* @param array $optParams Optional parameters.
* @return User
* @throws \Google\Service\Exception
*/
public function get($userId, $optParams = [])
{
$params = ['userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], User::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Users::class, 'Google_Service_Blogger_Resource_Users');
+216
View File
@@ -0,0 +1,216 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class User extends \Google\Model
{
/**
* Profile summary information.
*
* @var string
*/
public $about;
protected $blogsType = UserBlogs::class;
protected $blogsDataType = '';
/**
* The timestamp of when this profile was created, in seconds since epoch.
*
* @var string
*/
public $created;
/**
* The display name.
*
* @var string
*/
public $displayName;
/**
* The identifier for this User.
*
* @var string
*/
public $id;
/**
* The kind of this entity. Always blogger#user.
*
* @var string
*/
public $kind;
protected $localeType = UserLocale::class;
protected $localeDataType = '';
/**
* The API REST URL to fetch this resource from.
*
* @var string
*/
public $selfLink;
/**
* The user's profile page.
*
* @var string
*/
public $url;
/**
* Profile summary information.
*
* @param string $about
*/
public function setAbout($about)
{
$this->about = $about;
}
/**
* @return string
*/
public function getAbout()
{
return $this->about;
}
/**
* The container of blogs for this user.
*
* @param UserBlogs $blogs
*/
public function setBlogs(UserBlogs $blogs)
{
$this->blogs = $blogs;
}
/**
* @return UserBlogs
*/
public function getBlogs()
{
return $this->blogs;
}
/**
* The timestamp of when this profile was created, in seconds since epoch.
*
* @param string $created
*/
public function setCreated($created)
{
$this->created = $created;
}
/**
* @return string
*/
public function getCreated()
{
return $this->created;
}
/**
* The display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The identifier for this User.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The kind of this entity. Always blogger#user.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* This user's locale
*
* @param UserLocale $locale
*/
public function setLocale(UserLocale $locale)
{
$this->locale = $locale;
}
/**
* @return UserLocale
*/
public function getLocale()
{
return $this->locale;
}
/**
* The API REST URL to fetch this resource from.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* The user's profile page.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(User::class, 'Google_Service_Blogger_User');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class UserBlogs extends \Google\Model
{
/**
* The URL of the Blogs for this user.
*
* @var string
*/
public $selfLink;
/**
* The URL of the Blogs for this user.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserBlogs::class, 'Google_Service_Blogger_UserBlogs');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Blogger;
class UserLocale extends \Google\Model
{
/**
* The country this blog's locale is set to.
*
* @var string
*/
public $country;
/**
* The language this blog is authored in.
*
* @var string
*/
public $language;
/**
* The language variant this blog is authored in.
*
* @var string
*/
public $variant;
/**
* The country this blog's locale is set to.
*
* @param string $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* The language this blog is authored in.
*
* @param string $language
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* The language variant this blog is authored in.
*
* @param string $variant
*/
public function setVariant($variant)
{
$this->variant = $variant;
}
/**
* @return string
*/
public function getVariant()
{
return $this->variant;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserLocale::class, 'Google_Service_Blogger_UserLocale');