ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ILIAS\Data\ClientId Class Reference
+ Collaboration diagram for ILIAS\Data\ClientId:

Public Member Functions

 __construct (string $clientId)
 ClientId constructor. More...
 
 toString ()
 
 __toString ()
 

Private Attributes

 $clientId = ''
 

Detailed Description

Definition at line 11 of file ClientId.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\ClientId::__construct ( string  $clientId)

ClientId constructor.

Parameters
string$clientId

Definition at line 22 of file ClientId.php.

23 {
24 if ($clientId === '') {
25 throw new \InvalidArgumentException('Empty $clientId');
26 }
27
28 if (preg_match('/[^A-Za-z0-9#_\.\-]/', $clientId)) {
29 throw new \InvalidArgumentException('Invalid value for $clientId');
30 }
31
32 $this->clientId = $clientId;
33 }

References ILIAS\Data\ClientId\$clientId.

Member Function Documentation

◆ __toString()

ILIAS\Data\ClientId::__toString ( )
Returns
string

Definition at line 46 of file ClientId.php.

46 : string
47 {
48 return $this->toString();
49 }

References ILIAS\Data\ClientId\toString().

+ Here is the call graph for this function:

◆ toString()

ILIAS\Data\ClientId::toString ( )
Returns
string

Definition at line 38 of file ClientId.php.

38 : string
39 {
40 return $this->clientId;
41 }

References ILIAS\Data\ClientId\$clientId.

Referenced by ILIAS\Data\ClientId\__toString().

+ Here is the caller graph for this function:

Field Documentation

◆ $clientId

ILIAS\Data\ClientId::$clientId = ''
private

Definition at line 16 of file ClientId.php.

Referenced by ILIAS\Data\ClientId\__construct(), and ILIAS\Data\ClientId\toString().


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