ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.UsageDBRepository.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\COPage\Usage
;
22
26
class
UsageDBRepository
27
{
28
protected \ilDBInterface
$db
;
29
30
public
function
__construct
(\
ilDBInterface
$db)
31
{
32
$this->db =
$db
;
33
}
34
35
public
function
deleteHistoryUsagesLowerEqualThan
(
36
string
$pc_type,
37
string
$a_type,
38
int
$a_id,
39
int
$a_usage_hist_nr,
40
string
$a_lang =
"-"
41
): void {
42
$db =
$this->db
;
43
44
$and_hist =
" AND usage_hist_nr > 0 AND usage_hist_nr <= "
. $db->
quote
($a_usage_hist_nr,
"integer"
);
45
46
$q
=
"DELETE FROM page_pc_usage WHERE usage_type = "
.
47
$db->quote($a_type,
"text"
) .
48
" AND usage_id = "
. $db->quote((
int
) $a_id,
"integer"
) .
49
" AND usage_lang = "
. $db->quote($a_lang,
"text"
) .
50
$and_hist .
51
" AND pc_type = "
. $db->quote($pc_type,
"text"
);
52
$db->manipulate(
$q
);
53
}
54
}
ilDBInterface\quote
quote($value, string $type)
ILIAS\Skill\Usage\UsageDBRepository
Definition:
class.UsageDBRepository.php:26
ILIAS\Skill\Usage\UsageDBRepository\__construct
__construct(\ilDBInterface $db)
Definition:
class.UsageDBRepository.php:30
ilDBInterface
$q
$q
Definition:
shib_logout.php:21
ILIAS\Skill\Usage\UsageDBRepository\$db
ilDBInterface $db
Definition:
class.UsageDBRepository.php:28
ILIAS\COPage\Usage
Definition:
class.UsageDBRepository.php:21
ILIAS\Skill\Usage\UsageDBRepository\deleteHistoryUsagesLowerEqualThan
deleteHistoryUsagesLowerEqualThan(string $pc_type, string $a_type, int $a_id, int $a_usage_hist_nr, string $a_lang="-")
Definition:
class.UsageDBRepository.php:35
components
ILIAS
COPage
Usage
class.UsageDBRepository.php
Generated on Sat Apr 5 2025 23:02:56 for ILIAS by
1.8.13 (using
Doxyfile
)