ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 (preg_match('/[^A-Za-z0-9#_\.\-]/', $clientId)) {
25 throw new \InvalidArgumentException('Invalid value for $clientId');
26 }
27
28 $this->clientId = $clientId;
29 }

References ILIAS\Data\ClientId\$clientId.

Member Function Documentation

◆ __toString()

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

Definition at line 42 of file ClientId.php.

42 : string
43 {
44 return $this->toString();
45 }

References ILIAS\Data\ClientId\toString().

+ Here is the call graph for this function:

◆ toString()

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

Definition at line 34 of file ClientId.php.

34 : string
35 {
36 return $this->clientId;
37 }

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: