ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
ILIAS\UI\Implementation\Component\Counter\Counter Class Reference
+ Inheritance diagram for ILIAS\UI\Implementation\Component\Counter\Counter:
+ Collaboration diagram for ILIAS\UI\Implementation\Component\Counter\Counter:

Public Member Functions

 __construct ($type, $number)
 
 getType ()
 Get the type of the counter.
Returns
string One of the counter types.
More...
 
 getNumber ()
 Get the number on the counter.
Returns
int
More...
 

Private Attributes

 $type
 
 $number
 

Static Private Attributes

static $types
 

Additional Inherited Members

- Data Fields inherited from ILIAS\UI\Component\Counter\Counter
const NOVELTY = "novelty"
 
const STATUS = "status"
 

Detailed Description

Definition at line 10 of file Counter.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\UI\Implementation\Component\Counter\Counter::__construct (   $type,
  $number 
)
Parameters
string$type
int$number

Definition at line 32 of file Counter.php.

References ILIAS\UI\Implementation\Component\Counter\Counter\$number, and ILIAS\UI\Implementation\Component\Counter\Counter\$type.

32  {
33  $this->checkArgIsElement("type", $type, self::$types, "counter type");
34  $this->checkIntArg("number", $number);
35  $this->type = $type;
36  $this->number = $number;
37  }

Member Function Documentation

◆ getNumber()

ILIAS\UI\Implementation\Component\Counter\Counter::getNumber ( )

Get the number on the counter.

Returns
int

Implements ILIAS\UI\Component\Counter\Counter.

Definition at line 49 of file Counter.php.

References ILIAS\UI\Implementation\Component\Counter\Counter\$number.

◆ getType()

ILIAS\UI\Implementation\Component\Counter\Counter::getType ( )

Get the type of the counter.

Returns
string One of the counter types.

Implements ILIAS\UI\Component\Counter\Counter.

Definition at line 42 of file Counter.php.

References ILIAS\UI\Implementation\Component\Counter\Counter\$type.

Field Documentation

◆ $number

ILIAS\UI\Implementation\Component\Counter\Counter::$number
private

◆ $type

ILIAS\UI\Implementation\Component\Counter\Counter::$type
private

◆ $types

ILIAS\UI\Implementation\Component\Counter\Counter::$types
staticprivate
Initial value:
( self::NOVELTY
, self::STATUS
)

Definition at line 13 of file Counter.php.


The documentation for this class was generated from the following file: