| Current Path : /home/digilove/public_html/components/com_marketplace/models/ |
| Current File : /home/digilove/public_html/components/com_marketplace/models/feedback.php |
<?php
/**
* Marketplace - Component Marketplace
* ******************************************************************
*
* PHP version 7.0
*
* @category Component
* @package Joomla
* @author WebKul software private limited <support@webkul.com>
* @copyright 2010 WebKul software private limited
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @version GIT:5.2
* @filesource http://store.webkul.com
* @link Technical Support: webkul.uvdesk.com
* ******************************************************************
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.model');
JTable::addIncludePath(JPATH_COMPONENT_SITE.DIRECTORY_SEPARATOR.'tables');
if (!class_exists('MarketplaceModelFeedback')) {
/**
* Marketplace Model Feedback class
*
* @category Component
* @package Joomla
* @author WebKul software private limited <support@webkul.com>
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @link Technical Support: webkul.uvdesk.com
*/
class MarketplaceModelFeedback extends JModelLegacy
{
var $_data = null;
/**
* __construct function
*/
function __construct()
{
parent::__construct();
}
/**
* Save Item function
*
* @param integer $data var
*
* @return void
*/
function saveItem($data)
{
if (!$this->customerTable->bind($data)) {
$this->setError($this->customerTable->getError());
return false;
}
if (!$this->customerTable->store()) {
$this->setError($this->customerTable->getError());
return false;
}
return true;
}
}
}