ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
◀ 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
Counter.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\Counter
;
22
23
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
24
use
ILIAS\UI\Component\Counter\Counter
as
Spec
;
25
26
class
Counter
implements
Spec
27
{
28
use
ComponentHelper
;
29
30
private
static
array
$types
= array( self::NOVELTY, self::STATUS);
31
private
string
$type
;
32
private
int
$number
;
33
34
public
function
__construct
(
string
$type,
int
$number)
35
{
36
$this->checkArgIsElement(
"type"
, $type, self::$types,
"counter type"
);
37
$this->type =
$type
;
38
$this->number =
$number
;
39
}
40
44
public
function
getType
(): string
45
{
46
return
$this->type
;
47
}
48
52
public
function
getNumber
():
int
53
{
54
return
$this->number
;
55
}
56
}
ILIAS\UI\Implementation\Component\Counter\Counter\getNumber
getNumber()
Get the number on the counter.
Definition:
Counter.php:52
ILIAS\UI\Implementation\Component\Counter\Counter\$type
string $type
Definition:
Counter.php:31
ILIAS\UI\Implementation\Component\Counter\Counter\getType
getType()
Get the type of the counter.string One of the counter types.
Definition:
Counter.php:44
ILIAS\UI\Implementation\Component\Counter\Counter\__construct
__construct(string $type, int $number)
Definition:
Counter.php:34
ILIAS\UI\Implementation\Component\Counter\Counter\$types
static array $types
Definition:
Counter.php:30
Counter
ILIAS\UI\Implementation\Component\Counter
Definition:
Counter.php:21
ILIAS\UI\Implementation\Component\Counter\Counter
Definition:
Counter.php:26
ComponentHelper
ILIAS\UI\Implementation\Component\Counter\Counter\$number
int $number
Definition:
Counter.php:32
ComponentHelper
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
UI
src
Implementation
Component
Counter
Counter.php
Generated on Fri Apr 4 2025 23:04:20 for ILIAS by
1.8.13 (using
Doxyfile
)