ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @author 18th DigiTech Team
|
||||
* @copyright Copyright (c) 2020 18th DigiTech (https://www.18thdigitech.com)
|
||||
* @package Caratlane_NetSuite
|
||||
*/
|
||||
namespace Caratlane\NetSuite\Model\ResourceModel;
|
||||
|
||||
class NetSuite extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
|
||||
{
|
||||
|
||||
/*public function __construct(
|
||||
\Magento\Framework\Model\ResourceModel\Db\Context $context
|
||||
) {
|
||||
parent::__construct($context);
|
||||
}*/
|
||||
|
||||
protected function _construct()
|
||||
{
|
||||
$this->_init('netsuite_orders', 'entity_id'); //entity_id : Primary key of your database table
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* @author 18th DigiTech Team
|
||||
* @copyright Copyright (c) 2020 18th DigiTech (https://www.18thdigitech.com)
|
||||
* @package Caratlane_NetSuite
|
||||
*/
|
||||
namespace Caratlane\NetSuite\Model\ResourceModel\NetSuite;
|
||||
|
||||
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
|
||||
{
|
||||
|
||||
protected $_idFieldName = 'entity_id';
|
||||
protected $_eventPrefix = 'netsuite_order_log_collection';
|
||||
protected $_eventObject = 'netsuite_order_collection';
|
||||
|
||||
/**
|
||||
* Define resource model
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function _construct()
|
||||
{
|
||||
$this->_init(
|
||||
\Caratlane\NetSuite\Model\NetSuite::class,
|
||||
\Caratlane\NetSuite\Model\ResourceModel\NetSuite::class
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Caratlane
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Caratlane.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.Caratlane.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to any file if you wish to upgrade this extension
|
||||
* version in the future.
|
||||
*
|
||||
* @category Caratlane
|
||||
* @package Caratlane_NetSuite
|
||||
* @copyright Copyright (c) Caratlane (https://www.Caratlane.com/)
|
||||
* @license https://www.Caratlane.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Caratlane\NetSuite\Model\ResourceModel;
|
||||
|
||||
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
|
||||
|
||||
class NetSuiteOrdersUpdate extends AbstractDb
|
||||
{
|
||||
/**
|
||||
* Define main table
|
||||
*/
|
||||
protected function _construct()
|
||||
{
|
||||
$this->_init('netsuite_order_update', 'entity_id');
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Caratlane
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Caratlane.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.Caratlane.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to any file if you wish to upgrade this extension
|
||||
* version in the future.
|
||||
*
|
||||
* @category Caratlane
|
||||
* @package Caratlane_NetSuite
|
||||
* @copyright Copyright (c) Caratlane (https://www.Caratlane.com/)
|
||||
* @license https://www.Caratlane.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Caratlane\NetSuite\Model\ResourceModel\NetSuiteOrdersUpdate;
|
||||
|
||||
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
|
||||
|
||||
class Collection extends AbstractCollection
|
||||
{
|
||||
/**
|
||||
* Define model & resource model
|
||||
*/
|
||||
protected function _construct()
|
||||
{
|
||||
$this->_init(
|
||||
\Caratlane\NetSuite\Model\NetSuiteOrdersUpdate::class,
|
||||
\Caratlane\NetSuite\Model\ResourceModel\NetSuiteOrdersUpdate::class
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Caratlane
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Caratlane.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.Caratlane.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to any file if you wish to upgrade this extension
|
||||
* version in the future.
|
||||
*
|
||||
* @category Caratlane
|
||||
* @package Caratlane_NetSuite
|
||||
* @copyright Copyright (c) Caratlane (https://www.Caratlane.com/)
|
||||
* @license https://www.Caratlane.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Caratlane\NetSuite\Model\ResourceModel;
|
||||
|
||||
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
|
||||
|
||||
class NetsuiteShipments extends AbstractDb
|
||||
{
|
||||
/**
|
||||
* Define main table
|
||||
*/
|
||||
protected function _construct()
|
||||
{
|
||||
$this->_init('netsuite_shipments', 'entity_id');
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Caratlane
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Caratlane.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.Caratlane.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to any file if you wish to upgrade this extension
|
||||
* version in the future.
|
||||
*
|
||||
* @category Caratlane
|
||||
* @package Caratlane_NetSuite
|
||||
* @copyright Copyright (c) Caratlane (https://www.Caratlane.com/)
|
||||
* @license https://www.Caratlane.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Caratlane\NetSuite\Model\ResourceModel\NetsuiteShipments;
|
||||
|
||||
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
|
||||
|
||||
class Collection extends AbstractCollection
|
||||
{
|
||||
/**
|
||||
* Define model & resource model
|
||||
*/
|
||||
protected function _construct()
|
||||
{
|
||||
$this->_init(
|
||||
\Caratlane\NetSuite\Model\NetsuiteShipments::class,
|
||||
\Caratlane\NetSuite\Model\ResourceModel\NetsuiteShipments::class
|
||||
);
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Caratlane
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Caratlane.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.Caratlane.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to any file if you wish to upgrade this extension
|
||||
* version in the future.
|
||||
*
|
||||
* @category Caratlane
|
||||
* @package Caratlane_NetSuite
|
||||
* @copyright Copyright (c) Caratlane (https://www.Caratlane.com/)
|
||||
* @license https://www.Caratlane.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Caratlane\NetSuite\Model\ResourceModel;
|
||||
|
||||
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
|
||||
|
||||
class NetsuiteUpdateinvoicepdf extends AbstractDb
|
||||
{
|
||||
/**
|
||||
* Define main table
|
||||
*/
|
||||
protected function _construct()
|
||||
{
|
||||
$this->_init('netsuite_invoice_pdf', 'entity_id');
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Caratlane
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Caratlane.com license that is
|
||||
* available through the world-wide-web at this URL:
|
||||
* https://www.Caratlane.com/LICENSE.txt
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to any file if you wish to upgrade this extension
|
||||
* version in the future.
|
||||
*
|
||||
* @category Caratlane
|
||||
* @package Caratlane_NetSuite
|
||||
* @copyright Copyright (c) Caratlane (https://www.Caratlane.com/)
|
||||
* @license https://www.Caratlane.com/LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace Caratlane\NetSuite\Model\ResourceModel\NetsuiteUpdateinvoicepdf;
|
||||
|
||||
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
|
||||
|
||||
class Collection extends AbstractCollection
|
||||
{
|
||||
/**
|
||||
* Define model & resource model
|
||||
*/
|
||||
protected function _construct()
|
||||
{
|
||||
$this->_init(
|
||||
\Caratlane\NetSuite\Model\NetsuiteUpdateinvoicepdf::class,
|
||||
\Caratlane\NetSuite\Model\ResourceModel\NetsuiteUpdateinvoicepdf::class
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user