ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

References ILIAS\Data\ClientId\$clientId.

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  }

Member Function Documentation

◆ __toString()

ILIAS\Data\ClientId::__toString ( )

Definition at line 54 of file ClientId.php.

References ILIAS\Data\ClientId\toString().

54  : string
55  {
56  return $this->toString();
57  }
+ Here is the call graph for this function:

◆ toString()

ILIAS\Data\ClientId::toString ( )

Definition at line 49 of file ClientId.php.

References ILIAS\Data\ClientId\$clientId.

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

49  : string
50  {
51  return $this->clientId;
52  }
+ 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: