30 lines
818 B
PHP
30 lines
818 B
PHP
<?php
|
|
/* @package Joomla
|
|
* @copyright Copyright (C) Open Source Matters. All rights reserved.
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
|
* @extension Phoca Extension
|
|
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
|
*/
|
|
defined('_JEXEC') or die();
|
|
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
|
|
jimport('joomla.application.component.model');
|
|
|
|
class PhocaDownloadCpModelPhocaDownloadLog extends BaseDatabaseModel
|
|
{
|
|
function __construct() {
|
|
parent::__construct();
|
|
}
|
|
function reset() {
|
|
//$user = JFactory::getUser();
|
|
$query = 'TRUNCATE #__phocadownload_logging';
|
|
$this->_db->setQuery( $query );
|
|
if (!$this->_db->execute()) {
|
|
throw new Exception($this->_db->getError());
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
?>
|