init
This commit is contained in:
+407
@@ -0,0 +1,407 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api;
|
||||
|
||||
use Exception;
|
||||
use Magento\Framework\Exception\InputException;
|
||||
use Magento\Framework\Exception\NoSuchEntityException;
|
||||
|
||||
/**
|
||||
* Class PostInterface
|
||||
* @package Mageplaza\Blog\Api
|
||||
*/
|
||||
interface BlogRepositoryInterface
|
||||
{
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface[]
|
||||
*/
|
||||
public function getAllPost();
|
||||
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\MonthlyArchiveInterface[]
|
||||
* @throws NoSuchEntityException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getMonthlyArchive();
|
||||
|
||||
/**
|
||||
* @param string $monthly
|
||||
* @param string $year
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface[]
|
||||
*/
|
||||
public function getPostMonthlyArchive($monthly, $year);
|
||||
|
||||
/**
|
||||
* @param string $postId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getPostView($postId);
|
||||
|
||||
/**
|
||||
* @param string $authorName
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface[]
|
||||
*/
|
||||
public function getPostViewByAuthorName($authorName);
|
||||
|
||||
/**
|
||||
* @param string $authorId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface[]
|
||||
*/
|
||||
public function getPostViewByAuthorId($authorId);
|
||||
|
||||
/**
|
||||
* @param string $postId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\CommentInterface[]
|
||||
*/
|
||||
public function getPostComment($postId);
|
||||
|
||||
/**
|
||||
* Get All Comment
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\CommentInterface[]
|
||||
*/
|
||||
public function getAllComment();
|
||||
|
||||
/**
|
||||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\SearchResult\CommentSearchResultInterface
|
||||
*/
|
||||
public function getCommentList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
|
||||
|
||||
/**
|
||||
* @param string $commentId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\CommentInterface
|
||||
*/
|
||||
public function getCommentView($commentId);
|
||||
|
||||
/**
|
||||
* @param string $postId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPostLike($postId);
|
||||
|
||||
/**
|
||||
* @param string $tagName
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface[]
|
||||
*/
|
||||
public function getPostByTagName($tagName);
|
||||
|
||||
/**
|
||||
* @param string $postId
|
||||
*
|
||||
* @return \Magento\Catalog\Api\Data\ProductInterface[]
|
||||
*/
|
||||
public function getProductByPost($postId);
|
||||
|
||||
/**
|
||||
* @param string $postId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface[]
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function getPostRelated($postId);
|
||||
|
||||
/**
|
||||
* @param string $postId
|
||||
* @param \Mageplaza\Blog\Api\Data\CommentInterface $commentData
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\CommentInterface
|
||||
* @throws Exception
|
||||
*/
|
||||
public function addCommentInPost($postId, $commentData);
|
||||
|
||||
/**
|
||||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\SearchResult\PostSearchResultInterface
|
||||
* @throws NoSuchEntityException
|
||||
*/
|
||||
public function getPostList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
|
||||
|
||||
/**
|
||||
* Create Post
|
||||
*
|
||||
* @param \Mageplaza\Blog\Api\Data\PostInterface $post
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface
|
||||
* @throws Exception
|
||||
*/
|
||||
public function createPost($post);
|
||||
|
||||
/**
|
||||
* Delete Post
|
||||
*
|
||||
* @param string $postId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function deletePost($postId);
|
||||
|
||||
/**
|
||||
* @param string $postId
|
||||
* @param \Mageplaza\Blog\Api\Data\PostInterface $post
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface
|
||||
* @throws InputException
|
||||
* @throws NoSuchEntityException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function updatePost($postId, $post);
|
||||
|
||||
/**
|
||||
* Get All Tag
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\TagInterface[]
|
||||
*/
|
||||
public function getAllTag();
|
||||
|
||||
/**
|
||||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\SearchResult\TagSearchResultInterface
|
||||
*/
|
||||
public function getTagList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
|
||||
|
||||
/**
|
||||
* Create Post
|
||||
*
|
||||
* @param \Mageplaza\Blog\Api\Data\TagInterface $tag
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\TagInterface
|
||||
* @throws Exception
|
||||
*/
|
||||
public function createTag($tag);
|
||||
|
||||
/**
|
||||
* Delete Tag
|
||||
*
|
||||
* @param string $tagId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function deleteTag($tagId);
|
||||
|
||||
/**
|
||||
* @param string $tagId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\TagInterface
|
||||
*/
|
||||
public function getTagView($tagId);
|
||||
|
||||
/**
|
||||
* @param string $tagId
|
||||
* @param \Mageplaza\Blog\Api\Data\TagInterface $tag
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\TagInterface
|
||||
* @throws InputException
|
||||
* @throws NoSuchEntityException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function updateTag($tagId, $tag);
|
||||
|
||||
/**
|
||||
* Get Topic List
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\TopicInterface[]
|
||||
*/
|
||||
public function getAllTopic();
|
||||
|
||||
/**
|
||||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\SearchResult\TopicSearchResultInterface
|
||||
*/
|
||||
public function getTopicList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
|
||||
|
||||
/**
|
||||
* @param string $topicId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\TagInterface
|
||||
*/
|
||||
public function getTopicView($topicId);
|
||||
|
||||
/**
|
||||
* @param string $topicId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface[]
|
||||
*/
|
||||
public function getPostsByTopic($topicId);
|
||||
|
||||
/**
|
||||
* Create Topic
|
||||
*
|
||||
* @param \Mageplaza\Blog\Api\Data\TopicInterface $topic
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\TopicInterface
|
||||
* @throws Exception
|
||||
*/
|
||||
public function createTopic($topic);
|
||||
|
||||
/**
|
||||
* Delete Topic
|
||||
*
|
||||
* @param string $topicId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function deleteTopic($topicId);
|
||||
|
||||
/**
|
||||
* @param string $topicId
|
||||
* @param \Mageplaza\Blog\Api\Data\TopicInterface $topic
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\TopicInterface
|
||||
* @throws InputException
|
||||
* @throws NoSuchEntityException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function updateTopic($topicId, $topic);
|
||||
|
||||
/**
|
||||
* Get All Category
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\CategoryInterface[]
|
||||
*/
|
||||
public function getAllCategory();
|
||||
|
||||
/**
|
||||
* Get Category List
|
||||
*
|
||||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\SearchResult\CategorySearchResultInterface
|
||||
*/
|
||||
public function getCategoryList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
|
||||
|
||||
/**
|
||||
* @param string $categoryId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\CategoryInterface
|
||||
*/
|
||||
public function getCategoryView($categoryId);
|
||||
|
||||
/**
|
||||
* @param string $categoryId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface[]
|
||||
*/
|
||||
public function getPostsByCategoryId($categoryId);
|
||||
|
||||
/**
|
||||
* @param string $categoryKey
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface[]
|
||||
*/
|
||||
public function getPostsByCategory($categoryKey);
|
||||
|
||||
/**
|
||||
* @param string $postId
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\CategoryInterface[]
|
||||
*/
|
||||
public function getCategoriesByPostId($postId);
|
||||
|
||||
/**
|
||||
* Create Category
|
||||
*
|
||||
* @param \Mageplaza\Blog\Api\Data\CategoryInterface $category
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\CategoryInterface
|
||||
* @throws Exception
|
||||
*/
|
||||
public function createCategory($category);
|
||||
|
||||
/**
|
||||
* Delete Category
|
||||
*
|
||||
* @param string $categoryId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function deleteCategory($categoryId);
|
||||
|
||||
/**
|
||||
* @param string $categoryId
|
||||
* @param \Mageplaza\Blog\Api\Data\CategoryInterface $category
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\CategoryInterface
|
||||
* @throws InputException
|
||||
* @throws NoSuchEntityException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function updateCategory($categoryId, $category);
|
||||
|
||||
/**
|
||||
* Get Author List
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\AuthorInterface[]
|
||||
*/
|
||||
public function getAuthorList();
|
||||
|
||||
/**
|
||||
* Create Author
|
||||
*
|
||||
* @param \Mageplaza\Blog\Api\Data\AuthorInterface $author
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\AuthorInterface
|
||||
* @throws NoSuchEntityException
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function createAuthor($author);
|
||||
|
||||
/**
|
||||
* Delete Author
|
||||
*
|
||||
* @param string $authorId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function deleteAuthor($authorId);
|
||||
|
||||
/**
|
||||
* @param string $authorId
|
||||
* @param \Mageplaza\Blog\Api\Data\AuthorInterface $author
|
||||
*
|
||||
* @return \Mageplaza\Blog\Api\Data\AuthorInterface
|
||||
* @throws InputException
|
||||
* @throws NoSuchEntityException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function updateAuthor($authorId, $author);
|
||||
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\BlogConfigInterface
|
||||
*
|
||||
* @throws InputException
|
||||
*/
|
||||
public function getConfig();
|
||||
}
|
||||
+204
@@ -0,0 +1,204 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data;
|
||||
|
||||
/**
|
||||
* Interface AuthorInterface
|
||||
* @package Mageplaza\Blog\Api\Data
|
||||
*/
|
||||
interface AuthorInterface
|
||||
{
|
||||
/**
|
||||
* Constants used as data array keys
|
||||
*/
|
||||
const AUTHOR_ID = 'user_id';
|
||||
const NAME = 'name';
|
||||
const URL_KEY = 'url_key';
|
||||
const SHORT_DESCRIPTION = 'short_description';
|
||||
const IMAGE = 'image';
|
||||
const CUSTOMER_ID = 'customer_id';
|
||||
const TYPE = 'type';
|
||||
const STATUS = 'status';
|
||||
const UPDATED_AT = 'updated_at';
|
||||
const CREATED_AT = 'created_at';
|
||||
const FACEBOOK_LINK = 'facebook_link';
|
||||
const TWITTER_LINK = 'twitter_link';
|
||||
|
||||
const ATTRIBUTES = [
|
||||
self::AUTHOR_ID,
|
||||
self::NAME,
|
||||
self::URL_KEY,
|
||||
self::SHORT_DESCRIPTION,
|
||||
self::IMAGE,
|
||||
self::CUSTOMER_ID,
|
||||
self::TYPE,
|
||||
self::STATUS,
|
||||
self::CREATED_AT,
|
||||
self::UPDATED_AT,
|
||||
self::FACEBOOK_LINK,
|
||||
self::TWITTER_LINK
|
||||
];
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getId();
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id);
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name);
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getShortDescription();
|
||||
|
||||
/**
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setShortDescription($content);
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getImage();
|
||||
|
||||
/**
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setImage($content);
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getUrlKey();
|
||||
|
||||
/**
|
||||
* @param string $url
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUrlKey($url);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCreatedAt();
|
||||
|
||||
/**
|
||||
* @param $createdAt
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function setCreatedAt($createdAt);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getUpdatedAt();
|
||||
|
||||
/**
|
||||
* @param string $updatedAt
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUpdatedAt($updatedAt);
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getCustomerId();
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCustomerId($id);
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getType();
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($id);
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getStatus();
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($id);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFacebookLink();
|
||||
|
||||
/**
|
||||
* @param string $link
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFacebookLink($link);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getTwitterLink();
|
||||
|
||||
/**
|
||||
* @param string $link
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTwitterLink($link);
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data;
|
||||
|
||||
/**
|
||||
* Interface BlogConfigInterface
|
||||
* @package Mageplaza\Blog\Api\Data
|
||||
*/
|
||||
interface BlogConfigInterface
|
||||
{
|
||||
const GENERAL = 'general';
|
||||
const SIDEBAR = 'sidebar';
|
||||
const SEO = 'seo';
|
||||
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\Config\GeneralInterface
|
||||
*/
|
||||
public function getGeneral();
|
||||
|
||||
/**
|
||||
* @param \Mageplaza\Blog\Api\Data\Config\GeneralInterface $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setGeneral($value);
|
||||
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\Config\SidebarInterface
|
||||
*/
|
||||
public function getSidebar();
|
||||
|
||||
/**
|
||||
* @param \Mageplaza\Blog\Api\Data\Config\SidebarInterface $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSidebar($value);
|
||||
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\Config\SeoInterface
|
||||
*/
|
||||
public function getSeo();
|
||||
|
||||
/**
|
||||
* @param \Mageplaza\Blog\Api\Data\Config\SeoInterface $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSeo($value);
|
||||
}
|
||||
+337
@@ -0,0 +1,337 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data;
|
||||
|
||||
/**
|
||||
* Interface CategoryInterface
|
||||
* @package Mageplaza\Blog\Api\Data
|
||||
*/
|
||||
interface CategoryInterface
|
||||
{
|
||||
/**
|
||||
* Constants used as data array keys
|
||||
*/
|
||||
const CATEGORY_ID = 'category_id';
|
||||
const NAME = 'name';
|
||||
const URL_KEY = 'url_key';
|
||||
const DESCRIPTION = 'description';
|
||||
const STORE_IDS = 'store_ids';
|
||||
const ENABLED = 'enabled';
|
||||
const UPDATED_AT = 'updated_at';
|
||||
const CREATED_AT = 'created_at';
|
||||
const META_TITLE = 'meta_title';
|
||||
const META_DESCRIPTION = 'meta_description';
|
||||
const META_KEYWORDS = 'meta_keywords';
|
||||
const META_ROBOTS = 'meta_robots';
|
||||
const IMPORT_SOURCE = 'import_source';
|
||||
const PARENT_ID = 'parent_id';
|
||||
const PATH = 'path';
|
||||
const POSITION = 'position';
|
||||
const LEVEL = 'level';
|
||||
const CHILDREN_COUNT = 'children_count';
|
||||
|
||||
const ATTRIBUTES = [
|
||||
self::CATEGORY_ID,
|
||||
self::NAME,
|
||||
self::DESCRIPTION,
|
||||
self::STORE_IDS,
|
||||
self::ENABLED,
|
||||
self::URL_KEY,
|
||||
self::META_TITLE,
|
||||
self::META_DESCRIPTION,
|
||||
self::META_KEYWORDS,
|
||||
self::META_ROBOTS,
|
||||
self::PARENT_ID,
|
||||
self::PATH,
|
||||
self::POSITION,
|
||||
self::LEVEL,
|
||||
self::CHILDREN_COUNT
|
||||
];
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getId();
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id);
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name);
|
||||
|
||||
/**
|
||||
* Get Post Description
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getDescription();
|
||||
|
||||
/**
|
||||
* Set Post Short Description
|
||||
*
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($content);
|
||||
|
||||
/**
|
||||
* Get Post Store Id
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getStoreIds();
|
||||
|
||||
/**
|
||||
* Set Post Store Id
|
||||
*
|
||||
* @param int $storeId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStoreIds($storeId);
|
||||
|
||||
/**
|
||||
* Get Post Image
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getImage();
|
||||
|
||||
/**
|
||||
* Set Post Image
|
||||
*
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setImage($content);
|
||||
|
||||
/**
|
||||
* Get Post Enabled
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getEnabled();
|
||||
|
||||
/**
|
||||
* Set Post Enabled
|
||||
*
|
||||
* @param int $enabled
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setEnabled($enabled);
|
||||
|
||||
/**
|
||||
* Get Post Url Key
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getUrlKey();
|
||||
|
||||
/**
|
||||
* Set Post Url Key
|
||||
*
|
||||
* @param string $url
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUrlKey($url);
|
||||
|
||||
/**
|
||||
* Get Post Meta Title
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaTitle();
|
||||
|
||||
/**
|
||||
* Set Post Meta Title
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaTitle($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Description
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaDescription();
|
||||
|
||||
/**
|
||||
* Set Post Meta Description
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaDescription($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Keywords
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaKeywords();
|
||||
|
||||
/**
|
||||
* Set Post Meta Keywords
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaKeywords($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Robots
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaRobots();
|
||||
|
||||
/**
|
||||
* Set Post Meta Robots
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaRobots($meta);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCreatedAt();
|
||||
|
||||
/**
|
||||
* @param string $createdAt
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCreatedAt($createdAt);
|
||||
|
||||
/**
|
||||
* Get Post updated date
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getUpdatedAt();
|
||||
|
||||
/**
|
||||
* Set Post updated date
|
||||
*
|
||||
* @param string $updatedAt
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUpdatedAt($updatedAt);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getImportSource();
|
||||
|
||||
/**
|
||||
* @param string $importSource
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setImportSource($importSource);
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getParentId();
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setParentId($id);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPath();
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPath($path);
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getPosition();
|
||||
|
||||
/**
|
||||
* @param int $position
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPosition($position);
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getLevel();
|
||||
|
||||
/**
|
||||
* @param int $level
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLevel($level);
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getChildrenCount();
|
||||
|
||||
/**
|
||||
* @param int $count
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setChildrenCount($count);
|
||||
}
|
||||
+170
@@ -0,0 +1,170 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data;
|
||||
|
||||
/**
|
||||
* Interface CommentInterface
|
||||
* @package Mageplaza\Blog\Api\Data
|
||||
*/
|
||||
interface CommentInterface
|
||||
{
|
||||
/**
|
||||
* Constants used as data array keys
|
||||
*/
|
||||
const COMMENT_ID = 'comment_id';
|
||||
const POST_ID = 'post_id';
|
||||
const CONTENT = 'content';
|
||||
const STORE_IDS = 'store_ids';
|
||||
const CREATED_AT = 'created_at';
|
||||
const STATUS = 'status';
|
||||
const IMPORT_SOURCE = 'import_source';
|
||||
const USER_NAME = 'user_name';
|
||||
const USER_EMAIL = 'user_email';
|
||||
|
||||
const ATTRIBUTES = [
|
||||
self::COMMENT_ID,
|
||||
self::POST_ID,
|
||||
self::CONTENT,
|
||||
self::STORE_IDS,
|
||||
self::CREATED_AT,
|
||||
self::USER_EMAIL,
|
||||
self::USER_NAME,
|
||||
self::IMPORT_SOURCE
|
||||
];
|
||||
|
||||
/**
|
||||
* Get Comment id
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getId();
|
||||
|
||||
/**
|
||||
* Set Comment Id
|
||||
*
|
||||
* @param int $commentId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($commentId);
|
||||
|
||||
/**
|
||||
* Get Post id
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getPostId();
|
||||
|
||||
/**
|
||||
* Set Post Id
|
||||
*
|
||||
* @param int $postId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPostId($postId);
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getStatus();
|
||||
|
||||
/**
|
||||
* Set Status Id
|
||||
*
|
||||
* @param string $status
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status);
|
||||
|
||||
/**
|
||||
* Get Comment content
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getContent();
|
||||
|
||||
/**
|
||||
* Set Content
|
||||
*
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setContent($content);
|
||||
|
||||
/**
|
||||
* Get Post Store Id
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getStoreIds();
|
||||
|
||||
/**
|
||||
* @param string $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStoreIds($id);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCreatedAt();
|
||||
|
||||
/**
|
||||
* @param string $date
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCreatedAt($date);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getImportSource();
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getUserEmail();
|
||||
|
||||
/**
|
||||
* @param string $email
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserEmail($email);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getUserName();
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserName($name);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data\Config;
|
||||
|
||||
/**
|
||||
* Interface GeneralInterface
|
||||
* @package Mageplaza\Blog\Api\Data\Config
|
||||
*/
|
||||
interface GeneralInterface
|
||||
{
|
||||
const BLOG_NAME = 'blog_name';
|
||||
const IS_LINK_IN_MENU = 'is_link_in_menu';
|
||||
const IS_DISPLAY_AUTHOR = 'is_display_author';
|
||||
const BLOG_MODE = 'blog_mode';
|
||||
const BLOG_COLOR = 'blog_color';
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getBlogName();
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBlogName($value);
|
||||
|
||||
/**
|
||||
* @return boolean/null
|
||||
*/
|
||||
public function getIsLinkInMenu();
|
||||
|
||||
/**
|
||||
* @param boolean $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIsLinkInMenu($value);
|
||||
|
||||
/**
|
||||
* @return boolean/null
|
||||
*/
|
||||
public function getIsDisplayAuthor();
|
||||
|
||||
/**
|
||||
* @param boolean $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIsDisplayAuthor($value);
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getBlogMode();
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBlogMode($value);
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getBlogColor();
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBlogColor($value);
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data\Config;
|
||||
|
||||
/**
|
||||
* Interface SeoInterface
|
||||
* @package Mageplaza\Blog\Api\Data\Config
|
||||
*/
|
||||
interface SeoInterface
|
||||
{
|
||||
const META_TITLE = 'meta_title';
|
||||
const META_DESCRIPTION = 'meta_description';
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaTitle();
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaTitle($value);
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaDescription();
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaDescription($value);
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data\Config;
|
||||
|
||||
/**
|
||||
* Interface SidebarInterface
|
||||
* @package Mageplaza\Blog\Api\Data\Config
|
||||
*/
|
||||
interface SidebarInterface
|
||||
{
|
||||
const NUMBER_RECENT = 'number_recent';
|
||||
const NUMBER_MOST_VIEW = 'number_most_view';
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getNumberRecent();
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setNumberRecent($value);
|
||||
|
||||
/**
|
||||
* @return string/null
|
||||
*/
|
||||
public function getNumberMostView();
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setNumberMostView($value);
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data;
|
||||
|
||||
/**
|
||||
* Interface MonthlyArchiveInterface
|
||||
* @package Mageplaza\Blog\Api\Data
|
||||
*/
|
||||
interface MonthlyArchiveInterface
|
||||
{
|
||||
const LABEL = 'label';
|
||||
const POST_COUNT = 'post_count';
|
||||
const LINK = 'link';
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLabel();
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLabel($value);
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPostCount();
|
||||
|
||||
/**
|
||||
* @param int $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPostCount($value);
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLink();
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLink($value);
|
||||
}
|
||||
+463
@@ -0,0 +1,463 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data;
|
||||
|
||||
/**
|
||||
* Interface PostInterface
|
||||
* @package Mageplaza\Blog\Api\Data
|
||||
*/
|
||||
interface PostInterface
|
||||
{
|
||||
/**
|
||||
* Constants used as data array keys
|
||||
*/
|
||||
const POST_ID = 'post_id';
|
||||
const NAME = 'name';
|
||||
const SHORT_DESCRIPTION = 'short_description';
|
||||
const POST_CONTENT = 'post_content';
|
||||
const STORE_IDS = 'store_ids';
|
||||
const IMAGE = 'image';
|
||||
const ENABLED = 'enabled';
|
||||
const URL_KEY = 'url_key';
|
||||
const IN_RSS = 'in_rss';
|
||||
const ALLOW_COMMENT = 'allow_comment';
|
||||
const META_TITLE = 'meta_title';
|
||||
const META_DESCRIPTION = 'meta_description';
|
||||
const META_KEYWORDS = 'meta_keywords';
|
||||
const META_ROBOTS = 'meta_robots';
|
||||
const UPDATED_AT = 'updated_at';
|
||||
const CREATED_AT = 'created_at';
|
||||
const AUTHOR_ID = 'author_id';
|
||||
const MODIFIER_ID = 'modifier_id';
|
||||
const PUBLISH_DATE = 'publish_date';
|
||||
const IMPORT_SOURCE = 'import_source';
|
||||
const LAYOUT = 'layout';
|
||||
const CATEGORY_IDS = 'category_ids';
|
||||
const TAG_IDS = 'tag_ids';
|
||||
const TOPIC_IDS = 'topic_ids';
|
||||
const AUTHOR_URL = 'author_url';
|
||||
const AUTHOR_NAME = 'author_name';
|
||||
const VIEW_TRAFFIC = 'view_traffic';
|
||||
|
||||
const ATTRIBUTES = [
|
||||
self::POST_ID,
|
||||
self::NAME,
|
||||
self::SHORT_DESCRIPTION,
|
||||
self::POST_CONTENT,
|
||||
self::STORE_IDS,
|
||||
self::IMAGE,
|
||||
self::ENABLED,
|
||||
self::URL_KEY,
|
||||
self::IN_RSS,
|
||||
self::ALLOW_COMMENT,
|
||||
self::META_TITLE,
|
||||
self::META_DESCRIPTION,
|
||||
self::META_KEYWORDS,
|
||||
self::META_ROBOTS,
|
||||
self::AUTHOR_ID,
|
||||
self::MODIFIER_ID,
|
||||
self::PUBLISH_DATE,
|
||||
self::IMPORT_SOURCE,
|
||||
self::LAYOUT,
|
||||
self::CATEGORY_IDS,
|
||||
self::TAG_IDS,
|
||||
self::TOPIC_IDS,
|
||||
self::AUTHOR_NAME,
|
||||
self::AUTHOR_URL,
|
||||
self::VIEW_TRAFFIC
|
||||
];
|
||||
|
||||
/**
|
||||
* Get Post id
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getId();
|
||||
|
||||
/**
|
||||
* Set Post id
|
||||
*
|
||||
* @param int $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id);
|
||||
|
||||
/**
|
||||
* Get Post Name
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* Set Post Name
|
||||
*
|
||||
* @param string $name
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name);
|
||||
|
||||
/**
|
||||
* Get Post Short Description
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getShortDescription();
|
||||
|
||||
/**
|
||||
* Set Post Short Description
|
||||
*
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setShortDescription($content);
|
||||
|
||||
/**
|
||||
* Get Post Content
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getPostContent();
|
||||
|
||||
/**
|
||||
* Set Post Content
|
||||
*
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPostContent($content);
|
||||
|
||||
/**
|
||||
* Get Post Store Id
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getStoreIds();
|
||||
|
||||
/**
|
||||
* Set Post Store Id
|
||||
*
|
||||
* @param int $storeId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStoreIds($storeId);
|
||||
|
||||
/**
|
||||
* Get Post Image
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getImage();
|
||||
|
||||
/**
|
||||
* Set Post Image
|
||||
*
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setImage($content);
|
||||
|
||||
/**
|
||||
* Get Post Enabled
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getEnabled();
|
||||
|
||||
/**
|
||||
* Set Post Enabled
|
||||
*
|
||||
* @param int $enabled
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setEnabled($enabled);
|
||||
|
||||
/**
|
||||
* Get Post Url Key
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getUrlKey();
|
||||
|
||||
/**
|
||||
* Set Post Url Key
|
||||
*
|
||||
* @param string $url
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUrlKey($url);
|
||||
|
||||
/**
|
||||
* Get Post In RSS
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getInRss();
|
||||
|
||||
/**
|
||||
* Set Post Enabled
|
||||
*
|
||||
* @param int $inRss
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setInRss($inRss);
|
||||
|
||||
/**
|
||||
* Get Post Allow Comment
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getAllowComment();
|
||||
|
||||
/**
|
||||
* Set Post Allow Comment
|
||||
*
|
||||
* @param int $allow
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAllowComment($allow);
|
||||
|
||||
/**
|
||||
* Get Post Meta Title
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaTitle();
|
||||
|
||||
/**
|
||||
* Set Post Meta Title
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaTitle($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Description
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaDescription();
|
||||
|
||||
/**
|
||||
* Set Post Meta Description
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaDescription($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Keywords
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaKeywords();
|
||||
|
||||
/**
|
||||
* Set Post Meta Keywords
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaKeywords($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Robots
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaRobots();
|
||||
|
||||
/**
|
||||
* Set Post Meta Robots
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaRobots($meta);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCreatedAt();
|
||||
|
||||
/**
|
||||
* @param string $createdAt
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCreatedAt($createdAt);
|
||||
|
||||
/**
|
||||
* Get Post updated date
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getUpdatedAt();
|
||||
|
||||
/**
|
||||
* Set Post updated date
|
||||
*
|
||||
* @param string $updatedAt
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUpdatedAt($updatedAt);
|
||||
|
||||
/**
|
||||
* Get Post Author Id
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getAuthorId();
|
||||
|
||||
/**
|
||||
* Set Post Store Id
|
||||
*
|
||||
* @param int $authorId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAuthorId($authorId);
|
||||
|
||||
/**
|
||||
* Get Post Modifier Id
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getModifierId();
|
||||
|
||||
/**
|
||||
* Set Post Modifier Id
|
||||
*
|
||||
* @param int $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setModifierId($id);
|
||||
|
||||
/**
|
||||
* get Post Publish date
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPublishDate();
|
||||
|
||||
/**
|
||||
* Set Post Publish date
|
||||
*
|
||||
* @param string $publishDate
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPublishDate($publishDate);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getImportSource();
|
||||
|
||||
/**
|
||||
* @param string $importSource
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setImportSource($importSource);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getLayout();
|
||||
|
||||
/**
|
||||
* @param string $layout
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLayout($layout);
|
||||
|
||||
/**
|
||||
* @return int[]|null
|
||||
*/
|
||||
public function getCategoryIds();
|
||||
|
||||
/**
|
||||
* @param int[] $array
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCategoryIds($array);
|
||||
|
||||
/**
|
||||
* @return int[]|null
|
||||
*/
|
||||
public function getTagIds();
|
||||
|
||||
/**
|
||||
* @param int[] $array
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTagIds($array);
|
||||
|
||||
/**
|
||||
* @return int[]|null
|
||||
*/
|
||||
public function getTopicIds();
|
||||
|
||||
/**
|
||||
* @param int[] $array
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTopicIds($array);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getAuthorName();
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getAuthorUrl();
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getViewTraffic();
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data\SearchResult;
|
||||
|
||||
use Magento\Framework\Api\SearchResultsInterface;
|
||||
|
||||
/**
|
||||
* Interface CategorySearchResultInterface
|
||||
* @package Mageplaza\Blog\Api\Data\SearchResult
|
||||
*/
|
||||
interface CategorySearchResultInterface extends SearchResultsInterface
|
||||
{
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\CategoryInterface[]
|
||||
*/
|
||||
public function getItems();
|
||||
|
||||
/**
|
||||
* @param \Mageplaza\Blog\Api\Data\CategoryInterface[] $items
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems(?array $items = null);
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data\SearchResult;
|
||||
|
||||
use Magento\Framework\Api\SearchResultsInterface;
|
||||
|
||||
/**
|
||||
* Interface CommentSearchResultInterface
|
||||
* @api
|
||||
*/
|
||||
interface CommentSearchResultInterface extends SearchResultsInterface
|
||||
{
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\CommentInterface[]
|
||||
*/
|
||||
public function getItems();
|
||||
|
||||
/**
|
||||
* @param \Mageplaza\Blog\Api\Data\CommentInterface[] $items
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems(?array $items = null);
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data\SearchResult;
|
||||
|
||||
use Magento\Framework\Api\SearchResultsInterface;
|
||||
|
||||
/**
|
||||
* Interface PostSearchResultInterface
|
||||
* @api
|
||||
*/
|
||||
interface PostSearchResultInterface extends SearchResultsInterface
|
||||
{
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\PostInterface[]
|
||||
*/
|
||||
public function getItems();
|
||||
|
||||
/**
|
||||
* @param \Mageplaza\Blog\Api\Data\PostInterface[] $items
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems(?array $items = null);
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data\SearchResult;
|
||||
|
||||
use Magento\Framework\Api\SearchResultsInterface;
|
||||
|
||||
/**
|
||||
* Interface TagSearchResultInterface
|
||||
* @package Mageplaza\Blog\Api\Data\SearchResult
|
||||
*/
|
||||
interface TagSearchResultInterface extends SearchResultsInterface
|
||||
{
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\TagInterface[]
|
||||
*/
|
||||
public function getItems();
|
||||
|
||||
/**
|
||||
* @param \Mageplaza\Blog\Api\Data\TagInterface[] $items
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems(?array $items = null);
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data\SearchResult;
|
||||
|
||||
use Magento\Framework\Api\SearchResultsInterface;
|
||||
|
||||
/**
|
||||
* Interface TopicSearchResultInterface
|
||||
* @package Mageplaza\Blog\Api\Data\SearchResult
|
||||
*/
|
||||
interface TopicSearchResultInterface extends SearchResultsInterface
|
||||
{
|
||||
/**
|
||||
* @return \Mageplaza\Blog\Api\Data\TopicInterface[]
|
||||
*/
|
||||
public function getItems();
|
||||
|
||||
/**
|
||||
* @param \Mageplaza\Blog\Api\Data\TopicInterface[] $items
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems(?array $items = null);
|
||||
}
|
||||
+276
@@ -0,0 +1,276 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data;
|
||||
|
||||
/**
|
||||
* Interface TagInterface
|
||||
* @package Mageplaza\Blog\Api\Data
|
||||
*/
|
||||
interface TagInterface
|
||||
{
|
||||
/**
|
||||
* Constants used as data array keys
|
||||
*/
|
||||
const TAG_ID = 'tag_id';
|
||||
const NAME = 'name';
|
||||
const URL_KEY = 'url_key';
|
||||
const DESCRIPTION = 'description';
|
||||
const STORE_IDS = 'store_ids';
|
||||
const ENABLED = 'enabled';
|
||||
const UPDATED_AT = 'updated_at';
|
||||
const CREATED_AT = 'created_at';
|
||||
const META_TITLE = 'meta_title';
|
||||
const META_DESCRIPTION = 'meta_description';
|
||||
const META_KEYWORDS = 'meta_keywords';
|
||||
const META_ROBOTS = 'meta_robots';
|
||||
const IMPORT_SOURCE = 'import_source';
|
||||
|
||||
const ATTRIBUTES = [
|
||||
self::TAG_ID,
|
||||
self::NAME,
|
||||
self::DESCRIPTION,
|
||||
self::STORE_IDS,
|
||||
self::ENABLED,
|
||||
self::URL_KEY,
|
||||
self::META_TITLE,
|
||||
self::META_DESCRIPTION,
|
||||
self::META_KEYWORDS,
|
||||
self::META_ROBOTS,
|
||||
self::IMPORT_SOURCE
|
||||
];
|
||||
|
||||
/**
|
||||
* Get Post id
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getId();
|
||||
|
||||
/**
|
||||
* Set Post id
|
||||
*
|
||||
* @param int $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id);
|
||||
|
||||
/**
|
||||
* Get Post Name
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* Set Post Name
|
||||
*
|
||||
* @param string $name
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name);
|
||||
|
||||
/**
|
||||
* Get Post Description
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getDescription();
|
||||
|
||||
/**
|
||||
* Set Post Short Description
|
||||
*
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($content);
|
||||
|
||||
/**
|
||||
* Get Post Store Id
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getStoreIds();
|
||||
|
||||
/**
|
||||
* Set Post Store Id
|
||||
*
|
||||
* @param int $storeId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStoreIds($storeId);
|
||||
|
||||
/**
|
||||
* Get Post Image
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getImage();
|
||||
|
||||
/**
|
||||
* Set Post Image
|
||||
*
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setImage($content);
|
||||
|
||||
/**
|
||||
* Get Post Enabled
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getEnabled();
|
||||
|
||||
/**
|
||||
* Set Post Enabled
|
||||
*
|
||||
* @param int $enabled
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setEnabled($enabled);
|
||||
|
||||
/**
|
||||
* Get Post Url Key
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getUrlKey();
|
||||
|
||||
/**
|
||||
* Set Post Url Key
|
||||
*
|
||||
* @param string $url
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUrlKey($url);
|
||||
|
||||
/**
|
||||
* Get Post Meta Title
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaTitle();
|
||||
|
||||
/**
|
||||
* Set Post Meta Title
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaTitle($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Description
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaDescription();
|
||||
|
||||
/**
|
||||
* Set Post Meta Description
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaDescription($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Keywords
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaKeywords();
|
||||
|
||||
/**
|
||||
* Set Post Meta Keywords
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaKeywords($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Robots
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaRobots();
|
||||
|
||||
/**
|
||||
* Set Post Meta Robots
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaRobots($meta);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCreatedAt();
|
||||
|
||||
/**
|
||||
* @param string $createdAt
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCreatedAt($createdAt);
|
||||
|
||||
/**
|
||||
* Get Post updated date
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getUpdatedAt();
|
||||
|
||||
/**
|
||||
* Set Post updated date
|
||||
*
|
||||
* @param string $updatedAt
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUpdatedAt($updatedAt);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getImportSource();
|
||||
|
||||
/**
|
||||
* @param string $importSource
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setImportSource($importSource);
|
||||
}
|
||||
+258
@@ -0,0 +1,258 @@
|
||||
<?php
|
||||
/**
|
||||
* Mageplaza
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Mageplaza.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.mageplaza.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this extension to newer
|
||||
* version in the future.
|
||||
*
|
||||
* @category Mageplaza
|
||||
* @package Mageplaza_Blog
|
||||
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
|
||||
* @license https://www.mageplaza.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Mageplaza\Blog\Api\Data;
|
||||
|
||||
/**
|
||||
* Interface TopicInterface
|
||||
* @package Mageplaza\Blog\Api\Data
|
||||
*/
|
||||
interface TopicInterface
|
||||
{
|
||||
/**
|
||||
* Constants used as data array keys
|
||||
*/
|
||||
const TOPIC_ID = 'topic_id';
|
||||
const NAME = 'name';
|
||||
const DESCRIPTION = 'description';
|
||||
const STORE_IDS = 'store_ids';
|
||||
const URL_KEY = 'url_key';
|
||||
const META_TITLE = 'meta_title';
|
||||
const META_DESCRIPTION = 'meta_description';
|
||||
const META_KEYWORDS = 'meta_keywords';
|
||||
const META_ROBOTS = 'meta_robots';
|
||||
const UPDATED_AT = 'updated_at';
|
||||
const CREATED_AT = 'created_at';
|
||||
const IMPORT_SOURCE = 'import_source';
|
||||
|
||||
const ATTRIBUTES = [
|
||||
self::TOPIC_ID,
|
||||
self::NAME,
|
||||
self::DESCRIPTION,
|
||||
self::STORE_IDS,
|
||||
self::URL_KEY,
|
||||
self::META_TITLE,
|
||||
self::META_DESCRIPTION,
|
||||
self::META_KEYWORDS,
|
||||
self::META_ROBOTS,
|
||||
self::IMPORT_SOURCE
|
||||
];
|
||||
|
||||
/**
|
||||
* Get Post id
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getId();
|
||||
|
||||
/**
|
||||
* Set Post id
|
||||
*
|
||||
* @param int $id
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id);
|
||||
|
||||
/**
|
||||
* Get Post Name
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* Set Post Name
|
||||
*
|
||||
* @param string $name
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name);
|
||||
|
||||
/**
|
||||
* Get Post Description
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getDescription();
|
||||
|
||||
/**
|
||||
* Set Post Short Description
|
||||
*
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($content);
|
||||
|
||||
/**
|
||||
* Get Post Store Id
|
||||
*
|
||||
* @return int/null
|
||||
*/
|
||||
public function getStoreIds();
|
||||
|
||||
/**
|
||||
* Set Post Store Id
|
||||
*
|
||||
* @param int $storeId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStoreIds($storeId);
|
||||
|
||||
/**
|
||||
* Get Post Image
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getImage();
|
||||
|
||||
/**
|
||||
* Set Post Image
|
||||
*
|
||||
* @param string $content
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setImage($content);
|
||||
|
||||
/**
|
||||
* Get Post Url Key
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getUrlKey();
|
||||
|
||||
/**
|
||||
* Set Post Url Key
|
||||
*
|
||||
* @param string $url
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUrlKey($url);
|
||||
|
||||
/**
|
||||
* Get Post Meta Title
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaTitle();
|
||||
|
||||
/**
|
||||
* Set Post Meta Title
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaTitle($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Description
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaDescription();
|
||||
|
||||
/**
|
||||
* Set Post Meta Description
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaDescription($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Keywords
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaKeywords();
|
||||
|
||||
/**
|
||||
* Set Post Meta Keywords
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaKeywords($meta);
|
||||
|
||||
/**
|
||||
* Get Post Meta Robots
|
||||
*
|
||||
* @return string/null
|
||||
*/
|
||||
public function getMetaRobots();
|
||||
|
||||
/**
|
||||
* Set Post Meta Robots
|
||||
*
|
||||
* @param string $meta
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetaRobots($meta);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCreatedAt();
|
||||
|
||||
/**
|
||||
* @param string $createdAt
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCreatedAt($createdAt);
|
||||
|
||||
/**
|
||||
* Get Post updated date
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getUpdatedAt();
|
||||
|
||||
/**
|
||||
* Set Post updated date
|
||||
*
|
||||
* @param string $updatedAt
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUpdatedAt($updatedAt);
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getImportSource();
|
||||
|
||||
/**
|
||||
* @param string $importSource
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setImportSource($importSource);
|
||||
}
|
||||
Reference in New Issue
Block a user