This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
+204
View File
@@ -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);
}
+69
View File
@@ -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
View File
@@ -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
View File
@@ -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);
}
+56
View File
@@ -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
View File
@@ -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();
}
@@ -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);
}
@@ -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);
}
@@ -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);
}
@@ -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
View File
@@ -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
View File
@@ -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);
}