update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
34
www/analytics/core/DataAccess/Actions.php
Normal file
34
www/analytics/core/DataAccess/Actions.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
namespace Piwik\DataAccess;
|
||||
|
||||
use Piwik\Db;
|
||||
use Piwik\Common;
|
||||
|
||||
/**
|
||||
* Data Access Object for operations dealing with the log_action table.
|
||||
*/
|
||||
class Actions
|
||||
{
|
||||
/**
|
||||
* Removes a list of actions from the log_action table by ID.
|
||||
*
|
||||
* @param int[] $idActions
|
||||
*/
|
||||
public function delete($idActions)
|
||||
{
|
||||
foreach ($idActions as &$id) {
|
||||
$id = (int)$id;
|
||||
}
|
||||
|
||||
$table = Common::prefixTable('log_action');
|
||||
|
||||
$sql = "DELETE FROM $table WHERE idaction IN (" . implode(",", $idActions) . ")";
|
||||
Db::query($sql);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue