blob: 3b8083ad417d18ff1b3e69c111dc86de7c0746e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
if ( !class_exists( 'GiglogAdmin_Concertlogs' ) )
{
class GiglogAdmin_Concertlogs
{
/**
* Adds a default entry for the given concert id in the
* concert logs table.
*
* @return void
*/
public static function add($concert_id): void
{
global $wpdb;
$q = $wpdb->prepare(
"INSERT INTO wpg_concertlogs SET wpgcl_concertid = %d",
intval($concert_id));
$wpdb->query($q);
}
}
}
|