ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
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 Mon Sep 1 2025 23:04:17 for ILIAS by
1.8.13 (using
Doxyfile
)