Skip to content

Commit

Permalink
Magento2 Pwa Studio Theme by Cedcommerce
Browse files Browse the repository at this point in the history
  • Loading branch information
shikhamis11 committed Dec 13, 2019
1 parent 1b596e9 commit 4079e27
Show file tree
Hide file tree
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.
64 changes: 64 additions & 0 deletions Ced_PwaApi/app/code/Ced/PwaApi/Api/Data/WishlistInterface.php
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();

}
27 changes: 27 additions & 0 deletions Ced_PwaApi/app/code/Ced/PwaApi/Api/HomePageInterface.php
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();

}
15 changes: 15 additions & 0 deletions Ced_PwaApi/app/code/Ced/PwaApi/Api/WishlistInterface.php
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);
}
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;

}

}
Loading

0 comments on commit 4079e27

Please sign in to comment.