ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Data\ClientId Class Reference
+ Collaboration diagram for ILIAS\Data\ClientId:

Public Member Functions

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

Private Attributes

string $clientId
 

Detailed Description

Definition at line 28 of file ClientId.php.

Constructor & Destructor Documentation

◆ __construct()

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

ClientId constructor.

Parameters
string$clientId

Definition at line 36 of file ClientId.php.

37 {
38 if ($clientId === '') {
39 throw new \InvalidArgumentException('Empty $clientId');
40 }
41
42 if (preg_match('/[^A-Za-z0-9#_\.\-]/', $clientId)) {
43 throw new \InvalidArgumentException('Invalid value for $clientId');
44 }
45
46 $this->clientId = $clientId;
47 }

References ILIAS\Data\ClientId\$clientId.

Member Function Documentation

◆ __toString()

ILIAS\Data\ClientId::__toString ( )

Definition at line 54 of file ClientId.php.

54 : string
55 {
56 return $this->toString();
57 }

References ILIAS\Data\ClientId\toString().

+ Here is the call graph for this function:

◆ toString()

ILIAS\Data\ClientId::toString ( )

Definition at line 49 of file ClientId.php.

49 : string
50 {
51 return $this->clientId;
52 }

References ILIAS\Data\ClientId\$clientId.

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

+ Here is the caller graph for this function:

Field Documentation

◆ $clientId

string ILIAS\Data\ClientId::$clientId
private

Definition at line 30 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: