-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Magento2 Pwa Studio Theme by Cedcommerce
- Loading branch information
shikhamis11
committed
Dec 13, 2019
1 parent
1b596e9
commit 4079e27
Showing
3,238 changed files
with
339,638 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
Ced_PwaApi/app/code/Ced/PwaApi/Api/Data/WishlistInterface.php
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,64 @@ | ||
<?php | ||
|
||
namespace Ced\PwaApi\Api\Data; | ||
|
||
interface WishlistInterface | ||
{ | ||
/** | ||
* Set setType | ||
* | ||
* @param int $item_id item_id | ||
* | ||
* @return int | ||
*/ | ||
public function setItemId($item_id); | ||
/** | ||
* getItemId | ||
* | ||
* @return int|null | ||
*/ | ||
public function getItemId(); | ||
/** | ||
*setProdID | ||
* | ||
* @param int $prodid prodid | ||
* | ||
* @return int | ||
*/ | ||
public function setProdID($prodid); | ||
/** | ||
* Get setType | ||
* | ||
* @return int|null | ||
*/ | ||
public function getProdID(); | ||
/** | ||
* Set customer_id | ||
* | ||
* @param int $customer_id customer_id | ||
* | ||
* @return int | ||
*/ | ||
public function setCustomerId($customer_id); | ||
/** | ||
* Get CustomerId | ||
* | ||
* @return int|null | ||
*/ | ||
public function getCustomerId(); | ||
/** | ||
* Set store_id | ||
* | ||
* @param int $store_id store_id | ||
* | ||
* @return int | ||
*/ | ||
public function setStoreId($store_id); | ||
/** | ||
* Get StoreId | ||
* | ||
* @return int|null | ||
*/ | ||
public function getStoreId(); | ||
|
||
} |
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,27 @@ | ||
<?php | ||
namespace Ced\PwaApi\Api; | ||
|
||
interface HomePageInterface | ||
{ | ||
|
||
/** | ||
* Save contact form details | ||
* | ||
* @api | ||
* @param string $name name | ||
* @param string $email email | ||
* @param string $telephone telephone | ||
* @param string $comment comment | ||
* @return string | ||
*/ | ||
public function saveContactForm($name,$email,$telephone,$comment); | ||
|
||
/** | ||
* Returns categories | ||
* | ||
* @api | ||
* @return string | ||
*/ | ||
public function getNavigationDetails(); | ||
|
||
} |
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,15 @@ | ||
<?php | ||
|
||
namespace Ced\PwaApi\Api; | ||
|
||
interface WishlistInterface | ||
{ | ||
/** | ||
* Gets the json. | ||
* | ||
* @param \Ced\PwaApi\Api\Data\WishlistInterface $parameters parameters | ||
* | ||
* @return [] | ||
*/ | ||
public function remove(\Ced\PwaApi\Api\Data\WishlistInterface $parameters); | ||
} |
56 changes: 56 additions & 0 deletions
56
Ced_PwaApi/app/code/Ced/PwaApi/Block/Adminhtml/Extensions/Details.php
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,56 @@ | ||
<?php | ||
|
||
/** | ||
* CedCommerce | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the End User License Agreement (EULA) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://cedcommerce.com/license-agreement.txt | ||
* | ||
* @category Ced | ||
* @package Ced_PwaApi | ||
* @author CedCommerce Core Team <[email protected]> | ||
* @copyright Copyright CedCommerce (http://cedcommerce.com/) | ||
* @license http://cedcommerce.com/license-agreement.txt | ||
*/ | ||
|
||
namespace Ced\PwaApi\Block\Adminhtml\Extensions; | ||
|
||
class Details extends \Magento\Backend\Block\Widget\Container | ||
{ | ||
protected $_objectManager; | ||
/** | ||
* @param \Magento\Backend\Block\Widget\Context $context | ||
* @param array $data | ||
*/ | ||
public function __construct( | ||
\Magento\Backend\Block\Widget\Context $context, | ||
\Magento\Framework\ObjectManagerInterface $objectInterface, | ||
array $data = [] | ||
) { | ||
$this->_objectManager = $objectInterface; | ||
parent::__construct($context, $data); | ||
} | ||
|
||
public function getModules(){ | ||
$modules = $this->_objectManager->get('\Ced\PwaApi\Helper\Feed')->getCedCommerceExtensions(); | ||
$helper = $this->_objectManager->get('\Ced\PwaApi\Helper\Data'); | ||
$params = array(); | ||
$args = ''; | ||
foreach ($modules as $moduleName=>$releaseVersion) | ||
{ | ||
$m = strtolower($moduleName); if(!preg_match('/ced/i',$m)){ return $this; } $h = $helper->getStoreConfig(\Ced\PwaApi\Block\Extensions::HASH_PATH_PREFIX.$m.'_hash'); for($i=1;$i<=(int)$helper->getStoreConfig(\Ced\PwaApi\Block\Extensions::HASH_PATH_PREFIX.$m.'_level');$i++){$h = base64_decode($h);}$h = json_decode($h,true); | ||
if(is_array($h) && isset($h['domain']) && isset($h['module_name']) && isset($h['license']) && strtolower($h['module_name']) == $m && $h['license'] == $helper->getStoreConfig(\Ced\PwaApi\Block\Extensions::HASH_PATH_PREFIX.$m)){}else{ | ||
$args .= $m.','; | ||
} | ||
} | ||
|
||
$args = trim($args,','); | ||
return $args; | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.