ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ILIAS\Data\ClientId Class Reference
+ Collaboration diagram for ILIAS\Data\ClientId:

Public Member Functions

 __construct ($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 (   $clientId)

ClientId constructor.

Parameters
string$clientId

Definition at line 22 of file ClientId.php.

References ILIAS\Data\ClientId\$clientId.

23  {
24  if (!is_string($clientId)) {
25  throw new \InvalidArgumentException('Invalid value for $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  }

Member Function Documentation

◆ __toString()

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

Definition at line 46 of file ClientId.php.

References ILIAS\Data\ClientId\toString().

47  {
48  return $this->toString();
49  }
+ Here is the call graph for this function:

◆ toString()

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

Definition at line 38 of file ClientId.php.

References ILIAS\Data\ClientId\$clientId.

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

39  {
40  return $this->clientId;
41  }
+ 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: