ILIAS  trunk Revision v5.2.0beta1-34115-g3a2438be29
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 (string $type, int $number)
 
 getType ()
 Get the type of the counter.
Returns
string One of the counter types.
More...
 
 getNumber ()
 Get the number on the counter. More...
 
- Public Member Functions inherited from ILIAS\UI\Component\Component
 getCanonicalName ()
 Get the canonical name of the component. More...
 

Private Attributes

string $type
 
int $number
 

Static Private Attributes

static array $types = array( self::NOVELTY, self::STATUS)
 

Additional Inherited Members

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

Detailed Description

Definition at line 26 of file Counter.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 34 of file Counter.php.

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

35  {
36  $this->checkArgIsElement("type", $type, self::$types, "counter type");
37  $this->type = $type;
38  $this->number = $number;
39  }

Member Function Documentation

◆ getNumber()

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

Get the number on the counter.

Implements ILIAS\UI\Component\Counter\Counter.

Definition at line 52 of file Counter.php.

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

52  : int
53  {
54  return $this->number;
55  }

◆ 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 44 of file Counter.php.

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

44  : string
45  {
46  return $this->type;
47  }

Field Documentation

◆ $number

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

◆ $type

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

◆ $types

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

Definition at line 30 of file Counter.php.


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