ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
Counter.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\UI\Implementation\Component\Counter
;
6
7
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
8
use
ILIAS\UI\Component\Counter\Counter
as
Spec
;
9
10
class
Counter
implements
Spec
{
11
use
ComponentHelper
;
12
13
private
static
$types
=
array
14
( self::NOVELTY
15
, self::STATUS
16
);
17
21
private
$type
;
22
26
private
$number
;
27
32
public
function
__construct
(
$type
,
$number
) {
33
$this->checkArgIsElement(
"type"
,
$type
, self::$types,
"counter type"
);
34
$this->checkIntArg(
"number"
,
$number
);
35
$this->type =
$type
;
36
$this->number =
$number
;
37
}
38
42
public
function
getType
() {
43
return
$this->type
;
44
}
45
49
public
function
getNumber
() {
50
return
$this->number
;
51
}
52
}
ILIAS\UI\Implementation\Component\Counter\Counter\getNumber
getNumber()
Get the number on the counter.int
Definition:
Counter.php:49
ILIAS\UI\Implementation\Component\Counter\Counter\$type
$type
Definition:
Counter.php:21
ILIAS\UI\Implementation\Component\Counter\Counter\getType
getType()
Get the type of the counter.string One of the counter types.
Definition:
Counter.php:42
ILIAS\UI\Implementation\Component\Counter\Counter\__construct
__construct($type, $number)
Definition:
Counter.php:32
Counter
ILIAS\UI\Implementation\Component\Counter
Definition:
Counter.php:5
ILIAS\UI\Implementation\Component\Counter\Counter\$types
static $types
Definition:
Counter.php:13
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ILIAS\UI\Implementation\Component\Counter\Counter\$number
$number
Definition:
Counter.php:26
ILIAS\UI\Implementation\Component\Counter\Counter
Definition:
Counter.php:10
ComponentHelper
php
ComponentHelper
src
UI
Implementation
Component
Counter
Counter.php
Generated on Fri Mar 7 2025 19:01:20 for ILIAS by
1.8.13 (using
Doxyfile
)