Skip to content

Commit 9272cec

Browse files
committed
added module files
1 parent 17dda71 commit 9272cec

File tree

421 files changed

+60372
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

421 files changed

+60372
-2
lines changed

Api/AuthorRepositoryInterface.php

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?php
2+
/**
3+
* Copyright © Landofcoder.com All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Ves\Blog\Api;
9+
10+
use Magento\Framework\Api\SearchCriteriaInterface;
11+
12+
interface AuthorRepositoryInterface
13+
{
14+
15+
/**
16+
* Save Author
17+
* @param \Ves\Blog\Api\Data\AuthorInterface $author
18+
* @return \Ves\Blog\Api\Data\AuthorInterface
19+
* @throws \Magento\Framework\Exception\LocalizedException
20+
*/
21+
public function save(
22+
\Ves\Blog\Api\Data\AuthorInterface $author
23+
);
24+
25+
/**
26+
* Retrieve author
27+
* @param int $authorId
28+
* @return \Ves\Blog\Api\Data\AuthorInterface
29+
* @throws \Magento\Framework\Exception\LocalizedException
30+
*/
31+
public function get($authorId);
32+
33+
/**
34+
* Retrieve author
35+
* @param int $authorId
36+
* @return \Ves\Blog\Api\Data\AuthorInterface
37+
* @throws \Magento\Framework\Exception\LocalizedException
38+
*/
39+
public function view($authorId);
40+
41+
/**
42+
* Retrieve Author matching the specified criteria.
43+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
44+
* @return \Ves\Blog\Api\Data\AuthorSearchResultsInterface
45+
* @throws \Magento\Framework\Exception\LocalizedException
46+
*/
47+
public function getList(
48+
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
49+
);
50+
51+
/**
52+
* Retrieve Author matching the specified criteria.
53+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
54+
* @return \Ves\Blog\Api\Data\AuthorSearchResultsInterface
55+
* @throws \Magento\Framework\Exception\LocalizedException
56+
*/
57+
public function getPublishList(
58+
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
59+
);
60+
61+
/**
62+
* Delete Author
63+
* @param \Ves\Blog\Api\Data\AuthorInterface $author
64+
* @return bool true on success
65+
* @throws \Magento\Framework\Exception\LocalizedException
66+
*/
67+
public function delete(
68+
\Ves\Blog\Api\Data\AuthorInterface $author
69+
);
70+
71+
/**
72+
* Delete Author by ID
73+
* @param string $authorId
74+
* @return bool true on success
75+
* @throws \Magento\Framework\Exception\NoSuchEntityException
76+
* @throws \Magento\Framework\Exception\LocalizedException
77+
*/
78+
public function deleteById($authorId);
79+
}
80+

Api/CategoryManagementInterface.php

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?php
2+
/**
3+
* Venustheme
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Venustheme.com license that is
8+
* available through the world-wide-web at this URL:
9+
* http://www.venustheme.com/license-agreement.html
10+
*
11+
* DISCLAIMER
12+
*
13+
* Do not edit or add to this file if you wish to upgrade this extension to newer
14+
* version in the future.
15+
*
16+
* @category Venustheme
17+
* @package Ves_Blog
18+
* @copyright Copyright (c) 2016 Venustheme (http://www.venustheme.com/)
19+
* @license http://www.venustheme.com/LICENSE-1.0.html
20+
*/
21+
22+
namespace Ves\Blog\Api;
23+
24+
interface CategoryManagementInterface extends ManagementInterface
25+
{
26+
/**
27+
* Create new item.
28+
*
29+
* @api
30+
* @param string $data.
31+
* @return \Ves\Blog\Api\Data\CategoryInterface|bool
32+
*/
33+
public function create($data);
34+
35+
/**
36+
* Update item by id.
37+
*
38+
* @api
39+
* @param int $id.
40+
* @param string $data.
41+
* @return \Ves\Blog\Api\Data\CategoryInterface|bool
42+
*/
43+
public function update($id, $data);
44+
45+
/**
46+
* Get item by id.
47+
*
48+
* @api
49+
* @param int $id.
50+
* @return \Ves\Blog\Api\Data\CategoryInterface|bool
51+
*/
52+
public function get($id);
53+
54+
/**
55+
* Get item by id and store id, only if item published
56+
*
57+
* @api
58+
* @param int $id
59+
* @param int $storeId
60+
* @return \Ves\Blog\Api\Data\CategoryInterface|bool
61+
*/
62+
public function view($id, $storeId);
63+
64+
/**
65+
* Retrieve list by page type, term, store, etc
66+
*
67+
* @param string $type
68+
* @param string $term
69+
* @param int $storeId
70+
* @param int $page
71+
* @param int $limit
72+
* @return \Ves\Blog\Api\Data\CategoryInterface[]
73+
*/
74+
public function getList($type, $term, $storeId, $page, $limit);
75+
}

Api/CategoryRepositoryInterface.php

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?php
2+
/**
3+
* Copyright © Landofcoder.com All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Ves\Blog\Api;
9+
10+
use Magento\Framework\Api\SearchCriteriaInterface;
11+
12+
interface CategoryRepositoryInterface
13+
{
14+
15+
/**
16+
* Save Category
17+
* @param \Ves\Blog\Api\Data\CategoryInterface $category
18+
* @return \Ves\Blog\Api\Data\CategoryInterface
19+
* @throws \Magento\Framework\Exception\LocalizedException
20+
*/
21+
public function save(
22+
\Ves\Blog\Api\Data\CategoryInterface $category
23+
);
24+
25+
/**
26+
* Retrieve category
27+
* @param string $categoryId
28+
* @return \Ves\Blog\Api\Data\CategoryInterface
29+
* @throws \Magento\Framework\Exception\LocalizedException
30+
*/
31+
public function get($categoryId);
32+
33+
/**
34+
* Retrieve post
35+
* @param int $categoryId
36+
* @param int|null $store_id
37+
* @return \Ves\Blog\Api\Data\CategoryInterface
38+
* @throws \Magento\Framework\Exception\LocalizedException
39+
*/
40+
public function view($categoryId, $store_id=null);
41+
42+
/**
43+
* Retrieve Category matching the specified criteria.
44+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
45+
* @return \Ves\Blog\Api\Data\CategorySearchResultsInterface
46+
* @throws \Magento\Framework\Exception\LocalizedException
47+
*/
48+
public function getList(
49+
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
50+
);
51+
52+
/**
53+
* Retrieve Category matching the specified criteria.
54+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
55+
* @return \Ves\Blog\Api\Data\CategorySearchResultsInterface
56+
* @throws \Magento\Framework\Exception\LocalizedException
57+
*/
58+
public function getPublishList(
59+
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
60+
);
61+
62+
/**
63+
* Delete Category
64+
* @param \Ves\Blog\Api\Data\CategoryInterface $category
65+
* @return bool true on success
66+
* @throws \Magento\Framework\Exception\LocalizedException
67+
*/
68+
public function delete(
69+
\Ves\Blog\Api\Data\CategoryInterface $category
70+
);
71+
72+
/**
73+
* Delete Category by ID
74+
* @param string $categoryId
75+
* @return bool true on success
76+
* @throws \Magento\Framework\Exception\NoSuchEntityException
77+
* @throws \Magento\Framework\Exception\LocalizedException
78+
*/
79+
public function deleteById($categoryId);
80+
}
81+

Api/CommentRepositoryInterface.php

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?php
2+
/**
3+
* Copyright © Landofcoder.com All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Ves\Blog\Api;
9+
10+
use Magento\Framework\Api\SearchCriteriaInterface;
11+
12+
interface CommentRepositoryInterface
13+
{
14+
15+
/**
16+
* Save Comment
17+
* @param \Ves\Blog\Api\Data\CommentInterface $comment
18+
* @return \Ves\Blog\Api\Data\CommentInterface
19+
* @throws \Magento\Framework\Exception\LocalizedException
20+
*/
21+
public function save(
22+
\Ves\Blog\Api\Data\CommentInterface $comment
23+
);
24+
25+
/**
26+
* Retrieve comment
27+
* @param string $commentId
28+
* @return \Ves\Blog\Api\Data\CommentInterface
29+
* @throws \Magento\Framework\Exception\LocalizedException
30+
*/
31+
public function get($commentId);
32+
33+
/**
34+
* Retrieve Comment matching the specified criteria.
35+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
36+
* @return \Ves\Blog\Api\Data\CommentSearchResultsInterface
37+
* @throws \Magento\Framework\Exception\LocalizedException
38+
*/
39+
public function getList(
40+
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
41+
);
42+
43+
/**
44+
* Retrieve Comment matching the specified criteria.
45+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
46+
* @return \Ves\Blog\Api\Data\CommentSearchResultsInterface
47+
* @throws \Magento\Framework\Exception\LocalizedException
48+
*/
49+
public function getPublishList(
50+
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
51+
);
52+
53+
/**
54+
* Retrieve Comment matching the specified criteria.
55+
* @param int $postId
56+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
57+
* @return \Ves\Blog\Api\Data\CommentSearchResultsInterface
58+
* @throws \Magento\Framework\Exception\LocalizedException
59+
*/
60+
public function getPostCommentList(
61+
$postId,
62+
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
63+
);
64+
65+
/**
66+
* Delete Comment
67+
* @param \Ves\Blog\Api\Data\CommentInterface $comment
68+
* @return bool true on success
69+
* @throws \Magento\Framework\Exception\LocalizedException
70+
*/
71+
public function delete(
72+
\Ves\Blog\Api\Data\CommentInterface $comment
73+
);
74+
75+
/**
76+
* Delete Comment by ID
77+
* @param string $commentId
78+
* @return bool true on success
79+
* @throws \Magento\Framework\Exception\NoSuchEntityException
80+
* @throws \Magento\Framework\Exception\LocalizedException
81+
*/
82+
public function deleteById($commentId);
83+
}
84+

0 commit comments

Comments
 (0)