function store($updateNulls = false) { if (isset($this->preparePrint) && $this->preparePrint == 1) { throw new Exception('Error jshopUserShop::store()'); } $tmp = $this->percent_discount; unset($this->percent_discount); JDispatcher::getInstance()->trigger('onBeforeStoreTableShop', array(&$this)); $res = parent::store($updateNulls); $this->percent_discount = $tmp; return $res; }
function __construct() { $db = JFactory::getDBO(); parent::__construct($db); }