-
Notifications
You must be signed in to change notification settings - Fork 11
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
1 parent
9ee4d44
commit 7e32d8b
Showing
64 changed files
with
11,009 additions
and
0 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 @@ | ||
.DS_Store |
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,36 @@ | ||
<?php | ||
namespace Sendinblue\Sendinblue\Block\Adminhtml; | ||
|
||
use Magento\Backend\Block\Template; | ||
//use Sendinblue\Sendinblue\Helper\ConfigHelper; | ||
//use Sendinblue\Sendinblue\Model\AdminSample; | ||
|
||
class SendinblueBlock extends Template | ||
{ | ||
protected $_config; | ||
protected $_adminSampleModel; | ||
|
||
/** | ||
* @param Context $context | ||
* @param array $data | ||
*/ | ||
public function __construct( | ||
\Magento\Backend\Block\Template\Context $context, | ||
array $data = [] | ||
) { | ||
parent::__construct($context, $data); | ||
} | ||
|
||
public function getDataDb() | ||
{ | ||
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); | ||
$dbConfig = $objectManager->get('Magento\Framework\App\Config\ScopeConfigInterface'); | ||
return $dbConfig; | ||
} | ||
public function getFormValue() | ||
{ | ||
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); | ||
$FormKey = $objectManager->get('Magento\Framework\Data\Form\FormKey'); | ||
return $FormKey->getFormKey(); | ||
} | ||
} |
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,36 @@ | ||
<?php | ||
namespace Sendinblue\Sendinblue\Block; | ||
|
||
//use Sendinblue\Sendinblue\Helper\ConfigHelper; | ||
//use Sendinblue\Sendinblue\Model\AdminSample; | ||
|
||
class Sib extends \Magento\Framework\View\Element\Template | ||
{ | ||
protected $_config; | ||
protected $_adminSampleModel; | ||
|
||
/** | ||
* @param Context $context | ||
* @param array $data | ||
*/ | ||
public function __construct( | ||
\Magento\Framework\View\Element\Template\Context $context, | ||
array $data = [] | ||
) { | ||
parent::__construct($context, $data); | ||
} | ||
|
||
public function getDataDb() | ||
{ | ||
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); | ||
$dbConfig = $objectManager->get('Magento\Framework\App\Config\ScopeConfigInterface'); | ||
return $dbConfig; | ||
} | ||
public function getFormValue() | ||
{ | ||
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); | ||
$FormKey = $objectManager->get('Magento\Framework\Data\Form\FormKey'); | ||
return $FormKey->getFormKey(); | ||
} | ||
|
||
} |
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,37 @@ | ||
<?php | ||
namespace Sendinblue\Sendinblue\Controller\Adminhtml\Sib; | ||
|
||
class Index extends \Magento\Backend\App\Action | ||
{ | ||
/** | ||
* @var \Magento\Framework\View\Result\PageFactory | ||
*/ | ||
protected $resultPageFactory; | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @param \Magento\Backend\App\Action\Context $context | ||
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory | ||
*/ | ||
public function __construct( | ||
\Magento\Backend\App\Action\Context $context, | ||
\Magento\Framework\View\Result\PageFactory $resultPageFactory | ||
) { | ||
parent::__construct($context); | ||
$this->resultPageFactory = $resultPageFactory; | ||
} | ||
|
||
/** | ||
* Load the page defined in view/adminhtml/layout/exampleadminnewpage_helloworld_index.xml | ||
* | ||
* @return \Magento\Framework\View\Result\Page | ||
*/ | ||
public function execute() | ||
{ | ||
$resultPage = $this->resultPageFactory->create(); | ||
|
||
return $resultPage; | ||
} | ||
} | ||
|
Oops, something went wrong.