Esempio n. 1
0
/**
 * Deletes all desired rows in a table, while using a limit. This function will execute a
 * DELETE query until there are no more rows to delete.
 *
 * @see Piwik_Sql::deleteAllRows
 *
 * @param string  $table            The name of the table to delete from. Must be prefixed.
 * @param string  $where            The where clause of the query. Must include the WHERE keyword.
 * @param int     $maxRowsPerQuery  The maximum number of rows to delete per DELETE query.
 * @param array   $parameters       Parameters to bind in the query.
 * @return int  The total number of rows deleted.
 */
function Piwik_DeleteAllRows($table, $where, $maxRowsPerQuery, $parameters = array())
{
    return Piwik_Sql::deleteAllRows($table, $where, $maxRowsPerQuery, $parameters);
}