Skip to content

Commit ea0dff2

Browse files
authored
Fixbugs (#1)
* fix bug view list tag * update graphql * update graphql * add email template Co-authored-by: msgchinh <vanchinhpc9.com>
1 parent 35253bd commit ea0dff2

File tree

203 files changed

+9253
-7829
lines changed

Some content is hidden

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

203 files changed

+9253
-7829
lines changed

Api/CategoriesInterface.php

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
<?php
2-
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
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 Landofcoder
17+
* @package Lof_Faq
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
20+
*/
321

422
namespace Lof\Faq\Api;
523

6-
use Lof\Faq\Api\Data\CategoryInterface;
724
use Magento\Framework\Exception\LocalizedException;
825

9-
/**
10-
* Interface CategoriesInterface
11-
* @package Lof\Faq\Api
12-
*/
1326
interface CategoriesInterface
1427
{
1528
/**
@@ -28,15 +41,25 @@ public function getListInFrontend();
2841

2942

3043
/**
31-
* @param CategoryInterface $category
44+
* @param \Lof\Faq\Api\Data\CategoryInterface $category
3245
* @return mixed
3346
*/
34-
public function save(CategoryInterface $category);
47+
public function save(\Lof\Faq\Api\Data\CategoryInterface $category);
3548

3649
/**
3750
* @param int $categoryId
38-
* @return CategoryInterface
51+
* @return \Lof\Faq\Api\Data\CategoryInterface
3952
*/
4053
public function getById($categoryId);
4154

55+
56+
/**
57+
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
58+
* @param $search
59+
* @return \Lof\Faq\Api\Data\CategorySearchResultsInterface
60+
*/
61+
public function getList(
62+
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria,
63+
$search
64+
);
4265
}

Api/Data/CategoryInterface.php

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
<?php
2-
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
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 Landofcoder
17+
* @package Lof_Faq
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
20+
*/
321

422
namespace Lof\Faq\Api\Data;
523

@@ -45,6 +63,21 @@ interface CategoryInterface extends \Magento\Framework\Api\ExtensibleDataInterfa
4563
const LINKS = 'links';
4664
const STORES = 'stores';
4765

66+
/**
67+
* Retrieve existing extension attributes object or create a new one.
68+
* @return \Lof\Faq\Api\Data\CategoryExtensionInterface|null
69+
*/
70+
public function getExtensionAttributes();
71+
72+
/**
73+
* Set an extension attributes object.
74+
* @param \Lof\Faq\Api\Data\CategoryExtensionInterface $extensionAttributes
75+
* @return $this
76+
*/
77+
public function setExtensionAttributes(
78+
\Lof\Faq\Api\Data\CategoryExtensionInterface $extensionAttributes
79+
);
80+
4881
/**
4982
* Get category_id
5083
* @return int|null
@@ -239,7 +272,6 @@ public function getIsActive();
239272
*/
240273
public function setIsActive($is_active);
241274

242-
243275
/**
244276
* Get description
245277
* @return string|null
@@ -516,5 +548,4 @@ public function getStores();
516548
* @return \Lof\Faq\Api\Data\CategoryInterface
517549
*/
518550
public function setStores($stores);
519-
520551
}

Api/Data/CategorySearchResultsInterface.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
<?php
2-
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
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 Landofcoder
17+
* @package Lof_Faq
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
20+
*/
321

422
namespace Lof\Faq\Api\Data;
523

Api/Data/QuestionInterface.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
<?php
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
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 Landofcoder
17+
* @package Lof_Faq
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
20+
*/
21+
222
namespace Lof\Faq\Api\Data;
323

424
interface QuestionInterface extends \Magento\Framework\Api\ExtensibleDataInterface
@@ -41,6 +61,21 @@ interface QuestionInterface extends \Magento\Framework\Api\ExtensibleDataInterfa
4161
const LIMIT = 'limit';
4262
const STORES = 'stores';
4363

64+
/**
65+
* Retrieve existing extension attributes object or create a new one.
66+
* @return \Lof\Faq\Api\Data\QuestionExtensionInterface|null
67+
*/
68+
public function getExtensionAttributes();
69+
70+
/**
71+
* Set an extension attributes object.
72+
* @param \Lof\Faq\Api\Data\QuestionExtensionInterface $extensionAttributes
73+
* @return $this
74+
*/
75+
public function setExtensionAttributes(
76+
\Lof\Faq\Api\Data\QuestionExtensionInterface $extensionAttributes
77+
);
78+
4479
/**
4580
* Get question_id
4681
* @return int|null

Api/Data/QuestionSearchResultsInterface.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
<?php
2-
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
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 Landofcoder
17+
* @package Lof_Faq
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
20+
*/
321

422
namespace Lof\Faq\Api\Data;
523

Api/Data/TagInterface.php

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
<?php
2-
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
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 Landofcoder
17+
* @package Lof_Faq
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
20+
*/
321

422
namespace Lof\Faq\Api\Data;
523

@@ -14,6 +32,21 @@ interface TagInterface extends \Magento\Framework\Api\ExtensibleDataInterface
1432
const STORES = 'stores';
1533
const CATEGORIES = 'categories';
1634

35+
/**
36+
* Retrieve existing extension attributes object or create a new one.
37+
* @return \Lof\Faq\Api\Data\TagExtensionInterface|null
38+
*/
39+
public function getExtensionAttributes();
40+
41+
/**
42+
* Set an extension attributes object.
43+
* @param \Lof\Faq\Api\Data\TagExtensionInterface $extensionAttributes
44+
* @return $this
45+
*/
46+
public function setExtensionAttributes(
47+
\Lof\Faq\Api\Data\TagExtensionInterface $extensionAttributes
48+
);
49+
1750
/**
1851
* Get tag_id
1952
* @return int|null

Api/Data/TagSearchResultsInterface.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
<?php
2-
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
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 Landofcoder
17+
* @package Lof_Faq
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
20+
*/
321

422
namespace Lof\Faq\Api\Data;
523

Api/QuestionInfoByIdInterface.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
<?php
2-
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
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 Landofcoder
17+
* @package Lof_Faq
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
20+
*/
321

422
namespace Lof\Faq\Api;
523

Api/QuestionListByCategoryInterface.php

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
<?php
2-
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
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 Landofcoder
17+
* @package Lof_Faq
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
20+
*/
321

422
namespace Lof\Faq\Api;
523

@@ -17,5 +35,4 @@ interface QuestionListByCategoryInterface
1735
* @throws \Magento\Framework\Exception\LocalizedException
1836
*/
1937
public function getQuestionByCategoryForApi($categoryId);
20-
2138
}

Api/QuestionListByCustomerInterface.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
<?php
2-
2+
/**
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
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 Landofcoder
17+
* @package Lof_Faq
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
20+
*/
321

422
namespace Lof\Faq\Api;
523

0 commit comments

Comments
 (0)