-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
96 changed files
with
19,845 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
<?php | ||
/** | ||
* Ecomteck | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the ecomteck.com license that is | ||
* available through the world-wide-web at this URL: | ||
* https://ecomteck.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 Ecomteck | ||
* @package Ecomteck_Megamenu | ||
* @copyright Copyright (c) 2019 Ecomteck (https://ecomteck.com/) | ||
* @license https://ecomteck.com/LICENSE.txt | ||
*/ | ||
|
||
namespace Ecomteck\Megamenu\Api\Data; | ||
|
||
/** | ||
* Menu Interface | ||
*/ | ||
interface MenuInterface | ||
{ | ||
/** | ||
* Constants for field names. | ||
*/ | ||
const MENU_ID = 'menu_id'; | ||
|
||
const TITLE = 'title'; | ||
|
||
const IDENTIFIER = 'identifier'; | ||
|
||
const CSS_CLASS = 'css_class'; | ||
|
||
const CREATION_TIME = 'creation_time'; | ||
|
||
const UPDATE_TIME = 'update_time'; | ||
|
||
const IS_ACTIVE = 'is_active'; | ||
|
||
/** | ||
* Get menu id | ||
* | ||
* @return int | ||
*/ | ||
public function getMenuId(); | ||
|
||
/** | ||
* Set menu id | ||
* | ||
* @param int $menuId | ||
* @return $this | ||
*/ | ||
public function setMenuId($menuId); | ||
|
||
/** | ||
* Get title | ||
* | ||
* @return string | ||
*/ | ||
public function getTitle(); | ||
|
||
/** | ||
* Set title | ||
* | ||
* @param string $title | ||
* @return $this | ||
*/ | ||
public function setTitle($title); | ||
|
||
/** | ||
* Get identifier | ||
* | ||
* @return string | ||
*/ | ||
public function getIdentifier(); | ||
|
||
/** | ||
* Set identifier | ||
* | ||
* @param string $identifier | ||
* @return $this | ||
*/ | ||
public function setIdentifier($identifier); | ||
|
||
/** | ||
* Get css class | ||
* | ||
* @return string | ||
*/ | ||
public function getCssClass(); | ||
|
||
/** | ||
* Set css class | ||
* | ||
* @param string $cssClass | ||
* @return $this | ||
*/ | ||
public function setCssClass($cssClass); | ||
|
||
/** | ||
* Get creation time | ||
* | ||
* @return string | ||
*/ | ||
public function getCreationTime(); | ||
|
||
/** | ||
* Set creation time | ||
* | ||
* @param string $creationTime format: Y-m-d H:i:s | ||
* @return $this | ||
*/ | ||
public function setCreationTime($creationTime); | ||
|
||
/** | ||
* Get update time | ||
* | ||
* @return string | ||
*/ | ||
public function getUpdateTime(); | ||
|
||
/** | ||
* Set update time | ||
* | ||
* @param string $updateTime format: Y-m-d H:i:s | ||
* @return $this | ||
*/ | ||
public function setUpdateTime($updateTime); | ||
|
||
/** | ||
* Get is active | ||
* | ||
* @return int | ||
*/ | ||
public function getIsActive(); | ||
|
||
/** | ||
* Set is active | ||
* | ||
* @param int $isActive | ||
* @return $this | ||
*/ | ||
public function setIsActive($isActive); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* Ecomteck | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the ecomteck.com license that is | ||
* available through the world-wide-web at this URL: | ||
* https://ecomteck.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 Ecomteck | ||
* @package Ecomteck_Megamenu | ||
* @copyright Copyright (c) 2019 Ecomteck (https://ecomteck.com/) | ||
* @license https://ecomteck.com/LICENSE.txt | ||
*/ | ||
|
||
namespace Ecomteck\Megamenu\Api\Data; | ||
|
||
use Magento\Framework\Api\SearchResultsInterface; | ||
|
||
/** | ||
* Search results interface. | ||
* | ||
* @api | ||
*/ | ||
interface MenuSearchResultsInterface extends SearchResultsInterface | ||
{ | ||
/** | ||
* Get pages list. | ||
* | ||
* @return \Ecomteck\Megamenu\Api\Data\MenuInterface[] | ||
*/ | ||
public function getItems(); | ||
|
||
/** | ||
* Set pages list. | ||
* | ||
* @param \Ecomteck\Megamenu\Api\Data\MenuInterface[] $items | ||
* @return $this | ||
*/ | ||
public function setItems(array $items); | ||
} |
Oops, something went wrong.