|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / dev2.destoffenstraat.com / app / code / Swissup / DeliveryDate / Model / |
Filename | /home/dev2.destoffenstraat.com/app/code/Swissup/DeliveryDate/Model/Deliverydate.php |
Size | 4.07 kb |
Permission | rwxrwxrwx |
Owner | root : root |
Create time | 17-Aug-2025 10:26 |
Last modified | 03-May-2022 16:07 |
Last accessed | 22-Aug-2025 11:57 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
namespace Swissup\DeliveryDate\Model;
use Swissup\DeliveryDate\Api\Data\DeliverydateInterface;
use Magento\Framework\DataObject\IdentityInterface;
class Deliverydate extends \Magento\Framework\Model\AbstractModel implements DeliverydateInterface, IdentityInterface
{
/**
* cache tag
*/
const CACHE_TAG = 'deliverydate_deliverydate';
/**
* @var string
*/
protected $_cacheTag = 'deliverydate_deliverydate';
/**
* Prefix of model events names
*
* @var string
*/
protected $_eventPrefix = 'deliverydate_deliverydate';
/**
* Initialize resource model
*
* @return void
*/
protected function _construct()
{
$this->_init('Swissup\DeliveryDate\Model\ResourceModel\Deliverydate');
}
/**
* Return unique ID(s) for each object in system
*
* @return array
*/
public function getIdentities()
{
return [self::CACHE_TAG . '_' . $this->getId()];
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->getData(self::ID);
}
/**
* Get quote_id
*
* @return int
*/
public function getQuoteId()
{
return $this->getData(self::QUOTE_ID);
}
/**
* Get order_id
*
* @return int
*/
public function getOrderId()
{
return $this->getData(self::ORDER_ID);
}
/**
* Get comment
*
* @return string
*/
public function getComment()
{
return $this->getData(self::COMMENT);
}
/**
* Get date
*
* @return string
*/
public function getDate()
{
return $this->getData(self::DATE);
}
/**
* Get timerange
*
* @return string
*/
public function getTimerange()
{
return $this->getData(self::TIMERANGE);
}
/**
* Set id
*
* @param int $id
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setId($id)
{
return $this->setData(self::ID, $id);
}
/**
* Set quote_id
*
* @param int $quoteId
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setQuoteId($quoteId)
{
return $this->setData(self::QUOTE_ID, $quoteId);
}
/**
* Set order_id
*
* @param int $orderId
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setOrderId($orderId)
{
return $this->setData(self::ORDER_ID, $orderId);
}
/**
* Set comment
*
* @param string $comment
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setComment($comment)
{
return $this->setData(self::COMMENT, $comment);
}
/**
* Set date
*
* @param string $date
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setDate($date)
{
return $this->setData(self::DATE, $date);
}
/**
* Set timerange
*
* @param string $timerange
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setTimerange($timerange)
{
return $this->setData(self::TIMERANGE, $timerange);
}
/**
* Load by quote id
*
* @param int quote id
* @return $this
*/
public function loadByQuoteId($quoteId)
{
$this->_getResource()->loadByQuoteId($this, $quoteId);
return $this;
}
/**
* Load by order id
*
* @param int order id
* @return $this
*/
public function loadByOrderId($orderId)
{
$this->_getResource()->loadByOrderId($this, $orderId);
return $this;
}
/**
* Load by order id and quote id
*
* @param int order id
* @param int quote id
* @return $this
*/
public function loadByOrderIdAndQuoteId($orderId, $quoteId)
{
$this->_getResource()->loadByOrderIdAndQuoteId($this, $orderId, $quoteId);
return $this;
}
}
namespace Swissup\DeliveryDate\Model;
use Swissup\DeliveryDate\Api\Data\DeliverydateInterface;
use Magento\Framework\DataObject\IdentityInterface;
class Deliverydate extends \Magento\Framework\Model\AbstractModel implements DeliverydateInterface, IdentityInterface
{
/**
* cache tag
*/
const CACHE_TAG = 'deliverydate_deliverydate';
/**
* @var string
*/
protected $_cacheTag = 'deliverydate_deliverydate';
/**
* Prefix of model events names
*
* @var string
*/
protected $_eventPrefix = 'deliverydate_deliverydate';
/**
* Initialize resource model
*
* @return void
*/
protected function _construct()
{
$this->_init('Swissup\DeliveryDate\Model\ResourceModel\Deliverydate');
}
/**
* Return unique ID(s) for each object in system
*
* @return array
*/
public function getIdentities()
{
return [self::CACHE_TAG . '_' . $this->getId()];
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->getData(self::ID);
}
/**
* Get quote_id
*
* @return int
*/
public function getQuoteId()
{
return $this->getData(self::QUOTE_ID);
}
/**
* Get order_id
*
* @return int
*/
public function getOrderId()
{
return $this->getData(self::ORDER_ID);
}
/**
* Get comment
*
* @return string
*/
public function getComment()
{
return $this->getData(self::COMMENT);
}
/**
* Get date
*
* @return string
*/
public function getDate()
{
return $this->getData(self::DATE);
}
/**
* Get timerange
*
* @return string
*/
public function getTimerange()
{
return $this->getData(self::TIMERANGE);
}
/**
* Set id
*
* @param int $id
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setId($id)
{
return $this->setData(self::ID, $id);
}
/**
* Set quote_id
*
* @param int $quoteId
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setQuoteId($quoteId)
{
return $this->setData(self::QUOTE_ID, $quoteId);
}
/**
* Set order_id
*
* @param int $orderId
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setOrderId($orderId)
{
return $this->setData(self::ORDER_ID, $orderId);
}
/**
* Set comment
*
* @param string $comment
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setComment($comment)
{
return $this->setData(self::COMMENT, $comment);
}
/**
* Set date
*
* @param string $date
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setDate($date)
{
return $this->setData(self::DATE, $date);
}
/**
* Set timerange
*
* @param string $timerange
* @return \Swissup\DeliveryDate\Api\Data\DeliverydateInterface
*/
public function setTimerange($timerange)
{
return $this->setData(self::TIMERANGE, $timerange);
}
/**
* Load by quote id
*
* @param int quote id
* @return $this
*/
public function loadByQuoteId($quoteId)
{
$this->_getResource()->loadByQuoteId($this, $quoteId);
return $this;
}
/**
* Load by order id
*
* @param int order id
* @return $this
*/
public function loadByOrderId($orderId)
{
$this->_getResource()->loadByOrderId($this, $orderId);
return $this;
}
/**
* Load by order id and quote id
*
* @param int order id
* @param int quote id
* @return $this
*/
public function loadByOrderIdAndQuoteId($orderId, $quoteId)
{
$this->_getResource()->loadByOrderIdAndQuoteId($this, $orderId, $quoteId);
return $this;
}
}